/* ==========================================
   destinGO Landing — Rediseño C "splash vivo"
   Hero oscuro = splash de la app · cuerpo claro = producto
   ========================================== */

:root {
    --primary: #F93A0B;
    --primary-dark: #d63209;
    --primary-light: #ff6b47;
    --secondary: #1a1a2e;
    --dark: #0f0f1a;
    --light: #f8f9fa;
    --gray: #6c757d;
    --success: #28a745;
    /* Tokens nuevos del rediseño */
    --space: #06080F;
    --space-2: #0B1322;
    --space-text: #E8ECF4;
    --space-muted: #8B95A7;
    --ink: #14161C;
    --paper: #ffffff;
    --paper-2: #F6F7F9;
    --line: #E7E9EE;
    /* CLR del splash de la app (En plazo/Pendiente/Adjudicada), no Bootstrap:
       la leyenda del globo debe casar con los pines, que casan con la app. */
    --estado-abierta: #16C47F;
    --estado-pendiente: #F59E0B;
    --estado-cerrada: #F43F5E;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --gradient: linear-gradient(135deg, #F93A0B 0%, #ff6b47 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    line-height: 1.65;
    overflow-x: hidden;
    background: var(--paper);
}

/* ==========================================
   Tipografía
   ========================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.brand-accent {
    color: var(--primary);
}

/* Eyebrow: versalitas espaciadas, herencia directa del tagline del splash */
.eyebrow {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 0.9rem;
}

.eyebrow--dark {
    color: var(--space-muted);
}

.eyebrow--brand {
    color: var(--primary);
}

/* ==========================================
   Botones
   ========================================== */

.btn-primary {
    background: var(--primary);
    border: none;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 10px;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(249, 58, 11, 0.25);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 26px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

.btn-outline-light {
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: var(--space-text);
    padding: 10px 26px;
    font-weight: 600;
    border-radius: 10px;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
}

/* ==========================================
   Navbar
   ========================================== */

.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar .nav-link {
    color: rgba(232, 236, 244, 0.85);
    font-weight: 500;
    margin: 0 0.35rem;
}

.navbar .nav-link:hover {
    color: #ffffff;
}

/* El margen de arriba es lo que rompía el header entre 992 y 1399: son 11,2px por
   enlace, 67px en total, y en ese rango solo faltaban 16px (contenedor de 936 útiles)
   y 22px (1116 útiles) para que todo entrase en una línea. Sin anularlo, los enlaces
   se comprimían y "Cómo funciona" y "Guía 2026" partían en dos líneas mientras los
   dos botones se apilaban.
   Ya existía una media query de navbar compacto en landing-style.css, pero esta regla
   se añadió después y con más especificidad (.navbar .nav-link gana a .nav-link), así
   que la desactivaba desde dentro. Por eso se anula aquí y no allí.
   Llega hasta 1399.98 porque el contenedor no crece a 1320 hasta 1400: 1280 y 1366,
   que son anchos de portátil de lo más común, también se rompían. */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .navbar .nav-link {
        margin: 0;
    }
}

.navbar.scrolled {
    background: var(--paper);
    box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(10, 14, 26, 0.06);
    padding: 0.55rem 0;
}

.navbar.scrolled .nav-link {
    color: var(--ink);
}

.navbar.scrolled .nav-link:hover {
    color: var(--primary);
}

.navbar.scrolled .logo-hero {
    display: none !important;
}

.navbar.scrolled .logo-scrolled {
    display: flex !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(232,236,244,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(20,22,28,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--space-2);
        border-radius: 14px;
        padding: 1rem 1.25rem;
        margin-top: 0.75rem;
    }

    .navbar.scrolled .navbar-collapse {
        background: var(--paper);
        border: 1px solid var(--line);
    }
}

/* ==========================================
   Hero splash — la escena de la app, con datos vivos
   ========================================== */

.hero-splash {
    position: relative;
    background: var(--space);
    color: var(--space-text);
    overflow: hidden;
    /* Estrellas estáticas para el primer paint, antes de que arranque el canvas */
    background-image: radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,0.5) 50%, transparent 51%),
        radial-gradient(1px 1px at 78% 12%, rgba(255,255,255,0.35) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 55% 68%, rgba(255,255,255,0.3) 50%, transparent 51%),
        radial-gradient(1px 1px at 32% 84%, rgba(255,255,255,0.4) 50%, transparent 51%),
        radial-gradient(1px 1px at 90% 55%, rgba(255,255,255,0.35) 50%, transparent 51%);
}

.hero-splash .container {
    position: relative;
    z-index: 2;
}

.hero-splash-inner {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 64px;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--space-muted);
    max-width: 34rem;
    margin-bottom: 1.75rem;
}

.store-badges {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.store-badges img {
    height: 52px;
    width: auto;
    display: block;
}

.store-badge-link {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-badge-link:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

.hero-qr {
    display: none;
    align-items: center;
    gap: 0.75rem;
    margin-left: 0.5rem;
    padding-left: 1.25rem;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-qr img {
    width: 78px;
    height: 78px;
    border-radius: 10px;
    background: white;
    padding: 5px;
}

.hero-qr span {
    font-size: 0.78rem;
    color: var(--space-muted);
    max-width: 8.5rem;
    line-height: 1.4;
}

@media (min-width: 1200px) {
    .hero-qr {
        display: flex;
    }
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.88rem;
    color: var(--space-muted);
    margin-bottom: 1.5rem;
}

.hero-trust span {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.hero-trust i {
    color: var(--estado-abierta);
}

.hero-web-link {
    font-size: 0.92rem;
    color: var(--space-muted);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding-bottom: 1px;
    transition: color 0.2s ease;
}

.hero-web-link:hover {
    color: #ffffff;
}

/* Escenario del globo */
.globe-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
}

.globe-stage canvas {
    max-width: 100%;
    touch-action: none;
}

.globe-legend {
    display: flex;
    gap: 1.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--space-muted);
}

.globe-legend span {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.globe-legend i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.globe-legend .dot-abierta { background: var(--estado-abierta); }
.globe-legend .dot-pendiente { background: var(--estado-pendiente); }
.globe-legend .dot-cerrada { background: var(--estado-cerrada); }

.globe-hint {
    font-size: 0.75rem;
    color: rgba(139, 149, 167, 0.6);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.globe-ready ~ .globe-hint,
.globe-stage.globe-ready .globe-hint {
    opacity: 1;
}

/* ==========================================
   Franja de prueba: datos + fuentes en una línea
   ========================================== */

.proof-strip {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1.4rem 0;
}

.proof-strip-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem 2.75rem;
}

.proof-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.92rem;
    color: var(--gray);
}

.proof-item strong {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--ink);
    font-weight: 700;
}

.proof-item i {
    color: var(--primary);
    font-size: 0.95rem;
    align-self: center;
}

/* ==========================================
   Cabeceras de sección (cuerpo claro)
   ========================================== */

.section-header {
    max-width: 44rem;
    margin-left: auto;
    margin-right: auto;
}

.section-badge {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.9rem;
    background: none;
    padding: 0;
}

.section-title {
    font-size: clamp(1.7rem, 3.2vw, 2.3rem);
    margin-bottom: 0.75rem;
    color: var(--ink);
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.02rem;
}

/* ==========================================
   Journey: descubre → compara → entérate el primero
   ========================================== */

.journey-section {
    background: var(--paper);
    padding: 5.5rem 0;
}

.journey-step {
    padding: 3.25rem 0;
}

.journey-step + .journey-step {
    border-top: 1px solid var(--line);
}

.journey-num {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.18em;
    margin-bottom: 0.75rem;
    display: block;
}

.journey-step h3 {
    font-size: 1.6rem;
    margin-bottom: 0.9rem;
}

.journey-step p {
    color: var(--gray);
    max-width: 30rem;
}

.journey-points {
    list-style: none;
    margin-top: 1.1rem;
}

.journey-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.3rem 0;
    color: var(--ink);
    font-size: 0.95rem;
}

.journey-points i {
    color: var(--estado-abierta);
    margin-top: 0.3rem;
    font-size: 0.8rem;
}

/* Marco de iPhone para capturas reales de la app */
.phone-frame {
    width: min(280px, 78%);
    margin: 0 auto;
    background: #0E1118;
    border-radius: 42px;
    /* Bisel del mockup. Se subió de 12px a 16px: con 12px las capturas
       quedaban casi pegadas al borde del teléfono; 16px les da aire. */
    padding: 16px;
    box-shadow: 0 24px 60px rgba(10, 14, 26, 0.18), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 78px;
    height: 22px;
    background: #0E1118;
    border-radius: 12px;
    z-index: 2;
}

.phone-frame img {
    width: 100%;
    /* height:auto es IMPRESCINDIBLE. El <img> lleva height="606" en el HTML
       (hint para el CLS); sin este `height:auto`, ese atributo fija la altura y
       el `aspect-ratio` se ignora (solo rellena dimensiones auto). La caja
       quedaba 248×606 (más estrecha que 9:19.5), y object-fit:cover recortaba
       ~16px de contenido por cada lado (se comía "Destinos", "40 resultados",
       la barra de estado, "Empleos"...). Con height:auto el aspect-ratio manda
       y la caja es 9:19.5, así que cover no recorta nada visible. */
    height: auto;
    aspect-ratio: 9 / 19.5;
    object-fit: cover;
    /* Radio interior = radio del marco (42) − bisel (16) = 26, para que la
       esquina de la pantalla siga la del teléfono sin dejar un hueco oscuro. */
    border-radius: 26px;
    display: block;
    background: var(--paper-2);
}

/* ==========================================
   CTA de descarga (cierra el anillo con el hero)
   ========================================== */

.download-section {
    background: var(--space);
    color: var(--space-text);
    padding: 5.5rem 0;
    position: relative;
    overflow: hidden;
    background-image: radial-gradient(1px 1px at 18% 30%, rgba(255,255,255,0.4) 50%, transparent 51%),
        radial-gradient(1px 1px at 72% 18%, rgba(255,255,255,0.3) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 86% 70%, rgba(255,255,255,0.3) 50%, transparent 51%),
        radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.35) 50%, transparent 51%);
}

.download-section h2 {
    color: #ffffff;
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    margin-bottom: 0.9rem;
}

.download-section p {
    color: var(--space-muted);
    max-width: 32rem;
    margin: 0 auto 2rem;
}

.download-section .store-badges {
    justify-content: center;
    margin-bottom: 1.5rem;
}

.download-qr {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.download-qr img {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    background: white;
    padding: 6px;
}

.download-qr span {
    font-size: 0.78rem;
    color: var(--space-muted);
}

@media (min-width: 992px) {
    .download-qr {
        display: flex;
    }
}

.download-web {
    font-size: 0.9rem;
    color: var(--space-muted);
    margin-top: 1.75rem;
}

.download-web a {
    color: var(--space-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.download-web a:hover {
    color: #ffffff;
}

/* ==========================================
   Movimiento reducido
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================
   Responsive del rediseño
   ========================================== */

@media (max-width: 991.98px) {
    .hero-splash-inner {
        padding: 110px 0 48px;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .store-badges,
    .hero-trust {
        justify-content: center;
    }

    .globe-stage {
        margin-top: 2.75rem;
    }

    .journey-step .phone-frame {
        margin-top: 2rem;
    }
}

@media (max-width: 575.98px) {
    .store-badges img {
        height: 46px;
    }

    .proof-strip-inner {
        gap: 0.75rem 1.5rem;
    }

    .proof-item strong {
        font-size: 1.15rem;
    }
}

/* ==========================================
   Convocatorias Section
   ========================================== */

.convocatorias-section {
    background: var(--light);
}

.convocatoria-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    height: 100%;
}

.convocatoria-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.convocatoria-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.convocatoria-flag {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.convocatoria-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.convocatoria-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.convocatoria-info p {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0;
}

.convocatoria-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.convocatoria-badge.abierta {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.convocatoria-badge.cerrada {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.convocatoria-badge.pendiente {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.convocatoria-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--gray);
}

.convocatoria-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
/* ==========================================
   Pricing Section
   ========================================== */

.pricing-section {
    background: white;
}

.pricing-card {
    background: white;
    border: 2px solid #eee;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
}

.pricing-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 20px;
    border-radius: 50px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pricing-price .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
}

.pricing-price .period {
    font-size: 1rem;
    color: var(--gray);
}

.pricing-description {
    color: var(--gray);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-features li.disabled {
    color: #ccc;
}
/* ==========================================
   FAQ Section
   ========================================== */

.faq-section {
    background: white;
}

.accordion-item {
    border: 1px solid #eee;
    margin-bottom: 1rem;
    border-radius: 12px !important;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    background: white;
}

.accordion-button:not(.collapsed) {
    background: var(--light);
    color: var(--primary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary);
}

.accordion-body {
    color: var(--gray);
    line-height: 1.7;
}
/* ==========================================
   Footer
   ========================================== */

.main-footer {
    background: var(--dark);
    color: white;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}
/* ==========================================
   Back to Top
   ========================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    color: white;
}
/* ==========================================
   Ajustes sobre bloques heredados
   ========================================== */

.convocatorias-section {
    padding: 5.5rem 0;
}

.pricing-section {
    padding: 5.5rem 0;
}

.pricing-card {
    border-radius: 16px;
    border-width: 1px;
}

.pricing-card.featured {
    border-width: 2px;
}

.faq-section {
    padding: 5.5rem 0;
    background: var(--paper-2);
}

.faq-section .accordion-item {
    border-radius: 12px;
    overflow: hidden;
}


/* Botón de login del navbar: variante sobre fondo claro al hacer scroll */
.navbar.scrolled .nav-login {
    border-color: var(--line);
    color: var(--ink);
}

.navbar.scrolled .nav-login:hover {
    background: var(--paper-2);
    border-color: var(--gray);
    color: var(--ink);
}
