@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* --- PALETA DE COLORES Y GLOBALES --- */
:root {
    --oscuro: #0c0d2a;            /* Slate 900 (Color oscuro principal) */
    --oscuro-secundario: #11133c; /* Slate 800 (Fondo secundario) */
    --naranja: #227b68;           /* Naranja corporativo (Acento) */
    --naranja-hover: #165649;     /* Naranja más oscuro para hovers */
    --fondo: #fafaf8;             /* Off-white premium */
    --borde: #e2e8f0;             /* Gris para bordes */
    --blanco: #ffffff;
    --texto-suave: #64748b;       /* Slate 500 para texto secundario */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: clip;
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--fondo);
    color: var(--oscuro);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- TOP ANNOUNCEMENT BAR (MARQUEE) --- */
.k-top-bar {
    background: linear-gradient(135deg, #2d564c 0%, #110b6c 100%);
    color: var(--blanco);
    padding: 10px 0;
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.k-marquee {
    white-space: nowrap;
    animation: k-scroll-text 22s linear infinite;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

@keyframes k-scroll-text {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* --- HEADER --- */
.header {
    background: var(--blanco);
    position: sticky;
    top: 0;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 90px;
    box-shadow: 0 2px 15px rgba(15, 23, 42, 0.04);
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    height: 80px;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
}

.logo img {
    height: 48px;
    max-height: 48px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    display: block;
}

.header.scrolled .logo img {
    height: 42px;
    max-height: 42px;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    color: var(--oscuro);
    cursor: pointer;
    user-select: none;
    padding: 8px 10px;
    background: transparent;
    border: none;
    outline: none;
    line-height: 1;
    border-radius: 6px;
    transition: background 0.2s;
}

.menu-toggle:hover {
    background: #f1f5f9;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--oscuro);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--naranja);
}

.nav-btn {
    background: var(--naranja);
    color: var(--blanco);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(34, 123, 104, 0.15);
}

.nav-btn:hover {
    background: var(--naranja-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(34, 123, 104, 0.25);
}

/* --- FOOTER --- */
.footer {
    background: #07081a;
    color: #94a3b8;
    padding: 80px 5% 40px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h4 {
    color: var(--blanco);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: var(--naranja);
    border-radius: 2px;
}

.footer-logo-wrapper {
    background: var(--blanco);
    padding: 12px 24px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-logo {
    max-height: 42px;
    width: auto;
    display: block;
}

.footer-slogan {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 25px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--naranja);
    transform: translateX(6px);
}

.social-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
    font-size: 14px;
    transition: all 0.2s ease;
    width: fit-content;
}

.social-icon {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    color: var(--blanco);
    transform: translateX(6px);
}

.address-text {
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 18px;
    line-height: 1.6;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 18px;
    height: 130px;
    background: #11133c;
}

.map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--blanco);
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.map-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 13px;
    color: #475569;
}

/* --- RESPONSIVE HEADER Y FOOTER --- */
@media (max-width: 900px) {
    .header {
        padding: 0 5%;
        height: 80px;
    }
    .header.scrolled {
        height: 72px;
    }
    .logo img {
        height: 40px;
        max-height: 40px;
        max-width: 180px;
    }
    .header.scrolled .logo img {
        height: 36px;
        max-height: 36px;
    }
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--blanco);
        padding: 20px 6% 25px;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
        gap: 12px;
        z-index: 9999;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        border-top: 1px solid #f1f5f9;
    }
    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }
    .nav-link {
        width: 100%;
        padding: 12px 0;
        text-align: center;
        border-bottom: 1px dashed #f1f5f9;
        font-size: 14px;
    }
    .nav-btn {
        width: 100%;
        text-align: center;
        margin-top: 10px;
        padding: 14px;
        font-size: 13px;
    }
    .footer {
        padding: 60px 6% 30px 6%;
    }
    .footer-grid {
        text-align: center;
        justify-items: center;
        gap: 45px;
    }
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .social-link {
        justify-content: center;
        margin: 0 auto;
    }
    .footer-links {
        align-items: center;
    }
    .footer-links a:hover {
        transform: scale(1.05);
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}