/* ============================================
   Site 3 — estilos adicionales
   (teléfonos, estadísticas, coaches y descarga)
   ============================================ */

/* ============================================
   Escalado fluido: los tamaños se adaptan al
   ancho de pantalla (laptop, iPad, teléfono)
   ============================================ */

/* --- Barra de navegación: logo más discreto, botón más presente --- */
.nav-combined-logo {
    height: clamp(31px, 2.75vw, 38px);
    width: auto;
    object-fit: contain;
}

.nav-test-btn {
    padding: 0.85rem 2.1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 999px;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

/* El botón Descargar permanece visible en iPad y teléfono.
   El CSS original lo ocultaba y mostraba una hamburguesa cuyo
   único elemento era otro enlace de descarga; se elimina. */
@media (max-width: 1024px) {
    .nav-auth {
        display: flex !important;
    }
    .nav-test-btn {
        display: inline-block !important;
    }
    .mobile-menu-toggle,
    .mobile-menu {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .nav-test-btn {
        padding: 0.65rem 1.4rem;
        font-size: 0.9rem;
        min-width: 0;
    }
}

/* --- Hero (dos columnas: texto + video, sin zorro) --- */
@media (min-width: 1025px) {
    /* El CSS original desplazaba los elementos con translateX
       decorativos que desordenaban el hero. Se eliminan todos y
       se usa una cuadrícula equilibrada y centrada. */
    .hero {
        padding-top: 6.5rem !important;
        padding-bottom: 9rem !important;
    }

    .hero-container {
        transform: none !important;
        max-width: 1150px !important;
        padding: 0 3rem !important;
        grid-template-columns: 1.1fr 0.9fr !important;
        gap: clamp(3rem, 6vw, 6rem) !important;
        align-items: center !important;
    }

    /* Ritmo vertical del texto: título → descripción cerca,
       insignias con un poco más de aire */
    .hero-content {
        transform: none !important;
        gap: 0 !important;
    }

    .hero-title {
        font-size: clamp(3rem, 4.6vw, 4.6rem) !important;
        line-height: 1.05 !important;
        margin-bottom: 1.4rem !important;
    }

    .hero-subtitle {
        font-size: clamp(1.05rem, 1.3vw, 1.25rem) !important;
        max-width: 27rem;
        line-height: 1.6 !important;
        margin-bottom: 2.2rem !important;
    }

    .hero-media {
        transform: none !important;
        justify-content: center !important;
        gap: 0 !important;
    }

    .hero-video {
        transform: none !important;
    }

    /* Sin el zorro, el video puede ser un poco más protagonista.
       Su ancho se limita por ancho y altura de la ventana para que
       nunca invada el botón "Más Información". */
    .video-container {
        width: clamp(280px, min(29vw, 44vh), 420px) !important;
        height: auto !important;
        aspect-ratio: 7 / 10;
        transform: rotate(2deg) translateX(0) !important;
    }

    /* El video se ancla hacia el texto (no flota al centro de la
       columna) para que ambas mitades se lean como un solo bloque */
    .hero-media {
        justify-content: flex-start !important;
        padding-left: clamp(0rem, 2vw, 2rem);
    }

    /* Insignias un poco más presentes bajo el texto */
    .store-badges-hero {
        gap: 1rem;
    }

    .store-badges-hero .store-badge {
        padding: 0.8rem 1.6rem;
    }

    .store-badges-hero .store-badge-icon {
        width: 32px;
        height: 32px;
    }

    .store-badges-hero .store-badge-bottom {
        font-size: 1.2rem;
    }

    .scroll-arrow-container {
        bottom: 2.25rem !important;
        z-index: 999 !important;
    }

    .hero {
        padding-bottom: 8.5rem !important;
    }
}

/* --- Botón "Más Información" más compacto y siempre visible --- */
.scroll-arrow-btn {
    padding: 0.55rem 1.5rem !important;
    gap: 0 !important;
    border-width: 2px !important;
    background: rgba(255, 255, 255, 0.85) !important;
}

.scroll-arrow-btn:hover {
    background: #8B5CF6 !important;
}

.scroll-text {
    font-size: 0.92rem !important;
}

.arrow-down {
    font-size: 0.9rem !important;
    line-height: 1 !important;
}

/* La palabra rotativa escala con el título */
.rotating-word {
    width: auto !important;
    min-width: 2.6em;
}

/* --- Insignias de descarga en el hero --- */
/* Doble clase para ganar a `.store-badges { justify-content: center; }`
   definido más abajo: alinea las insignias con el texto del hero */
.store-badges.store-badges-hero {
    justify-content: flex-start;
}

.store-badges-hero .store-badge {
    border: 1px solid rgba(76, 29, 149, 0.12);
    box-shadow: 0 10px 30px rgba(76, 29, 149, 0.15);
}

.store-badges-hero .store-badge:hover {
    box-shadow: 0 14px 36px rgba(76, 29, 149, 0.22);
}

@media (max-width: 1024px) {
    /* En pantallas apiladas el texto va centrado: insignias también */
    .store-badges.store-badges-hero {
        justify-content: center;
    }

    /* El CSS original desplaza el hero con translateX y en
       pantallas angostas recorta el contenido: lo anulamos */
    .hero-container,
    .hero-content,
    .hero-video,
    .hero-fox {
        transform: none !important;
    }

    .video-container {
        width: min(380px, 58vw) !important;
        height: auto !important;
        aspect-ratio: 7 / 10;
        transform: rotate(4deg) !important;
        margin: 0 auto;
    }

    /* Espacio para el botón "Más Información" bajo el contenido */
    .hero {
        padding-bottom: 8rem !important;
    }

    .scroll-arrow-container {
        bottom: 1.25rem !important;
        z-index: 999 !important;
    }
}

@media (max-width: 480px) {
    .video-container {
        width: min(340px, 86vw) !important;
        transform: rotate(3deg) !important;
    }

    .store-badge {
        padding: 0.6rem 1.1rem;
        gap: 0.6rem;
    }

    .store-badge-icon {
        width: 26px;
        height: 26px;
    }

    .store-badge-bottom {
        font-size: 1.05rem;
    }
}

/* --- Sección "Tu camino" --- */
@media (min-width: 1025px) {
    .journey-title {
        font-size: clamp(2.4rem, 3.6vw, 3.6rem) !important;
    }

    .journey-subtitle {
        font-size: clamp(1rem, 1.25vw, 1.2rem) !important;
    }

    .journey-content p {
        font-size: clamp(0.95rem, 1.15vw, 1.15rem);
    }

    .journey-grid {
        gap: clamp(4.5rem, 7.5vw, 8rem);
    }

    .journey-section {
        padding: clamp(4.5rem, 7vw, 8rem) 0;
    }

    .fox-illustration {
        width: clamp(240px, 28vw, 400px) !important;
    }
}

/* Los títulos largos deben poder ocupar varias líneas
   (el CSS original los forzaba a una sola línea) */
.journey-content h3,
.journey-item.explanations .journey-content h3 {
    white-space: normal !important;
    min-width: 0 !important;
    line-height: 1.15;
}

/* Títulos un poco más compactos para frases largas */
@media (min-width: 1025px) {
    .journey-content h3 {
        font-size: clamp(1.9rem, 2.4vw, 2.8rem) !important;
    }
}

/* Evita que las columnas del grid se desborden del ancho disponible */
.journey-item,
.journey-item.explanations {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.journey-item .journey-content,
.journey-item .journey-fox {
    min-width: 0;
}

/* --- Teléfonos en la sección "Tu camino" --- */
.phone-illustration {
    width: clamp(200px, 20vw, 290px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 30px 40px rgba(76, 29, 149, 0.25));
    transition: all 0.3s ease;
}

.phone-illustration:hover {
    transform: translateY(-5px) scale(1.03);
}

.phone-illustration-wide {
    width: clamp(280px, 29vw, 420px);
}

@media (max-width: 1024px) {
    .phone-illustration {
        width: clamp(190px, 26vw, 240px);
        margin: 0 auto;
    }
    .phone-illustration-wide {
        width: clamp(250px, 36vw, 330px);
    }
}

@media (max-width: 480px) {
    .phone-illustration {
        width: 200px;
    }
    .phone-illustration-wide {
        width: 280px;
        max-width: 90%;
    }
}

/* --- Etiqueta pequeña sobre el título de sección --- */
/* El contenedor del encabezado es flex en fila; se apila en
   columna cuando contiene una etiqueta para que quede arriba. */
.journey-header-item:has(.journey-eyebrow) {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

@media (max-width: 1024px) {
    .journey-header-item:has(.journey-eyebrow) {
        align-items: center;
    }
    .journey-eyebrow {
        text-align: center;
    }
}

.journey-eyebrow {
    display: block;
    white-space: nowrap;
    font-size: clamp(0.75rem, 0.9vw, 0.85rem);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7c3aed;
    margin-bottom: 0.6rem;
}

/* --- Slider de capturas de la app --- */
.phone-slider {
    position: relative;
    display: inline-block;
    padding-bottom: 2.25rem; /* espacio para los puntos */
}

.phone-slider .phone-slide {
    transition: opacity 0.45s ease;
}

.phone-slider .phone-slide:not(.active) {
    position: absolute;
    inset: 0 0 2.25rem 0;
    opacity: 0;
    pointer-events: none;
}

.slider-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: clamp(30px, 2.6vw, 38px);
    height: clamp(30px, 2.6vw, 38px);
    border-radius: 50%;
    border: 1px solid rgba(76, 29, 149, 0.15);
    background: rgba(255, 255, 255, 0.92);
    color: #4c1d95;
    font-size: 1.35rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(76, 29, 149, 0.18);
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 2;
    padding: 0 0 2px 0;
}

.slider-arrow:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.08);
}

.slider-prev { left: clamp(-46px, -3vw, -34px); }
.slider-next { right: clamp(-46px, -3vw, -34px); }

.slider-dots {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.slider-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: rgba(76, 29, 149, 0.25);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.slider-dot.active {
    background: #7c3aed;
    transform: scale(1.25);
}

@media (max-width: 640px) {
    .slider-prev { left: -8px; }
    .slider-next { right: -8px; }
}

/* --- Sección de estadísticas --- */
.stats-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #F5F3FF 100%);
    position: relative;
    z-index: 1;
}

.stats-header {
    margin-bottom: 4rem !important;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.stat-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem 1.8rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(139, 92, 246, 0.2);
}

.stat-number {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(2.4rem, 2.8vw, 3.2rem);
    font-weight: 800;
    color: #8B5CF6;
    line-height: 1;
}

.stat-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #374151;
}

.stat-card p {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: #6B7280;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .stats-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    .stats-section {
        padding: 4rem 0;
    }
}

/* En tablet y teléfono el zorro queda al final de la sección
   del camino; se recorta el espacio muerto antes de las
   estadísticas para que no parezca flotando. */
@media (max-width: 1024px) {
    .journey-section {
        padding-bottom: 2rem;
    }
    .stats-section {
        padding-top: 3.5rem;
    }
}

/* --- Sección de coaches --- */
.coaches-section {
    padding: 6rem 0 7rem 0;
    background: white;
    position: relative;
    z-index: 1;
}

.coaches-header {
    margin-bottom: 4rem !important;
}

.coaches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.coach-card {
    position: relative;
    border-radius: 32px;
    overflow: visible;
}

.coach-card-julia .coach-photo-wrap::before {
    background: #cbb8f0;
}

.coach-card-emma .coach-photo-wrap::before {
    background: #a7e3c3;
}

.coach-card-zachary .coach-photo-wrap::before {
    background: #f6b8b3;
}

.coach-photo-wrap {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    aspect-ratio: 4 / 5;
}

.coach-photo-wrap::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 22%;
    border-radius: 32px;
    z-index: 0;
}

.coach-photo {
    position: relative;
    z-index: 1;
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: bottom center;
}

.coach-name {
    position: absolute;
    bottom: 1.4rem;
    left: 1.6rem;
    z-index: 2;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    color: white;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

@media (max-width: 1024px) {
    .coaches-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    .coach-name {
        font-size: 1.2rem;
        left: 1.2rem;
        bottom: 1.1rem;
    }
}

@media (max-width: 700px) {
    .coaches-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
        gap: 3rem;
    }
    .coach-name {
        font-size: 1.5rem;
    }
    .coaches-section {
        padding: 4rem 0 5rem 0;
    }
}

/* --- Botón de Instagram en las tarjetas de coaches --- */
.coach-ig {
    position: absolute;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    color: #8B5CF6;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    transition: all 0.25s ease;
}

.coach-ig svg {
    width: 22px;
    height: 22px;
}

.coach-ig:hover {
    transform: translateY(-3px) scale(1.08);
    background: #8B5CF6;
    color: white;
}

@media (max-width: 1024px) {
    .coach-ig {
        width: 38px;
        height: 38px;
        right: 0.9rem;
        bottom: 0.9rem;
    }
    .coach-ig svg {
        width: 19px;
        height: 19px;
    }
}

/* Cara del zorro en "Explicaciones claras" */
.fox-illustration-face {
    width: clamp(220px, 24vw, 340px) !important;
}

@media (max-width: 1024px) {
    .fox-illustration-face {
        width: clamp(180px, 40vw, 250px) !important;
    }
}

/* --- Separación entre las insignias y el video (iPad/móvil) --- */
@media (max-width: 1024px) {
    .hero-media {
        margin-top: clamp(2rem, 6vw, 3.5rem) !important;
    }
}

/* --- Pie de página con dos columnas (sin "Recursos") --- */
@media (min-width: 769px) {
    .footer-content {
        grid-template-columns: 1.6fr 1fr !important;
        max-width: 640px !important;
    }
}

/* --- Sección de descarga --- */
.download-section {
    padding: 2rem 0 6rem 0;
    background: white;
    position: relative;
    z-index: 1;
    scroll-margin-top: 90px;
}

.download-card {
    background: linear-gradient(135deg, #4C1D95, #6B46C1, #8B5CF6);
    border-radius: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 3rem;
    text-align: center;
    box-shadow: 0 25px 60px rgba(76, 29, 149, 0.35);
}

.download-title {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(2rem, 3.1vw, 3.1rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.2rem;
}

.download-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.8rem;
}

.store-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: white;
    border-radius: 14px;
    padding: 0.7rem 1.4rem;
    text-decoration: none;
    color: #1a1a2e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease;
}

.store-badge:hover {
    transform: scale(1.05);
}

.store-badge:active {
    transform: scale(0.98);
}

.store-badge-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.apple-icon {
    margin-top: -4px;
}

.store-badge-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.store-badge-top {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    color: rgba(26, 26, 46, 0.6);
}

.store-badge-bottom {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .download-card {
        margin: 0 1.5rem;
        padding: 3.5rem 1.5rem;
        border-radius: 30px;
    }
    .download-title {
        font-size: 2.2rem;
    }
    .download-subtitle {
        font-size: 1.05rem;
    }
}

/* Título de secciones nuevas un poco más compacto */
.stats-header .journey-title,
.coaches-header .journey-title {
    font-size: clamp(2rem, 3.1vw, 3.1rem) !important;
}

@media (max-width: 768px) {
    .stats-header .journey-title,
    .coaches-header .journey-title {
        font-size: 2.2rem !important;
    }
    .stats-header,
    .coaches-header {
        padding: 0 1.5rem;
    }
}
