/* ═══════════════════════════════════════════════════════════════
   Space Shuttle (Demo) — sitio ficticio para mostrar TripManager
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-deep:        #06070d;
    --bg-dark:        #0c0e1a;
    --bg-panel:       #141828;
    --bg-light:       #f7f8fb;
    --acento:         #6ea8ff;
    --acento-dark:    #3d6dd1;
    --acento-glow:    rgba(110,168,255,.35);
    --texto-claro:    #e8ecf5;
    --texto-suave:    #a4adc4;
    --texto-mute:     #6e7793;
    --texto-oscuro:   #0f172a;
    --texto-oscuro-suave: #475569;
    --borde-claro:    rgba(255,255,255,.10);
    --borde-oscuro:   #e2e8f0;
}

html, body {
    background: var(--bg-deep);
    color: var(--texto-claro);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

/* ── Container ───────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) { .container { padding: 0 32px; } }

/* ═══════════════════════════════════════════════════════════
   DEMO RIBBON (banner que aparece solo al cargar — NO sticky)
   ═══════════════════════════════════════════════════════════ */
.demo-ribbon {
    background: linear-gradient(90deg, #6ea8ff 0%, #a78bfa 100%);
    color: #0a0d18;
    text-align: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .01em;
}

.demo-ribbon a {
    color: #0a0d18;
    text-decoration: underline;
    font-weight: 700;
    margin-left: 6px;
}

.demo-ribbon a:hover { color: #1a1f33; }

/* En mobile achicamos un poco el padding para que no se coma 2 líneas tan alto */
@media (max-width: 600px) {
    .demo-ribbon { padding: 6px 12px; font-size: 12px; }
}

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(10,12,22,.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--borde-claro);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 19px;
    color: var(--texto-claro);
    letter-spacing: -.015em;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px var(--borde-claro), 0 4px 16px rgba(110,168,255,.25);
}

.brand-text { display: flex; flex-direction: column; line-height: 1; gap: 2px; }
.brand-text small { font-weight: 500; font-size: 11px; color: var(--texto-mute); letter-spacing: .15em; text-transform: uppercase; }

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

.nav a {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--texto-suave);
    transition: background .15s, color .15s;
}

.nav a:hover { color: var(--texto-claro); background: rgba(255,255,255,.05); }
.nav a.active { color: var(--acento); background: rgba(110,168,255,.10); }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px !important;
    background: linear-gradient(135deg, var(--acento) 0%, var(--acento-dark) 100%);
    color: white !important;
    border-radius: 9px;
    box-shadow: 0 6px 20px -6px var(--acento-glow);
}

.nav-cta:hover { transform: translateY(-1px); }

@media (max-width: 600px) {
    .nav a:not(.nav-cta) { padding: 8px 10px; font-size: 13px; }
    .brand-text small { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   HERO con imagen de fondo
   ═══════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--borde-claro);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6,7,13,.3) 0%, rgba(6,7,13,.75) 60%, rgba(6,7,13,.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 80px 0;
    width: 100%;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
    margin-bottom: 18px;
    color: white;
    max-width: 720px;
}

.hero h1 .acento { color: var(--acento); }

.hero p {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--texto-suave);
    max-width: 640px;
    margin-bottom: 28px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.hero-stat {
    border-left: 2px solid var(--acento);
    padding-left: 16px;
}

.hero-stat strong {
    display: block;
    font-size: 24px;
    color: white;
    font-weight: 800;
}

.hero-stat span {
    font-size: 13px;
    color: var(--texto-mute);
}

/* ═══════════════════════════════════════════════════════════
   SECCIÓN GENERAL
   ═══════════════════════════════════════════════════════════ */
.section {
    padding: 64px 0;
}

.section-light {
    background: var(--bg-light);
    color: var(--texto-oscuro);
}

.section-light h2,
.section-light h3 { color: var(--texto-oscuro); }

.section-light p { color: var(--texto-oscuro-suave); }

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--acento);
    margin-bottom: 12px;
}

.section h2 {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.15;
    margin-bottom: 14px;
}

.section-lede {
    max-width: 640px;
    margin: 0 auto;
    font-size: 17px;
    color: var(--texto-oscuro-suave);
}

/* ═══════════════════════════════════════════════════════════
   FEATURES (cards de información)
   ═══════════════════════════════════════════════════════════ */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.feature {
    background: var(--bg-panel);
    border: 1px solid var(--borde-claro);
    border-radius: 12px;
    padding: 24px;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(110,168,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.feature h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--texto-claro);
}

.feature p {
    font-size: 14.5px;
    color: var(--texto-suave);
    line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════
   ROUTES PREVIEW (para shuttles)
   ═══════════════════════════════════════════════════════════ */
.routes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 32px;
}

.route-card {
    background: white;
    border: 1px solid var(--borde-oscuro);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.route-from-to {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--texto-oscuro);
}

.route-arrow { color: var(--acento-dark); }

.route-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px dashed var(--borde-oscuro);
}

.route-price {
    font-weight: 800;
    color: var(--acento-dark);
    font-size: 19px;
}

.route-meta span { font-size: 13px; color: var(--texto-oscuro-suave); }

/* ═══════════════════════════════════════════════════════════
   WIDGET CONTAINER
   ═══════════════════════════════════════════════════════════ */
.widget-section {
    background:
        radial-gradient(ellipse at top, rgba(110,168,255,.18) 0%, transparent 50%),
        var(--bg-deep);
    padding: 60px 0 80px;
    border-top: 1px solid var(--borde-claro);
}

.widget-section h2 { color: white; }
.widget-section .section-lede { color: var(--texto-suave); }

.widget-frame {
    max-width: 540px;
    margin: 32px auto 0;
    background: white;
    border-radius: 18px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,.06),
        0 30px 80px -20px rgba(0,0,0,.6),
        0 0 60px -20px rgba(110,168,255,.4);
    overflow: hidden;
}

/* Compatibilidad con el tour (galería interna del widget puede ser ancha) */
.widget-frame.widget-frame-wide {
    max-width: 720px;
}

/* Grid de varios widgets lado a lado (uno por tour específico) */
.tours-embeds {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 1200px;
    margin: 32px auto 0;
}

@media (min-width: 960px) {
    .tours-embeds { grid-template-columns: 1fr 1fr; gap: 32px; }
}

.tours-embeds .widget-frame {
    margin: 0;
    max-width: none;
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════
   TOURS PREVIEW (para tours.html)
   ═══════════════════════════════════════════════════════════ */
.tours-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.tour-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px -6px rgba(0,0,0,.12);
    display: flex;
    flex-direction: column;
}

.tour-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.tour-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.tour-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--texto-oscuro);
    margin-bottom: 8px;
}

.tour-card p {
    font-size: 14.5px;
    color: var(--texto-oscuro-suave);
    margin-bottom: 14px;
    flex: 1;
}

.tour-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px dashed var(--borde-oscuro);
}

.tour-duration { font-size: 13px; color: var(--texto-oscuro-suave); }
.tour-price { font-weight: 800; color: var(--acento-dark); font-size: 18px; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--bg-deep);
    color: var(--texto-mute);
    padding: 40px 0;
    border-top: 1px solid var(--borde-claro);
    text-align: center;
}

.site-footer strong { color: var(--texto-claro); }

.site-footer a {
    color: var(--acento);
    font-weight: 600;
    text-decoration: underline;
}

.footer-meta {
    margin-top: 14px;
    font-size: 13px;
    opacity: .7;
}
