:root {
    --primary: #0c78ff;
    --primary-dark: #0f2e55;
    --turquoise: #16b8c9;
    --orange: #ff7a1a;
    --bg: #f7f9fc;
    --text: #14233b;
    --muted: #64748b;
    --card: #ffffff;
    --border: #e5edf7;
    --shadow: 0 18px 45px rgba(15, 46, 85, .10);
    --radius: 22px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }

/* Header público */
.site-header {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, color .25s ease;
}
.site-header-inner {
    width: min(1180px, calc(100% - 36px));
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
}
.brand, .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 850;
    color: var(--primary-dark);
    white-space: nowrap;
}
.brand strong { color: var(--turquoise); }

.brand-logo {
    display: block;
    width: 205px;
    height: auto;
}
.brand-logo-white {
    display: none;
}
.home-page .site-header:not(.header-scrolled) .brand-logo-color,
.detail-overlay-page .site-header:not(.header-scrolled) .brand-logo-color {
    display: none;
}
.home-page .site-header:not(.header-scrolled) .brand-logo-white,
.detail-overlay-page .site-header:not(.header-scrolled) .brand-logo-white {
    display: block;
}
.footer-logo {
    display: block;
    width: 210px;
    height: auto;
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 0;
    background: transparent;
}
.brand-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--turquoise), var(--primary));
    color: white;
    box-shadow: 0 12px 24px rgba(12,120,255,.20);
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 750;
    color: #243b5a;
}
.main-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}
.main-nav a:hover {
    color: var(--primary);
    background: #eef6ff;
    transform: translateY(-1px);
}
.nav-toggle {
    display: none;
    border: 1px solid var(--border);
    background: white;
    color: var(--primary-dark);
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 1.35rem;
    font-weight: 900;
}

/* Inicio: header sobre el slider, cambia a blanco al hacer scroll */
.home-page .site-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(180deg, rgba(7, 23, 48, .42), rgba(7, 23, 48, .14));
    border-bottom: 1px solid rgba(255,255,255,.14);
    box-shadow: none;
    color: white;
}
.home-page .brand,
.home-page .main-nav {
    color: white;
}
.home-page .brand strong {
    color: #7ef4ff;
}
.home-page .brand-icon {
    box-shadow: 0 12px 28px rgba(0,0,0,.22);
}
.home-page .main-nav a {
    color: rgba(255,255,255,.94);
}
.home-page .main-nav a:hover {
    color: white;
    background: rgba(255,255,255,.14);
}
.home-page .nav-toggle {
    background: rgba(255,255,255,.16);
    color: white;
    border-color: rgba(255,255,255,.28);
    backdrop-filter: blur(10px);
}
.home-page .site-header.header-scrolled {
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 34px rgba(15, 46, 85, .10);
    color: var(--primary-dark);
}
.home-page .site-header.header-scrolled .brand,
.home-page .site-header.header-scrolled .main-nav {
    color: var(--primary-dark);
}
.home-page .site-header.header-scrolled .brand strong {
    color: var(--turquoise);
}
.home-page .site-header.header-scrolled .main-nav a {
    color: #243b5a;
}
.home-page .site-header.header-scrolled .main-nav a:hover {
    color: var(--primary);
    background: #eef6ff;
}
.home-page .site-header.header-scrolled .nav-toggle {
    background: white;
    color: var(--primary-dark);
    border-color: var(--border);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 15px;
    padding: 13px 22px;
    background: var(--orange);
    color: white;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(255,122,26,.25);
}
.btn.secondary {
    background: white;
    color: var(--primary-dark);
    border: 1px solid var(--border);
    box-shadow: none;
}
.btn.full { width: 100%; }

.section { padding: 58px 0; }
.section-title { margin-bottom: 28px; }
.section-title.centered { text-align: center; }
.section-title span { color: var(--turquoise); font-size: 1.6rem; }
.section-title h2 { margin: 8px 0 0; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--primary-dark); }
.row-title { display: flex; justify-content: space-between; align-items: center; }
.row-title > div { display: flex; align-items: center; gap: 10px; }
.row-title h2 { margin: 0; }
.row-title a { color: var(--primary); font-weight: 800; }

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(590px, 100%);
    background: white;
    padding: 10px 10px 10px 18px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,.8);
}
.search-box input {
    flex: 1;
    border: 0;
    outline: 0;
    font-size: 1rem;
    min-width: 120px;
}
.search-box button {
    border: 0;
    background: var(--primary);
    color: white;
    border-radius: 14px;
    padding: 12px 18px;
    font-weight: 800;
}

.page-hero {
    background: linear-gradient(135deg, #0f2e55, #0c78ff);
    color: white;
    padding: 90px 0;
}
.page-hero.small { padding: 70px 0; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.6rem); margin: 10px 0; }
.page-hero p { max-width: 680px; color: rgba(255,255,255,.82); font-size: 1.08rem; }
.eyebrow { display: inline-block; font-weight: 800; color: #85f3ff; letter-spacing: .05em; text-transform: uppercase; font-size: .78rem; }
.card-panel { background: white; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); padding: 28px; }

.flash-wrap { position: fixed; top: 88px; right: 22px; z-index: 200; display: grid; gap: 10px; }
.flash { padding: 14px 18px; border-radius: 14px; background: white; box-shadow: var(--shadow); border-left: 5px solid var(--primary); font-weight: 700; }
.flash-success { border-color: #22c55e; }
.flash-danger { border-color: #ef4444; }
.flash-warning { border-color: #f59e0b; }
.flash-info { border-color: var(--primary); }



.site-footer {
    background:
        radial-gradient(circle at 50% 0%, rgba(22,184,201,.18), transparent 34%),
        linear-gradient(135deg, #071a33, #0f2e55 58%, #082542);
    color: white;
    padding: 34px 18px 26px;
    border-top: 0;
}
.footer-minimal-content {
    width: min(760px, 100%);
    margin: 0 auto;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 12px;
}
.footer-brand {
    color: white;
    justify-content: center;
}
.footer-brand strong {
    color: #6eefff;
}
.footer-minimal-content p {
    margin: 0;
    color: rgba(255,255,255,.76);
    line-height: 1.6;
    max-width: 420px;
    font-weight: 600;
}
.footer-bottom {
    width: min(560px, 100%);
    margin: 12px auto 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.58);
    text-align: center;
    font-size: .92rem;
}
.empty-state { text-align: center; background: white; border-radius: var(--radius); padding: 52px; box-shadow: var(--shadow); }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

@media (max-width: 900px) {
    .site-header { height: 70px; }
    .site-header-inner { justify-content: space-between; width: min(1180px, calc(100% - 28px)); gap: 14px; }
    .brand { font-size: 1.18rem; }
    .brand-icon { width: 34px; height: 34px; border-radius: 13px; }
    .nav-toggle { display: grid; place-items: center; }
    .main-nav {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        background: white;
        padding: 14px;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid var(--border);
        border-radius: 18px;
        box-shadow: var(--shadow);
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 13px 14px; }
    .contact-grid { grid-template-columns: 1fr; }
    .row-title { align-items: flex-start; gap: 10px; flex-direction: column; }
}

@media (max-width: 900px) {
    .home-page .main-nav {
        background: rgba(8, 25, 52, .96);
        border-color: rgba(255,255,255,.18);
    }
    .home-page .site-header.header-scrolled .main-nav {
        background: white;
        border-color: var(--border);
    }
    .home-page .main-nav a:hover {
        background: rgba(255,255,255,.10);
    }
    .home-page .site-header.header-scrolled .main-nav a:hover {
        background: #eef6ff;
    }
}

@media (max-width: 900px) {
    .brand-logo { width: 170px; }
    .footer-logo { width: 185px; }
}

/* Selector de ciudad en el header */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.header-location-group {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.city-selector-form {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    color: var(--primary-dark);
    box-shadow: 0 8px 22px rgba(15, 46, 85, .08);
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.city-selector-icon {
    flex: 0 0 auto;
    font-size: 1rem;
}

.city-selector-form select {
    min-width: 92px;
    max-width: 150px;
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.home-page .site-header:not(.header-scrolled) .city-selector-form,
.detail-overlay-page .site-header:not(.header-scrolled) .city-selector-form {
    background: rgba(8, 25, 52, .24);
    border-color: rgba(255, 255, 255, .28);
    color: white;
    box-shadow: none;
    backdrop-filter: blur(8px);
}

.home-page .site-header:not(.header-scrolled) .city-selector-form option,
.detail-overlay-page .site-header:not(.header-scrolled) .city-selector-form option {
    color: var(--primary-dark);
    background: white;
}

@media (max-width: 900px) {
    .header-location-group { gap: 10px; }
    .city-selector-form { min-height: 40px; padding: 0 9px; }
    .city-selector-form select { max-width: 118px; }
}

@media (max-width: 560px) {
    .site-header-inner { gap: 8px; }
    .header-location-group { gap: 7px; }
    .brand-logo { width: 132px; }
    .city-selector-form { min-height: 38px; border-radius: 12px; padding: 0 7px; gap: 4px; }
    .city-selector-form select { min-width: 76px; max-width: 98px; font-size: .82rem; }
    .city-selector-icon { font-size: .86rem; }
    .nav-toggle { width: 39px; height: 39px; border-radius: 12px; }
}

@media (max-width: 390px) {
    .brand-logo { width: 116px; }
    .city-selector-icon { display: none; }
    .city-selector-form select { min-width: 70px; max-width: 88px; }
}
