:root {
    --verde-yaxha: #004b34;
    --rojo-yaxha: #b73229;
    --amarillo-yaxha: #f8b133;
    --blanco: #ffffff;
    --texto-oscuro: #333333;
    --fondo-claro: #f4f7f6;
    --fuente-principal: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--fuente-principal);
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    background-color: var(--fondo-claro);
    color: var(--texto-oscuro);
    overflow-x: hidden;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: all 0.4s ease-in-out;
}

.main-header.scrolled {
    padding: 1rem 5%;
    background: rgba(0, 75, 52, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid var(--amarillo-yaxha);
}

.logo-container h2 {
    color: var(--blanco);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.logo-container h2 span {
    color: var(--amarillo-yaxha);
}

.menu-toggle {
    display: none;
    color: var(--blanco);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu a:hover {
    color: var(--amarillo-yaxha);
}

.lang-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--blanco);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    background: var(--amarillo-yaxha);
    color: var(--verde-yaxha);
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    .main-header nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
    }

    .nav-menu {
        width: 100%;
        background: rgba(0, 75, 52, 0.98);
        flex-direction: column;
        padding: 2rem 0;
        gap: 2rem;
        border-bottom: 3px solid var(--amarillo-yaxha);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
    }

    .nav-menu.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-menu a {
        font-size: 1.2rem;
    }

    .main-header {
        padding: 1rem 5%;
        background: rgba(0, 75, 52, 0.95);
    }
}

.main-footer {
    background-color: var(--verde-yaxha);
    color: var(--blanco);
    padding: 4rem 5% 1.5rem 5%;
    border-top: 4px solid var(--rojo-yaxha);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 2.5rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.footer-col h3 span {
    color: var(--amarillo-yaxha);
}

.footer-col h4 {
    color: var(--amarillo-yaxha);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    line-height: 1.8;
    margin-bottom: 0.8rem;
    color: #d1d8d5;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul a {
    color: #d1d8d5;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul a:hover {
    color: var(--amarillo-yaxha);
}

.footer-col i {
    width: 25px;
    color: var(--amarillo-yaxha);
}

.footer-bottom {
    text-align: center;
    color: #d1d8d5;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.container {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--blanco);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a i {
    width: auto !important;
    color: inherit;
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--amarillo-yaxha);
    color: var(--verde-yaxha);
    transform: translateY(-3px);
}

.certificate-logo a:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 850px;
    max-height: 90vh;
    border-radius: 15px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    transform: translateY(30px);
    transition: transform 0.4s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close-x {
    position: absolute;
    top: 15px;
    right: 20px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.modal-close-x:hover {
    color: white;
    background: #d32f2f;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    min-height: 400px;
}

.modal-img {
    background-size: cover;
    background-position: center;
}

.modal-text {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.modal-header h2 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.modal-header h3 {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.2rem;
}

.modal-body p {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.highlight-box {
    background: #fff9e6;
    border-left: 4px solid var(--amarillo-yaxha);
    padding: 12px 15px;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.2rem;
}

.highlight-box i {
    font-size: 1.8rem;
    color: var(--amarillo-yaxha);
}

.highlight-box p {
    margin: 0;
    color: #333;
    font-weight: 500;
}

.modal-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.2rem;
}

.modal-list li {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.text-yellow { color: #f57c00; }
.text-small { font-size: 0.8rem !important; }

.modal-footer {
    margin-top: auto;
    text-align: right;
}

.btn-accept {
    background: var(--verde-yaxha);
    color: white;
    border: none;
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-accept:hover {
    background: #003625;
}

@media (max-width: 768px) {
    .modal-grid { grid-template-columns: 1fr; }
    .modal-img { height: 200px; }
    .modal-text { padding: 1.5rem; }
}

@media (min-width: 901px) {
    .footer-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Floating Contact Widget */
.floating-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.widget-menu {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.widget-menu.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.widget-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: white;
    color: var(--verde-yaxha);
    padding: 12px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, background-color 0.3s;
    white-space: nowrap;
}

.widget-btn:hover {
    transform: translateY(-3px);
    background-color: #f9f9f9;
}

.widget-btn.whatsapp {
    color: #25D366;
}

.widget-toggle {
    width: 65px;
    height: 65px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.widget-toggle:hover {
    transform: scale(1.1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}