/* ============================================================
   USP × ESA — Common styles (CTA banner + nav header)
   ============================================================ */

:root {
    --usp-navy: #002266;
    --usp-navy-light: #003399;
    --usp-gold: #fac515;
    --usp-gold-dark: #f5b800;
}

/* Defensa contra overflow horizontal en móvil */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Cualquier elemento con anchura fija no puede romper el viewport */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* ============================================================
   CTA BANNER (sticky top)
   ============================================================ */
.cta-banner {
    background: linear-gradient(135deg, var(--usp-gold) 0%, var(--usp-gold-dark) 100%);
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 34, 102, 0.2);
    border-bottom: 3px solid var(--usp-navy);
    font-family: sans-serif;
}

.cta-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.cta-icon { font-size: 2em; flex-shrink: 0; }
.cta-text { flex: 1; }
.cta-title {
    font-size: 1.1em;
    font-weight: 800;
    color: var(--usp-navy);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cta-subtitle {
    font-size: 0.85em;
    color: var(--usp-navy);
    font-weight: 600;
    opacity: 0.9;
}

.cta-offers { display: flex; gap: 15px; align-items: center; }
.cta-offer-item {
    background: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8em;
    font-weight: 700;
    color: var(--usp-navy);
    white-space: nowrap;
    border: 2px solid var(--usp-navy);
    box-shadow: 0 2px 6px rgba(0, 34, 102, 0.15);
}
.cta-offer-value { color: var(--usp-gold); font-size: 1.1em; }

.cta-button {
    background: var(--usp-navy);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.95em;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 3px solid var(--usp-navy);
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
}
.cta-button:hover {
    background: white;
    color: var(--usp-navy);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 34, 102, 0.3);
}

@media (max-width: 1024px) {
    .cta-offers { display: none; }
    .cta-title { font-size: 1em; }
    .cta-subtitle { font-size: 0.8em; }
    .cta-button { padding: 10px 22px; font-size: 0.9em; }
}
@media (max-width: 768px) {
    .cta-banner { padding: 10px 15px; }
    .cta-container { gap: 12px; }
    .cta-content { gap: 12px; }
    .cta-icon { font-size: 1.5em; }
    .cta-title { font-size: 0.9em; margin-bottom: 2px; }
    .cta-subtitle { font-size: 0.75em; }
    .cta-button { padding: 9px 18px; font-size: 0.85em; }
}
@media (max-width: 480px) {
    .cta-banner { padding: 8px 12px; }
    .cta-container { flex-direction: column; gap: 10px; }
    .cta-content { width: 100%; justify-content: space-between; }
    .cta-icon { font-size: 1.3em; }
    .cta-title { font-size: 0.85em; }
    .cta-subtitle { font-size: 0.7em; }
    .cta-button { width: 100%; text-align: center; padding: 10px 16px; font-size: 0.8em; }
}

/* ============================================================
   MAIN NAV (white)
   ============================================================ */
.main-nav {
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 34, 102, 0.08);
    border-bottom: 3px solid var(--usp-gold);
    font-family: sans-serif;
}

/* When CTA is rendered first, nav stacks below it */
.cta-banner + .main-nav {
    top: 0;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    gap: 20px;
    position: relative;
}

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    transition: opacity 0.2s ease;
    line-height: 1;
}
.nav-logo:hover { opacity: 0.85; }

/* Force USP and ESA to the same visual height so the row is balanced */
.nav-logo-img {
    height: 30px;
    width: auto;
    display: block;
    object-fit: contain;
}
.nav-logo-img.usp { height: 32px; }
.nav-logo-img.esa { height: 22px; }

.nav-logo-x {
    color: var(--usp-gold);
    font-size: 1.3em;
    font-weight: 900;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

@media (max-width: 900px) {
    .nav-logo-img { height: 28px; }
    .nav-logo-img.usp { height: 32px; }
    .nav-logo-img.esa { height: 22px; }
    .nav-logo { gap: 10px; }
    .nav-logo-x { font-size: 1.3em; }
}

@media (max-width: 480px) {
    .nav-logo-img { height: 24px; }
    .nav-logo-img.usp { height: 26px; }
    .nav-logo-img.esa { height: 18px; }
    .nav-logo { gap: 8px; }
    .nav-logo-x { font-size: 1.1em; }
}

/* Dropdown: floats below the nav, doesn't push the layout */
.nav-links {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    background: white;
    box-shadow: 0 8px 20px rgba(0, 34, 102, 0.12);
    border-bottom: 3px solid var(--usp-gold);
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.2s ease;
    z-index: 5;
}

.nav-links.open {
    max-height: 800px;
    padding: 14px 20px 18px;
}

.nav-links li { width: 100%; }

.nav-links a {
    color: var(--usp-navy);
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9em;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.nav-links a:hover {
    color: var(--usp-navy);
    background: rgba(250, 197, 21, 0.15);
}

.nav-links a.active {
    color: var(--usp-navy);
    background: var(--usp-gold);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* USP banner integrated into nav */
.nav-usp-banner {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 6px 6px 6px 18px;
    text-decoration: none;
    background: rgba(0, 34, 102, 0.04);
    border: 1.5px solid rgba(0, 34, 102, 0.15);
    border-radius: 50px;
    transition: all 0.25s ease;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1;
}
.nav-usp-banner:hover {
    background: rgba(250, 197, 21, 0.12);
    border-color: var(--usp-gold);
    transform: translateY(-1px);
}

.nav-usp-title {
    color: var(--usp-navy);
    font-weight: 700;
    font-size: 0.85em;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nav-usp-title .usp-gold { color: var(--usp-navy); font-weight: 900; }

.nav-usp-cta {
    background: var(--usp-gold);
    color: var(--usp-navy);
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.78em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.nav-usp-banner:hover .nav-usp-cta { transform: scale(1.04); }

@media (max-width: 900px) {
    .nav-usp-banner { gap: 10px; padding: 6px 12px; max-width: 380px; }
    .nav-usp-title { font-size: 0.8em; }
    .nav-usp-cta { padding: 5px 12px; font-size: 0.72em; }
}

@media (max-width: 720px) {
    .nav-usp-title { display: none; }
    .nav-usp-banner { padding: 4px; max-width: none; flex: 0 0 auto; background: transparent; border: none; }
}

@media (max-width: 480px) {
    .nav-usp-cta { padding: 5px 10px; font-size: 0.68em; }
}

.lang-switcher {
    display: flex;
    gap: 4px;
    background: rgba(0, 34, 102, 0.06);
    border-radius: 20px;
    padding: 3px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: rgba(0, 34, 102, 0.6);
    padding: 5px 12px;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.75em;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.lang-btn:hover { color: var(--usp-navy); }
.lang-btn.active {
    background: var(--usp-gold);
    color: var(--usp-navy);
}

/* Hamburger — always visible */
.nav-toggle {
    display: inline-flex;
    order: 2;
    background: transparent;
    border: 2px solid rgba(0, 34, 102, 0.2);
    color: var(--usp-navy);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.nav-toggle:hover { border-color: var(--usp-gold); background: rgba(250, 197, 21, 0.12); }
.nav-toggle.open { background: var(--usp-gold); color: var(--usp-navy); border-color: var(--usp-gold); }

.nav-right { order: 3; }

@media (max-width: 900px) {
    .nav-container { padding: 10px 15px; }
}

@media (max-width: 480px) {
    .nav-logo { font-size: 0.95em; letter-spacing: 0.5px; }
    .lang-btn { padding: 4px 9px; font-size: 0.7em; }
    .nav-toggle { width: 36px; height: 36px; }
}

/* ============================================================
   USP "About" banner — sits below the nav, full width
   ============================================================ */
.usp-banner {
    display: block;
    text-decoration: none;
    background: linear-gradient(135deg, #001a4d 0%, var(--usp-navy) 50%, #1a3a6b 100%);
    border-top: 2px solid var(--usp-gold);
    border-bottom: 2px solid var(--usp-gold);
    color: white;
    font-family: sans-serif;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.usp-banner::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(250, 197, 21, 0.1), transparent);
    transition: left 0.8s ease;
}

.usp-banner:hover::after { left: 100%; }
.usp-banner:hover { box-shadow: 0 6px 20px rgba(250, 197, 21, 0.25); }

.usp-banner-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    position: relative;
    z-index: 1;
}

.usp-banner-text { flex: 1; }

.usp-banner-title {
    font-size: 1.15em;
    font-weight: 800;
    color: white;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.usp-banner-title .usp-gold { color: var(--usp-gold); }

.usp-banner-subtitle {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    line-height: 1.4;
}

.usp-banner-cta {
    background: var(--usp-gold);
    color: var(--usp-navy);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.usp-banner:hover .usp-banner-cta { transform: scale(1.05); }

@media (max-width: 768px) {
    .usp-banner-content { padding: 16px 20px; gap: 16px; }
    .usp-banner-title { font-size: 1em; }
    .usp-banner-subtitle { font-size: 0.82em; }
    .usp-banner-cta { padding: 9px 18px; font-size: 0.8em; }
}

@media (max-width: 520px) {
    .usp-banner-content { flex-direction: column; align-items: stretch; text-align: center; gap: 12px; padding: 14px 18px; }
    .usp-banner-cta { align-self: center; padding: 8px 20px; }
}

/* ============================================================
   Sponsors row — UTR, ESA, USP
   ============================================================ */
.sponsors-section {
    background: white;
    padding: 60px 24px;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    font-family: sans-serif;
}

.sponsors-title {
    text-align: center;
    font-size: 1em;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 44px;
}

.sponsors-row {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 90px;
    flex-wrap: wrap;
}

.sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    min-width: 260px;
    padding: 16px 24px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.sponsor-item:hover {
    transform: scale(1.06);
}

.sponsor-item img {
    max-height: 140px;
    max-width: 320px;
    object-fit: contain;
}

@media (max-width: 1100px) {
    .sponsors-row { gap: 60px; }
    .sponsor-item { height: 130px; min-width: 220px; }
    .sponsor-item img { max-height: 115px; max-width: 260px; }
}

@media (max-width: 768px) {
    .sponsors-section { padding: 40px 16px; }
    .sponsors-title { font-size: 0.9em; letter-spacing: 2px; margin-bottom: 30px; }
    .sponsors-row { gap: 40px; }
    .sponsor-item { height: 110px; min-width: 180px; padding: 10px 16px; }
    .sponsor-item img { max-height: 95px; max-width: 200px; }
}

@media (max-width: 480px) {
    .sponsors-section { padding: 32px 12px; }
    .sponsors-row { gap: 28px; }
    .sponsor-item { height: 90px; min-width: 140px; padding: 8px 12px; }
    .sponsor-item img { max-height: 80px; max-width: 160px; }
}
/* deploy timestamp: 1779466271 */
