/* ==========================================
   DISEÑO PREMIUN - PAO LARA PERSONAL TRAINER
   ========================================== */

/* Carga de Fuentes Locales */
@font-face {
    font-family: 'DIN-Bold';
    src: url('../assets/fonts/DIN-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'DIN-Condensed-Bold';
    src: url('../assets/fonts/DIN-Condensed Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'DIN-Regular';
    src: url('../assets/fonts/DIN-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham-Bold';
    src: url('../assets/fonts/Gotham Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

/* Reset y Variables Globales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'DIN-Regular', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    font-variant-ligatures: none;
    font-feature-settings: "liga" 0, "clig" 0;
}

:root {
    --bg-dark: #070415;
    --neon-cyan: #03ddcb;
    --neon-purple: #b13cfd;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
}

body {
    background-color: var(--bg-dark);
    /* Gradiente base para evitar negro al hacer scroll en mobile */
    background-image: linear-gradient(90deg, #02a093 0%, #832bbd 100%);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ==========================================
   PANTALLA DE BIENVENIDA (LOADING OVERLAY)
   ========================================== */
.welcome-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 4, 21, 0.65);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.welcome-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Tras la primera visita, se oculta antes de la primera pintura. */
html.welcome-seen .welcome-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.welcome-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 50px;
}

.logo-loader-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner-behind {
    position: absolute;
    z-index: 1;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-image: linear-gradient(var(--neon-purple) 35%, var(--neon-cyan));
    animation: spinning82341 2s linear infinite;
    filter: blur(25px);
    opacity: 1;
}

@keyframes spinning82341 {
    to {
        transform: rotate(360deg);
    }
}

.welcome-logo {
    position: relative;
    z-index: 2;
    width: 300px;
    height: 300px;
    max-width: 80vw;
    object-fit: contain;
}

.welcome-enter-btn.pill-style-btn {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    font-family: 'DIN-Regular', sans-serif;
    font-size: 15px;
    color: var(--text-white);
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.welcome-enter-btn.pill-style-btn:hover {
    background: rgba(3, 221, 203, 0.15);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(3, 221, 203, 0.4);
    transform: translateY(-2px);
}

/* ==========================================
   FONDO DINÁMICO: AURORA GRADIENTS (MOVIMIENTO CONTINUO)
   ========================================== */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: -2;
    overflow: hidden;
    background: linear-gradient(90deg, #02a093 0%, #832bbd 100%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 1;
    mix-blend-mode: normal;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
}

/* Esferas de Colores */
.blob-1 {
    width: 80vw;
    height: 80vh;
    background: radial-gradient(circle, var(--neon-cyan) 0%, rgba(3, 221, 203, 0) 70%);
    top: -10%;
    left: -10%;
    animation: float-1 25s infinite alternate ease-in-out;
}

.blob-2 {
    width: 80vw;
    height: 80vh;
    background: radial-gradient(circle, var(--neon-purple) 0%, rgba(177, 60, 253, 0) 70%);
    bottom: -10%;
    right: -10%;
    animation: float-2 28s infinite alternate ease-in-out;
}

.blob-3 {
    width: 70vw;
    height: 70vh;
    background: radial-gradient(circle, var(--neon-purple) 0%, rgba(177, 60, 253, 0) 70%);
    top: 10%;
    right: -5%;
    animation: float-3 20s infinite alternate ease-in-out;
}

.blob-4 {
    width: 70vw;
    height: 70vh;
    background: radial-gradient(circle, var(--neon-cyan) 0%, rgba(3, 221, 203, 0) 70%);
    bottom: 10%;
    left: -5%;
    animation: float-4 22s infinite alternate ease-in-out;
}

/* Animaciones de Flotación */
@keyframes float-1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(20vw, 15vh) scale(1.1);
    }

    100% {
        transform: translate(-10vw, 25vh) scale(0.9);
    }
}

@keyframes float-2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-20vw, -15vh) scale(1.2);
    }

    100% {
        transform: translate(15vw, -5vh) scale(0.85);
    }
}

@keyframes float-3 {
    0% {
        transform: translate(0, 0) scale(0.9);
    }

    50% {
        transform: translate(-15vw, 20vh) scale(1.15);
    }

    100% {
        transform: translate(20vw, -15vh) scale(1);
    }
}

@keyframes float-4 {
    0% {
        transform: translate(0, 0) scale(1.1);
    }

    50% {
        transform: translate(20vw, -20vh) scale(0.9);
    }

    100% {
        transform: translate(-15vw, 15vh) scale(1.1);
    }
}

/* ==========================================
   ESTRUCTURA DEL SITIO
   ========================================== */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* ==========================================
   BARRA DE NAVEGACIÓN (GLASSMORPHISM)
   ========================================== */
.navbar-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 25px 20px 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

.header {
    width: 100%;
    position: fixed;
    top: 30px;
    left: 0;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 950px;
    height: 70px;
    padding: 0 35px 0 25px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: none;
    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.3),
        inset 2px 3px 6px rgba(255, 255, 255, 0.25),
        inset -2px -3px 6px rgba(0, 0, 0, 0.35);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.navbar::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 40px;
    padding: 1.5px;
    background: linear-gradient(-48deg, var(--neon-cyan), var(--neon-purple));
    opacity: 0.64;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.navbar:hover {
    box-shadow:
        0 12px 40px 0 rgba(0, 0, 0, 0.4),
        inset 2px 3px 8px rgba(255, 255, 255, 0.3),
        inset -2px -3px 8px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 242, 254, 0.15);
}

.nav-logo-area {
    display: flex;
    align-items: center;
    position: absolute;
    left: 25px;
}

.nav-logo {
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.35));
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 35px;
    margin-left: 60px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 17px;
    font-family: 'DIN-Regular', sans-serif;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

/* Botones Flotantes Globales */
.floating-audio-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(3, 221, 203, 0.1);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 15px rgba(3, 221, 203, 0.5);
    color: var(--neon-cyan);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.floating-audio-btn:hover {
    box-shadow: 0 0 25px rgba(3, 221, 203, 0.8);
    transform: scale(1.1);
}

.floating-audio-btn.is-playing .audio-wave {
    animation: sound-waves 1s infinite alternate ease-in-out;
    transform-origin: center;
}

@keyframes sound-waves {
    0% {
        transform: scale(0.85);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.15);
        opacity: 1;
    }
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(3, 221, 203, 0.15);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(3, 221, 203, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 25px var(--neon-cyan);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--text-white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* ==========================================
   HERO SECTION & EFECTO 3D/PARALLAX
   ========================================== */
.hero-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding-top: 130px;
    padding-bottom: 50px;
    min-height: 100vh;
    z-index: 20;
    /* Elevado a 20 para evitar solapamiento invisible */
}

/* Logotipo Gigante Detrás */
.hero-bg-logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    margin-top: -40px;
    width: 90%;
    max-width: 1100px;
    pointer-events: none;
    z-index: 1;
    display: flex;
    justify-content: center;
    opacity: 0.85;
}

.hero-bg-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    mix-blend-mode: overlay;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
    animation: pulse-logo 8s infinite alternate ease-in-out;
}

@keyframes pulse-logo {
    0% {
        transform: scale(1);
        filter: brightness(0.9) drop-shadow(0 0 15px rgba(255, 255, 255, 0.05));
    }

    100% {
        transform: scale(1.02);
        filter: brightness(1.05) drop-shadow(0 0 25px rgba(0, 242, 254, 0.12));
    }
}

/* Foto de la Entrenadora */
.trainer-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%);
    margin-top: -40px;
    height: 70vh;
    max-height: 550px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.trainer-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.5)) contrast(1.05);
}

/* ==========================================
   TARJETA DE CHAT / ASISTENTE VIRTUAL (GLASS)
   ========================================== */
.chat-card-container {
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    z-index: 3;
    margin-top: auto;
    transform: translateY(110px);
}

.chat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    padding: 25px 30px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        inset 0 0 15px rgba(255, 255, 255, 0.05);
    transition: border-color 0.4s, box-shadow 0.4s;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.chat-card:hover {
    border-color: rgba(232, 121, 249, 0.25);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.08),
        0 0 35px rgba(232, 121, 249, 0.1);
}

.chat-header {
    margin-bottom: 20px;
}

.chat-input-container {
    position: relative;
    width: 100%;
    min-height: 55px;
}

.chat-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    resize: none;
    font-size: 18px;
    line-height: 1.6;
    color: transparent !important;
    caret-color: transparent !important;
    letter-spacing: 0.3px;
    font-family: 'DIN-Regular', sans-serif;
    outline: none;
    overflow: hidden;
    z-index: 2;
}

.fake-placeholder {
    position: relative;
    width: 100%;
    min-height: 55px;
    height: auto;
    pointer-events: none;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0.85;
    mix-blend-mode: screen;
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: 0.3px;
    z-index: 1;
    word-break: break-word;
}

.fake-placeholder.is-typing {
    color: var(--text-white);
    opacity: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    mix-blend-mode: normal;
}

.blinking-cursor {
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background-color: var(--neon-cyan);
    vertical-align: text-bottom;
    margin-left: 5px;
    box-shadow: 0 0 8px var(--neon-cyan), 0 0 15px var(--neon-cyan);
    animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.chat-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

/* Redes Sociales */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    filter: brightness(0.9);
}

.social-links a:hover {
    transform: translateY(-3px);
    background: rgba(0, 242, 254, 0.15);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

/* Botones de Acción (Mic y Enviar) */
.chat-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.action-btn:hover {
    transform: scale(1.08);
    background: rgba(0, 242, 254, 0.15);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
}

/* Píldoras de Categorías */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.pill-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    font-family: 'DIN-Regular', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pill-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

.pill-btn.active {
    background: rgba(0, 242, 254, 0.2);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
    color: var(--neon-cyan);
}

.pill-icon {
    width: 15px;
    height: 15px;
    object-fit: contain;
}

/* Efectos Individuales para cada Píldora */
.pill-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.pill-btn:hover::before {
    left: 100%;
}

.pill-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Colorear individualmente el borde en hover */
.pill-btn:nth-child(1):hover {
    border-color: #3b82f6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.pill-btn:nth-child(2):hover {
    border-color: #8b5cf6;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.pill-btn:nth-child(3):hover {
    border-color: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.pill-btn:nth-child(4):hover {
    border-color: #ec4899;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.3);
}

.pill-btn:nth-child(5):hover {
    border-color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.pill-btn:nth-child(6):hover {
    border-color: #06b6d4;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}


/* ==========================================
   SECCIÓN SOBRE MÍ (INTRO)
   ========================================== */
.about-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 180px 40px 50px 40px;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 850px;
    margin-left: 150px;
    position: relative;
}

.title-bold-layer {
    font-family: 'Gotham-Bold', sans-serif;
    font-size: 95px;
    color: var(--text-white);
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1;
    position: relative;
    text-align: left;
    line-height: 0.9;
}

.title-light-layer {
    font-family: 'DIN-Regular', sans-serif;
    font-size: 135px;
    color: var(--text-white);
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 3;
    position: relative;
    text-align: right;
    line-height: 0.8;
    letter-spacing: 5px;
    margin-top: 5px;
}

.image-layer {
    position: absolute;
    bottom: -20px;
    left: -400px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-150px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: flex-end;
}

.about-section.in-view .image-layer {
    opacity: 1;
    transform: translateX(0);
}

.about-img {
    height: 800px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(15px 25px 35px rgba(0, 0, 0, 0.6));
}

.video-layer {
    width: 100%;
    max-width: 650px;
    margin-left: auto;
    z-index: 3;
    position: relative;
    margin-top: 30px;
    opacity: 0;
    transform: translateX(100px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.about-section.in-view .video-layer {
    opacity: 1;
    transform: translateX(0);
}

.video-glass {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        inset 2px 3px 6px rgba(255, 255, 255, 0.25),
        inset -2px -3px 6px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.video-glass::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    padding: 1.5px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.8;
}

.video-glass::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05), transparent 60%);
    animation: rotate-glow 10s linear infinite;
    pointer-events: none;
}

@keyframes rotate-glow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotate-border {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* =========================================
   SECCIÓN: SERVICIOS (MEJORA PARA TI)
   ========================================= */
.services-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 100px 40px 150px 40px;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.services-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 850px;
    position: relative;
}

.services-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 80px;
}

.services-header .title-bold-layer {
    font-family: 'Gotham-Bold', sans-serif;
    font-size: 95px;
    color: var(--text-white);
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
    line-height: 0.9;
}

.services-header .title-light-layer {
    font-family: 'DIN-Regular', sans-serif;
    font-size: 135px;
    color: var(--text-white);
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: right;
    line-height: 0.8;
    letter-spacing: 5px;
    margin-top: 5px;
}

/* MENÚ INTERACTIVO */
.interactive-menu-container {
    width: 100%;
    position: relative;
    padding-top: 40px;
}

.interactive-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    position: relative;
}

/* Interacción 1: Opacidad del Menú */
.interactive-menu:hover a {
    opacity: 0.3;
}

.interactive-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 35px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: var(--text-white);
    transition: opacity 0.5s ease;
    position: relative;
}

.interactive-menu a:hover {
    opacity: 1;
}

/* Contenido del enlace */
.menu-number {
    font-family: 'DIN-Bold', sans-serif;
    color: #df69f2;
    font-size: 16px;
    font-weight: bold;
    width: 60px;
    letter-spacing: 1px;
}

.menu-text-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

.menu-title {
    font-family: 'DIN-Regular', sans-serif;
    font-size: 48px;
    color: var(--text-white);
    line-height: 1.1;
}

.menu-subtitle {
    font-family: 'DIN-Regular', sans-serif;
    font-weight: 300;
    color: #69f2f0;
    font-size: 15px;
    margin-top: 8px;
    opacity: 0.8;
}

.menu-arrow {
    font-family: 'DIN-Regular', sans-serif;
    font-size: 30px;
    color: var(--text-white);
    font-weight: 300;
    transition: transform 0.3s ease;
}

.interactive-menu a:hover .menu-arrow {
    transform: translateX(10px);
}

/* Interacción 2: Explosión de Fondo */
.interactive-menu a::before {
    content: attr(data-text);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Gotham-Bold', sans-serif;
    font-size: 12vw;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        height 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        letter-spacing 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.4s ease;
    letter-spacing: -20px;
    overflow: hidden;
}

.interactive-menu a:hover::before {
    width: 150vw;
    height: 150vw;
    opacity: 1;
    letter-spacing: 5px;
}

/* Colores de fondo por cada LI */
.interactive-menu li:nth-child(1) a::before {
    background-color: rgba(223, 105, 242, 0.4);
    /* #df69f2 */
}

.interactive-menu li:nth-child(2) a::before {
    background-color: rgba(105, 242, 240, 0.4);
    /* #69f2f0 */
}

.interactive-menu li:nth-child(3) a::before {
    background-color: rgba(177, 60, 253, 0.4);
    /* #b13cfd - neon-purple */
}

.interactive-menu li:nth-child(4) a::before {
    background-color: rgba(3, 221, 203, 0.4);
    /* #03ddcb - neon-cyan */
}

/* ==========================================
   BOTÓN HAMBURGUESA (Oculto inicialmente)
   ========================================== */
#openmenu {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

#openmenu span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

/* ==========================================
   ESTADO 1: STICKY (SCROLL ABAJO) -> CÍRCULO
   ========================================== */
.navbar-container.sticky {
    padding: 25px 70px;
    justify-content: flex-start;
}

.navbar-container.sticky .navbar {
    width: 70px;
    max-width: 70px;
    padding: 0;
    border-radius: 50%;
}

.navbar-container.sticky .navbar::after {
    border-radius: 50%;
}

.navbar-container.sticky .nav-logo-area,
.navbar-container.sticky .nav-links {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.navbar-container.sticky #openmenu {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================
   ESTADO 2: MENU ABIERTO (FULLSCREEN)
   ========================================== */
.navbar-container.menu-open {
    padding: 0;
    height: 100vh;
    width: 100vw;
}

.navbar-container.menu-open .navbar {
    width: 100%;
    max-width: 100%;
    height: 100%;
    border-radius: 0;
    flex-direction: column;
}

.navbar-container.menu-open .navbar::after {
    border-radius: 0;
}

.navbar-container.menu-open .nav-links {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-left: 0;
}

.navbar-container.menu-open .nav-links a {
    font-size: 30px;
}

.navbar-container.menu-open #openmenu {
    opacity: 1;
    pointer-events: auto;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
}

.navbar-container.menu-open #openmenu span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar-container.menu-open #openmenu span:nth-child(2) {
    opacity: 0;
}

.navbar-container.menu-open #openmenu span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Ocultar botones flotantes cuando el menú está abierto */
.navbar-container.menu-open~.floating-audio-btn,
.navbar-container.menu-open~.back-to-top {
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none !important;
}

/* ==========================================
   SECCIÓN SUPLEMENTOS (TABS GLASSMORPHISM)
   ========================================== */
.suplementos-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 50px 40px 100px 40px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.suplementos-wrapper {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 90px;
}

.suplementos-header {
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

/* Modal Glassmorphism */
.tabs-container {
    width: 100%;
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    min-height: 550px;
}

/* El listado se revela sólo cuando llega el catálogo real. Evita mostrar los
   nombres de maqueta mientras se consulta la tienda. */
.tabs-container.catalog-loading .pane-list {
    visibility: hidden;
}

.tabs-container.catalog-loading .pane-text::after {
    content: 'Cargando catálogo...';
    color: rgba(255, 255, 255, .72);
    font-family: 'DIN-Regular', sans-serif;
    font-size: 14px;
}

/* Ocultar Inputs */
input[name="suplementos_tabs"] {
    display: none;
}

/* Columna Izquierda (Sidebar) */
.tabs-sidebar {
    width: 35%;
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
    gap: 15px;
    /* Importante para el cálculo del active-marker */
}

/* Columna Derecha (Content Area) */
.tabs-content-area {
    width: 65%;
    position: relative;
    padding: 50px;
    display: flex;
    overflow: hidden;
}

/* Botones / Labels de las Pestañas */
.tab-label {
    position: relative;
    z-index: 2;
    /* Sobre el active-marker */
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    justify-content: center;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.6);
    height: 48px;
    /* Fijo para matemáticas del marker */
    margin: 0;
}

.tab-label:hover {
    color: #fff;
    transform: translateY(0px);
    /* Cancelar el Y original de .pill-btn para no desalinear */
}

/* Active Marker (El fondo luminoso que se mueve) */
.active-marker {
    position: absolute;
    top: 40px;
    /* Igual al padding-top del sidebar */
    left: 20px;
    /* Igual al padding-left */
    width: calc(100% - 40px);
    /* Restando padding lateral */
    height: 48px;
    /* Altura de un .tab-label */
    border-radius: 20px;
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
    z-index: 1;
    background: rgba(255, 255, 255, 0.05);
}

/* --- LÓGICA DE MOVIMIENTO Y COLOR DEL MARKER --- */
/* Saltos de (48px de label + 15px de gap) = 63px por paso */

#tab1:checked~.tabs-sidebar .active-marker {
    transform: translateY(0px);
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4), inset 0 0 10px rgba(59, 130, 246, 0.2);
}

#tab2:checked~.tabs-sidebar .active-marker {
    transform: translateY(63px);
    border-color: #8b5cf6;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4), inset 0 0 10px rgba(139, 92, 246, 0.2);
}

#tab3:checked~.tabs-sidebar .active-marker {
    transform: translateY(126px);
    border-color: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4), inset 0 0 10px rgba(245, 158, 11, 0.2);
}

#tab4:checked~.tabs-sidebar .active-marker {
    transform: translateY(189px);
    border-color: #ec4899;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.4), inset 0 0 10px rgba(236, 72, 153, 0.2);
}

#tab5:checked~.tabs-sidebar .active-marker {
    transform: translateY(252px);
    border-color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4), inset 0 0 10px rgba(16, 185, 129, 0.2);
}

#tab6:checked~.tabs-sidebar .active-marker {
    transform: translateY(315px);
    border-color: #06b6d4;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4), inset 0 0 10px rgba(6, 182, 212, 0.2);
}

/* --- TEXTO ACTIVO DE LAS PESTAÑAS --- */
#tab1:checked~.tabs-sidebar label[for="tab1"],
#tab2:checked~.tabs-sidebar label[for="tab2"],
#tab3:checked~.tabs-sidebar label[for="tab3"],
#tab4:checked~.tabs-sidebar label[for="tab4"],
#tab5:checked~.tabs-sidebar label[for="tab5"],
#tab6:checked~.tabs-sidebar label[for="tab6"] {
    color: #fff;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* --- LÓGICA DEL CONTENIDO DE LA DERECHA --- */
.content-pane {
    position: absolute;
    top: 50px;
    left: 50px;
    right: 50px;
    bottom: 50px;
    display: flex;
    opacity: 0;
    pointer-events: none;
    transform: translateX(40px);
    /* Ligero deslizamiento al entrar */
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Aparecer el contenido correcto basado en el radio activado */
#tab1:checked~.tabs-content-area .content-1,
#tab2:checked~.tabs-content-area .content-2,
#tab3:checked~.tabs-content-area .content-3,
#tab4:checked~.tabs-content-area .content-4,
#tab5:checked~.tabs-content-area .content-5,
#tab6:checked~.tabs-content-area .content-6 {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

/* Estilos Internos del Contenido (Imagen y Texto) */
.pane-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pane-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    text-align: right;
    gap: 15px;
}

.pane-title {
    font-size: 38px;
    font-family: 'DIN-Bold', sans-serif;
    letter-spacing: 2px;
    color: #fff;
    margin: 0;
}

.pane-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'DIN-Regular', sans-serif;
    font-size: 16px;
    line-height: 1.8;
}

.buy-btn {
    margin-top: 8px;
    padding: 10px 35px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-family: 'DIN-Regular', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.buy-btn:hover {
    transform: translateY(-3px);
    background: rgba(0, 242, 254, 0.15);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.preview-product-price {
    margin: 0;
    min-height: 22px;
    color: var(--neon-cyan);
    font-family: 'DIN-Bold', sans-serif;
    font-size: 18px;
    letter-spacing: .5px;
}

.buy-btn:disabled {
    cursor: not-allowed;
    opacity: .55;
    transform: none;
}

/* Carrito de la previsualización: se comporta como un menú lateral. */
.store-cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(3, 2, 18, .48);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
}

.store-cart-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.store-cart-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 501;
    width: min(420px, 92vw);
    padding: 30px 24px;
    color: var(--text-white);
    background: linear-gradient(145deg, rgba(0, 141, 144, .94), rgba(84, 34, 146, .96));
    border-left: 1px solid rgba(255, 255, 255, .22);
    box-shadow: -22px 0 60px rgba(0, 0, 0, .38), inset 0 0 45px rgba(255, 255, 255, .06);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transform: translateX(103%);
    transition: transform .34s cubic-bezier(.25, 1, .5, 1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.store-cart-drawer.is-open { transform: translateX(0); }
.store-cart-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.store-cart-heading h2 { margin: 0; font-family: 'DIN-Bold', sans-serif; font-size: 30px; letter-spacing: 1px; }
.store-cart-close {
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: var(--text-white);
}
.store-cart-close:hover { border-color: var(--neon-cyan); background: rgba(3, 221, 203, .14); }
.store-cart-items { display: grid; gap: 12px; overflow: auto; padding-right: 4px; }
.store-cart-line { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.store-cart-line strong { font-family: 'DIN-Bold', sans-serif; font-size: 17px; }
.store-cart-line small { color: rgba(255, 255, 255, .75); }
.store-cart-quantity { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.store-cart-quantity button { width: 28px; height: 28px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 8px; color: #fff; background: rgba(255, 255, 255, .07); }
.store-cart-summary { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .22); display: flex; justify-content: space-between; font-family: 'DIN-Bold', sans-serif; font-size: 21px; }
.store-cart-actions { display: grid; gap: 10px; }
.store-cart-actions .buy-btn { width: 100%; margin: 0; text-align: center; text-decoration: none; }
.store-cart-empty { margin: 0; color: rgba(255, 255, 255, .78); line-height: 1.5; }
body.store-cart-open { overflow: hidden; }

/* ==========================================
   RESPONSIVIDAD MÓVIL
   ========================================== */
@media (max-width: 900px) {
    .navbar {
        width: calc(100% - 40px);
        padding: 0 20px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 12px;
        letter-spacing: 0.8px;
    }

    .hero-bg-logo-container {
        width: 95%;
    }

    .trainer-container {
        height: 55vh;
    }
}

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

    .navbar {
        height: 60px;
        border-radius: 30px;
    }

    .nav-links {
        display: none;
        /* En producción se integrará menú móvil hamburguesa */
    }

    .trainer-container {
        height: 48vh;
        transform: translate(-50%, -43%);
    }

    .chat-card {
        padding: 20px;
        border-radius: 24px;
    }

    .chat-text {
        font-size: 13.5px;
    }

    .category-pills {
        gap: 8px;
    }

    .pill-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* ==========================================
   SECCIÓN: ALIMENTOS FUNCIONALES
   ========================================== */
.alimentos-section {
    position: relative;
    width: 100%;
    min-height: 80vh;
    padding: 100px 40px 100px 40px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.alimentos-layout {
    width: 100%;
    max-width: 950px;
    display: flex;
    height: 450px;
    margin-top: 90px;
    gap: 30px;
}

.alimentos-info-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease;
}

.alim-title {
    font-family: 'Gotham-Bold', sans-serif;
    font-size: 32px;
    color: var(--text-white);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(3, 221, 203, 0.4);
}

.alim-desc {
    font-family: 'DIN-Regular', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 30px;
}

.alim-cta {
    padding: 10px 35px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-family: 'DIN-Regular', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    align-self: flex-start;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.alim-cta:hover {
    transform: translateY(-3px);
    background: rgba(0, 242, 254, 0.15);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.alimentos-accordion {
    flex: 2;
    display: flex;
    gap: 10px;
    height: 100%;
}

.alim-panel {
    flex: 1;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: flex 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.5s ease;
    filter: grayscale(100%) brightness(0.6);
}

.alim-panel.is-active {
    flex: 4;
    filter: grayscale(0%) brightness(1);
    cursor: default;
}

.alim-panel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.alim-panel-content {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.alim-panel.is-active .alim-panel-content {
    opacity: 1;
    bottom: 30px;
    left: 30px;
    transform: none;
    text-align: left;
}

.alim-panel-title {
    font-family: 'DIN-Bold', sans-serif;
    font-size: 20px;
    color: var(--text-white);
    letter-spacing: 2px;
}

/* Responsiveness */
@media (max-width: 900px) {
    .alimentos-section {
        padding: 60px 20px;
    }

    .alimentos-layout {
        flex-direction: column;
        height: auto;
        margin-top: 40px;
        gap: 20px;
    }

    .alimentos-info-box {
        padding: 30px 20px;
    }

    .alim-title {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .alim-desc {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .alimentos-accordion {
        max-height: 0;
        opacity: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
        overflow: hidden;
        transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease, margin-top 0.5s ease;
        margin-top: 0;
    }
    
    .alimentos-accordion.is-open {
        max-height: 1000px;
        opacity: 1;
        margin-top: 20px;
    }
    
    .alim-panel {
        width: 100%;
        height: 70px;
        flex: none;
        transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
        background-position: center;
        border-radius: 16px;
    }
    
    .alim-panel.is-active {
        height: 220px;
        flex: none;
    }

    .alim-panel-content {
        opacity: 1 !important;
        bottom: 20px !important;
        left: 20px !important;
        transform: none !important;
        text-align: left !important;
        width: auto !important;
    }

    .alim-panel-title {
        font-size: 16px;
    }
}

/* ==========================================
   SECCIÓN: CASOS DE ÉXITO (TESTIMONIALES)
   ========================================== */

.casos-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 100px 40px 120px 40px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

/* Título — alineado al ancho del navbar (950px) */
.casos-header {
    width: 100%;
    max-width: 950px;
    display: flex;
    flex-direction: column;
    margin-bottom: 0px;
    /* reducido a 0 para subir toda la sección de tabs */
    position: relative;
    z-index: 2;
}

.casos-title-bold {
    font-family: 'Gotham-Bold', sans-serif;
    font-size: 95px;
    color: var(--text-white);
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
    line-height: 0.9;
}

.casos-title-light {
    font-family: 'DIN-Regular', sans-serif;
    font-size: 135px;
    color: var(--text-white);
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: right;
    line-height: 0.8;
    letter-spacing: 5px;
    margin-top: 5px;
}

/* Layout: Tarjeta + Imagen */
.casos-layout {
    width: 100%;
    max-width: 950px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0;
    position: relative;
    margin: 0 auto;
}

/* ==========================================
   WRAPPER EXTERIOR (foto flotante + tarjeta)
   ========================================== */
.perfil-card-outer {
    position: relative;
    width: 530px;
    min-width: 530px;
    flex-shrink: 0;
    padding-top: 80px;
}

/* Foto del paciente flotando POR ENCIMA del borde superior de la tarjeta */
.perfil-photo-floating {
    position: absolute;
    top: 20px;
    left: 22px;
    width: 155px;
    height: 210px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(3, 221, 203, 0.2);
    z-index: 10;
}

.perfil-photo-floating .perfil-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: opacity 0.25s ease;
}

/* En CONTACTO (foto de Pao) subimos la posición para evitar aire arriba */
.perfil-photo-floating.photo-pao .perfil-photo {
    object-position: 50% 15%;
}

.perfil-photo-floating .perfil-photo-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Gotham-Bold', sans-serif;
    font-size: 42px;
    background: linear-gradient(135deg, rgba(3, 221, 203, 0.3), rgba(177, 60, 253, 0.3));
    color: rgba(255, 255, 255, 0.5);
}

.perfil-photo-floating:not(.no-photo) .perfil-photo-placeholder {
    display: none;
}

/* ==========================================
   TARJETA DE PERFIL (CARD)
   ========================================== */
.perfil-card {
    width: 100%;
    min-height: 520px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    z-index: 5;
}

/* Borde gradiente en la card */
.perfil-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(3, 221, 203, 0.5), rgba(177, 60, 253, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Header de la tarjeta:
   la foto flota encima, así que dejamos padding-left para ocupar ese espacio */
.perfil-card-header {
    display: flex;
    align-items: stretch;
    padding: 18px 18px 16px 195px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 110px;
    transition: all 0.4s ease;
    position: relative;
}

/* MODO NORMAL: logo + datos del paciente */
.perfil-info-header {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: opacity 0.2s ease;
}

.perfil-info-contacto {
    flex: 1;
    display: none;
    /* oculto por defecto, JS lo activa */
    opacity: 0;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.perfil-logo-contacto {
    width: 140px;
    height: auto;
    object-fit: contain;
    /* Efecto outer glow cyan y colores originales */
    filter: drop-shadow(0 0 12px rgba(3, 221, 203, 0.7));
    opacity: 1;
}

/* Info del header */
.perfil-info-header {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.perfil-brand-logo {
    height: 30px;
    object-fit: contain;
    object-position: center;
    filter: brightness(1.2);
    opacity: 0.9;
}

.perfil-datos {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.perfil-dato-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.perfil-dato-label {
    font-family: 'DIN-Bold', sans-serif;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: #b33bff;
    text-transform: uppercase;
}

.perfil-dato-value {
    font-family: 'DIN-Regular', sans-serif;
    font-size: 15px;
    color: var(--text-white);
    transition: opacity 0.25s ease;
}

/* Cuerpo de la tarjeta */
.perfil-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Secciones de contenido */
.perfil-section {
    display: none;
    padding: 20px 22px;
    flex: 1;
    animation: fadeUpIn 0.45s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.perfil-section.is-active {
    display: block;
}

@keyframes fadeUpIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.perfil-section-subtitle {
    font-family: 'DIN-Bold', sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    color: #b33bff;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.perfil-section-desc {
    font-family: 'DIN-Regular', sans-serif;
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}

#bioContent {
    transition: opacity 0.25s ease;
}

/* ---- TIMELINE (Proceso) ---- */
.perfil-timeline {
    position: relative;
    padding-left: 8px;
    transition: opacity 0.25s ease;
}

.perfil-timeline::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(to bottom, var(--neon-cyan), var(--neon-purple));
    border-radius: 2px;
}

.perfil-timeline-item {
    position: relative;
    padding-left: 38px;
    padding-bottom: 18px;
    z-index: 1;
}

.perfil-timeline-item:last-child {
    padding-bottom: 4px;
}

.perfil-timeline-item::after {
    content: attr(data-week);
    position: absolute;
    left: 10px;
    top: 2px;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border-radius: 50%;
    border: 2px solid #0b8899;
    font-size: 0;
    box-shadow: 0 0 8px rgba(3, 221, 203, 0.6);
}

.timeline-item-title {
    font-family: 'DIN-Bold', sans-serif;
    font-size: 14px;
    color: var(--text-white);
    margin-bottom: 3px;
    letter-spacing: 0.5px;
}

.timeline-item-desc {
    font-family: 'DIN-Regular', sans-serif;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* ---- CONTACTO ---- */
.perfil-contact-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 6px;
}

.perfil-contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'DIN-Regular', sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.82);
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-decoration: none;
}

.perfil-contact-row:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

/* Filas clickables (links) */
.perfil-contact-link {
    cursor: pointer;
    transition: color 0.25s ease, transform 0.2s ease;
}

.perfil-contact-link:hover {
    color: var(--neon-cyan);
    transform: translateX(4px);
}

.perfil-contact-link:hover svg {
    stroke: var(--neon-cyan);
    opacity: 1;
}

.perfil-contact-row svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: var(--neon-cyan);
    opacity: 0.8;
    transition: stroke 0.25s ease, opacity 0.25s ease;
}

.perfil-cta-btn {
    margin-top: 10px;
    padding: 13px 20px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(90deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
    color: var(--text-white);
    font-family: 'DIN-Bold', sans-serif;
    font-size: 13px;
    letter-spacing: 1.5px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(177, 60, 253, 0.4);
}

.perfil-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(3, 221, 203, 0.5);
}

/* ---- NAVEGACIÓN INFERIOR: dots + tabs juntos ---- */
.perfil-bottom-nav {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Fila de dots (selector de caso) */
.perfil-casos-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px 8px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.1);
}

/* Fila de tabs (selector de sección) */
.perfil-tabs-nav {
    display: flex;
    background: rgba(0, 0, 0, 0.15);
}

.perfil-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    border-top: 2px solid transparent;
    padding: 13px 5px;
    font-family: 'DIN-Regular', sans-serif;
    font-size: 11px;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.perfil-tab-btn:hover {
    color: rgba(255, 255, 255, 0.85);
}

.perfil-tab-btn.is-active {
    color: var(--neon-cyan);
    border-top-color: var(--neon-cyan);
    background: linear-gradient(to bottom,
            rgba(3, 221, 203, 0.08) 0%,
            transparent 100%);
    text-shadow: 0 0 10px rgba(3, 221, 203, 0.5);
}

/* ==========================================
   IMAGEN DE PAO LARA (SCROLL-REVEAL)
   ========================================== */
.casos-trainer-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-left: 0;
    margin-left: 30px;
    /* cambiado de -30px a 30px para empujarla a la derecha */
    position: relative;
    top: 60px;
    /* bajada para separarla del título de la sección */
    /* Estado inicial: invisible y desplazada a la derecha */
    opacity: 0;
    transform: translateX(120px) scale(0.97);
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.casos-trainer-wrapper.in-view {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.casos-trainer-img {
    height: 680px;
    width: auto;
    object-fit: contain;
    object-position: bottom;
    filter: drop-shadow(-20px 10px 40px rgba(0, 0, 0, 0.6)) contrast(1.05);
}

/* ==========================================
   THUMBNAILS 
   ========================================== */
.perfil-casos-thumbs {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.1);
}

.caso-thumb {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.caso-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.3s ease;
}

.caso-thumb.is-active {
    border-color: var(--neon-purple);
    box-shadow: 0 0 12px rgba(177, 60, 253, 0.6);
    transform: scale(1.1);
}

.caso-thumb:hover:not(.is-active) {
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.caso-thumb:hover img {
    transform: scale(1.1);
}


/* Responsive Casos */
@media (max-width: 900px) {
    .casos-layout {
        flex-direction: column;
        align-items: center;
    }

    .perfil-card-outer {
        width: 100%;
        max-width: 400px;
    }

    .casos-trainer-wrapper {
        justify-content: center;
        margin-left: 0;
    }

    .casos-trainer-img {
        height: 420px;
    }

    .casos-title-bold {
        font-size: 60px;
    }

    .casos-title-light {
        font-size: 85px;
    }
}

@media (max-width: 600px) {
    .casos-section {
        padding: 80px 20px 80px 20px;
    }

    .casos-title-bold {
        font-size: 48px;
    }

    .casos-title-light {
        font-size: 68px;
    }

    .casos-trainer-img {
        height: 320px;
    }
}

/* ==========================================
   RESPONSIVE DESIGN (GLOBAL / MOBILE FIRST)
   ==========================================

   Estrategia en mobile (≤ 900px):
   - El navbar SIEMPRE está en su estado colapsado (círculo + hamburguesa)
     desde el primer scroll – igual que como se ve en desktop al hacer scroll.
   - El fondo aurora cubre 100dvh siempre.
   - Cada sección ajusta sus tamaños de fuente y layouts de columnas.
   ========================================== */

@media (max-width: 900px) {

    /* ==== FONDO: en mobile se ocultan los blobs animados.
       El gradiente del body cubre toda la pantalla sin parpadeos. ==== */
    .aurora-bg {
        display: none;
    }

    /* ==== NAVBAR — SIEMPRE COLAPSADO (círculo hamburguesa) ==== */

    /* Resetear estilos que venían del estado normal (desktop expanded) */
    .navbar-container {
        padding: 20px 20px !important;
        justify-content: flex-start !important;
    }

    /* El navbar siempre es el círculo pequeño */
    .navbar {
        width: 70px !important;
        max-width: 70px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        min-height: 70px;
        height: 70px !important;
    }

    .navbar::after {
        border-radius: 50% !important;
    }

    /* Logo y links siempre ocultos (como cuando hay scroll en desktop) */
    .navbar .nav-logo-area,
    .navbar .nav-links {
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        transform: scale(0.5) !important;
    }

    /* Hamburguesa siempre visible */
    #openmenu {
        opacity: 1 !important;
        pointer-events: auto !important;
        position: absolute !important;
        width: 100% !important;
        height: 100% !important;
        top: 0 !important;
        right: 0 !important;
    }

    /* Cuando sticky, mismo comportamiento (ya estaba resuelto, reforzamos) */
    .navbar-container.sticky {
        padding: 20px 20px !important;
        justify-content: flex-start !important;
    }

    .navbar-container.sticky .navbar {
        width: 70px !important;
        max-width: 70px !important;
        border-radius: 50% !important;
    }

    /* Cuando el menú está abierto (fullscreen) */
    .navbar-container.menu-open {
        padding: 0 !important;
        height: 100vh !important;
        width: 100vw !important;
    }

    .navbar-container.menu-open .navbar {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
        flex-direction: column !important;
        min-height: unset !important;
        justify-content: center !important;
        padding-top: 0 !important;
        gap: 20px;
    }

    /* Eliminar la elipse (borde del pill/círculo) cuando el menú está abierto */
    .navbar-container.menu-open .navbar::after {
        display: none !important;
    }

    /* Logo: centrado y más grande */
    .navbar-container.menu-open .nav-logo-area {
        opacity: 1 !important;
        pointer-events: auto !important;
        position: relative !important;
        transform: scale(1) !important;
        display: flex !important;
        justify-content: center;
        align-items: center;
        margin-bottom: 40px; /* Mayor espacio respecto al menú (textos) */
        margin-top: -80px;   /* Más arriba */
    }

    .navbar-container.menu-open .nav-logo {
        height: 80px;
    }

    .navbar-container.menu-open .nav-links {
        opacity: 1 !important;
        pointer-events: auto !important;
        position: relative !important;
        transform: scale(1) !important;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 40px;
        margin-left: 0;
    }

    /* X de cerrar: esquina superior derecha con glow cyan */
    .navbar-container.menu-open #openmenu {
        position: absolute !important;
        top: 20px !important;
        right: 20px !important;
        width: 50px !important;
        height: 50px !important;
    }

    .navbar-container.menu-open #openmenu span {
        background: var(--neon-cyan) !important;
        box-shadow: 0 0 10px var(--neon-cyan), 0 0 20px rgba(3, 221, 203, 0.5) !important;
    }


    /* Audio btn - restaurado a su posición correcta a la derecha */
    .floating-audio-btn {
        top: 20px;
        right: 20px;
        left: auto;
    }

    .back-to-top {
        right: 20px;
        bottom: 20px;
    }

    /* ==== HERO SECTION ==== */
    .hero-section {
        padding-top: 110px;
        padding-bottom: 50px;
        padding-left: 15px;
        padding-right: 15px;
        min-height: 100dvh;
        overflow: hidden;
    }

    .hero-bg-logo-container {
        width: 90%;
        left: 50%;
        top: 35%;
        transform: translate(-50%, -50%);
    }

    .hero-bg-logo {
        width: 100%;
    }

    .trainer-container {
        position: absolute;
        top: 60px;
        left: 50%;
        transform: translateX(-50%);
        height: 52vh;
        max-height: 380px;
        margin-top: 0;
    }

    .trainer-img {
        height: 100%;
        width: auto;
    }

    .chat-card-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin-top: 260px;
        transform: none;
        z-index: 10;
    }

    .chat-card {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .fake-placeholder {
        font-size: 15px;
        min-height: 80px;
    }

    .chat-input {
        font-size: 15px;
    }

    .chat-controls {
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    /* ==== PÍLDORAS SLIDER ==== */
    .category-pills {
        margin-left: -18px;
        margin-right: -18px;
        padding-left: 18px;
        padding-right: 18px;
        width: calc(100% + 36px);
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        padding-bottom: 14px;
        gap: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--neon-cyan) rgba(255, 255, 255, 0.05);
    }

    .pill-btn {
        flex: 0 0 auto;
    }

    .category-pills::-webkit-scrollbar {
        height: 4px;
    }

    .category-pills::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
    }

    .category-pills::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
        border-radius: 4px;
    }

    /* ==== ABOUT / SOBRE MÍ ==== */
    .about-section {
        padding: 50px 15px 50px 15px;
        min-height: auto;
        overflow: hidden;
    }

    .about-wrapper {
        margin-left: 0 !important;
        max-width: 100%;
        position: relative;
        min-height: 380px;
    }

    /* Títulos: Bold arriba izquierda, Light arriba derecha */
    .title-bold-layer {
        font-size: 36px;
        text-align: left;
        position: relative;
        z-index: 6;
        line-height: 1.1;
    }

    .title-light-layer {
        font-size: 54px;
        text-align: right;
        letter-spacing: 1px;
        position: relative;
        z-index: 6;
        margin-top: -4px;
    }

    .image-layer {
        position: absolute !important;
        left: -30px !important;
        bottom: 0 !important;
        top: auto !important;
        width: auto !important;
        z-index: 5 !important;
        justify-content: flex-start !important;
        margin: 0 !important;
        opacity: 0 !important;
        transform: translateX(-80px) !important;
        transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
            transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .about-section.in-view .image-layer {
        opacity: 1 !important;
        transform: translateX(0) !important;
    }

    .about-img {
        height: 280px !important;
        width: auto;
    }

    .video-layer {
        width: 85% !important;
        max-width: 85% !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        margin-top: 55px;
        position: relative !important;
        z-index: 3;
        transform: none !important;
        opacity: 1 !important;
    }

    .about-section.in-view .video-layer {
        transform: none !important;
    }


    /* ==== SERVICIOS ==== */
    .services-section {
        padding: 50px 20px 50px 20px;
        min-height: auto;
    }

    .services-header .title-bold-layer {
        font-size: 48px;
        text-align: left;
    }

    .services-header .title-light-layer {
        font-size: 64px;
        text-align: right;
    }

    .menu-title {
        font-size: 28px;
    }

    .interactive-menu a {
        padding: 22px 0;
    }

    /* ==== SUPLEMENTOS ==== */
    .suplementos-section {
        padding: 50px 15px 50px 15px;
    }

    .suplementos-header .title-bold-layer {
        font-size: 38px !important;
        text-align: left;
    }

    .suplementos-header .title-light-layer {
        font-size: 50px !important;
        text-align: right;
    }

    /* Tabs: apilar sidebar arriba y contenido abajo */
    .tabs-container {
        flex-direction: column;
        min-height: auto;
        overflow: visible;
    }

    .tabs-sidebar {
        width: 100% !important;
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 8px !important;
        padding: 15px 12px !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: center;
    }

    /* Marcador activo desactivado en mobile (usa fondo de label directamente) */
    .active-marker {
        display: none !important;
    }

    .tab-label {
        font-size: 13px !important;
        height: auto !important;
        padding: 8px 14px !important;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
    }

    #tab1:checked~.tabs-sidebar label[for="tab1"],
    #tab2:checked~.tabs-sidebar label[for="tab2"],
    #tab3:checked~.tabs-sidebar label[for="tab3"],
    #tab4:checked~.tabs-sidebar label[for="tab4"],
    #tab5:checked~.tabs-sidebar label[for="tab5"],
    #tab6:checked~.tabs-sidebar label[for="tab6"] {
        background: rgba(3, 221, 203, 0.2);
        border-color: var(--neon-cyan) !important;
        color: #fff;
    }

    .tabs-content-area {
        width: 100% !important;
        padding: 25px 18px !important;
        min-height: 520px;
    }

    .content-pane {
        top: 25px;
        left: 18px;
        right: 18px;
        bottom: 25px;
        flex-direction: column;
        gap: 20px;
        overflow-y: auto;
    }

    .pane-text {
        align-items: flex-start;
        text-align: left;
    }

    .pane-title {
        font-size: 26px !important;
    }

    .pane-list {
        font-size: 14px;
    }

    /* ==== TESTIMONIALES ==== */
    .casos-section {
        padding: 50px 15px 50px 15px;
    }

    .casos-header {
        max-width: 100%;
    }

    .casos-title-bold {
        font-size: 48px !important;
    }

    .casos-title-light {
        font-size: 68px !important;
    }

    .casos-layout {
        max-width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .perfil-card-outer {
        width: 100% !important;
        min-width: unset !important;
    }

    .casos-trainer-wrapper {
        display: none;
    }
}

/* ==========================================
   SUPLEMENTOS LIST STYLES
   ========================================== */
.sidebar-logo-container {
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
    width: 100%;
}

.sidebar-logo {
    max-width: 50%;
    height: auto;
    opacity: 0.8;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.15));
    transition: all 0.3s ease;
}

.sidebar-logo:hover {
    opacity: 1;
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(3, 221, 203, 0.4));
}
.list-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.pane-list.custom-scroll {
    max-height: 275px;
    overflow-y: auto;
    padding-right: 10px;
    list-style: none;
    margin: 0;
}

/* Custom Scrollbar */
.pane-list.custom-scroll::-webkit-scrollbar {
    width: 6px;
}

.pane-list.custom-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.pane-list.custom-scroll::-webkit-scrollbar-thumb {
    background: rgba(3, 221, 203, 0.5);
    border-radius: 10px;
}

.pane-list.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

.product-item {
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'DIN-Regular', sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.product-item:hover {
    background: rgba(3, 221, 203, 0.1);
    border-color: rgba(3, 221, 203, 0.3);
    color: var(--text-white);
    transform: translateX(5px);
}

.product-item.is-active {
    background: linear-gradient(90deg, rgba(3, 221, 203, 0.15) 0%, rgba(177, 60, 253, 0.15) 100%);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: 'DIN-Bold', sans-serif;
    box-shadow: 0 0 10px rgba(3, 221, 203, 0.2);
}

.scroll-arrow {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 5px;
    margin-bottom: 5px;
    animation: bounce-relative 2s infinite;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.scroll-arrow svg {
    filter: drop-shadow(0 2px 4px rgba(3, 221, 203, 0.4));
}

@keyframes bounce-relative {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* ---- SCROLLABLE CONTENT IN TESTIMONIALS ---- */
.scrollable-content {
    overflow-y: auto;
    padding-right: 8px;
    margin-bottom: 5px;
}

.scrollable-content.custom-scroll::-webkit-scrollbar { width: 6px; }
.scrollable-content.custom-scroll::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 10px; }
.scrollable-content.custom-scroll::-webkit-scrollbar-thumb { background: rgba(3, 221, 203, 0.5); border-radius: 10px; }
.scrollable-content.custom-scroll::-webkit-scrollbar-thumb:hover { background: var(--neon-cyan); }

.testimonial-arrow {
    display: none;
    margin-top: -5px;
}

@media (max-width: 768px) {
    .scrollable-content {
        max-height: 180px;
    }
    .testimonial-arrow {
        display: flex;
    }
}

/* ==== Pantallas muy pequeñas (≤ 480px) ==== */
@media (max-width: 480px) {

    .trainer-container {
        height: 44vh;
        max-height: 290px;
    }

    .chat-card-container {
        margin-top: 220px;
    }

    .title-bold-layer {
        font-size: 38px;
    }

    .title-light-layer {
        font-size: 54px;
    }

    .menu-title {
        font-size: 22px;
    }

    .casos-title-bold {
        font-size: 38px !important;
    }

    .casos-title-light {
        font-size: 52px !important;
    }

    .welcome-logo {
        width: 220px;
        height: 220px;
    }

}

/* ======================================================
   MODAL DE CAPTACIÓN DE PROSPECTOS (GLASSMORPHISM)
   ====================================================== */
.lead-modal-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 4, 21, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 20px;
    overflow: hidden;
}

.lead-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lead-modal-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.05);
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lead-modal-overlay.active .lead-modal-card {
    transform: translateY(0);
}

/* Formularios largos: el cuadro se mantiene dentro de la vista y sólo su
   contenido se desplaza. Así el fondo del panel no se corta en pantallas
   bajas, tablets ni teléfonos. */
.product-modal-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-modal-card .lead-modal-title {
    flex: 0 0 auto;
    margin: 0;
    padding: 0 38px 14px 0;
}

.product-modal-card form {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
}

.product-modal-card .lead-submit-btn {
    position: sticky;
    bottom: 0;
    z-index: 1;
    margin-bottom: 0;
    box-shadow: 0 -12px 22px rgba(20, 9, 45, .45);
}

@media (max-width: 680px) {
    .lead-modal-overlay {
        align-items: flex-start;
        padding: 12px;
        overflow-y: auto;
    }

    .lead-modal-card {
        max-height: calc(100dvh - 24px);
        padding: 22px 18px;
        border-radius: 18px;
    }

    .lead-modal-title {
        font-size: 24px;
        padding-right: 34px;
    }

    .lead-modal-close {
        top: 12px;
        right: 12px;
    }

    .product-modal-card .form-grid-2,
    .lead-modal-card .form-grid-2 {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .product-modal-card .form-grid-2 .lead-form-group {
        margin-bottom: 0 !important;
    }
}

@media (max-height: 720px) and (min-width: 681px) {
    .lead-modal-overlay { padding: 12px; }
    .lead-modal-card { max-height: calc(100dvh - 24px); padding: 22px 26px; }
    .lead-form-group { margin-bottom: 14px; }
    .product-modal-card .lead-modal-title { padding-bottom: 10px; }
}

.lead-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

.lead-modal-close:hover {
    color: var(--neon-cyan);
}

.lead-modal-title {
    font-family: 'DIN-Condensed-Bold', sans-serif;
    font-size: 28px;
    letter-spacing: 1.5px;
    color: var(--text-white);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.lead-modal-subtitle {
    font-family: 'DIN-Regular', sans-serif;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.lead-form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lead-label {
    font-family: 'DIN-Regular', sans-serif;
    font-size: 13px;
    color: var(--neon-cyan);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: left;
}

.lead-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 14px;
    color: var(--text-white);
    font-family: 'DIN-Regular', sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.lead-input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(3, 221, 203, 0.2);
}

.lead-input option {
    background: #070415;
    color: var(--text-white);
}

.lead-submit-btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border-radius: 12px;
    border: 1px solid var(--neon-cyan);
    background: rgba(3, 221, 203, 0.1);
    color: var(--neon-cyan);
    font-family: 'DIN-Condensed-Bold', sans-serif;
    font-size: 18px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.lead-submit-btn:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--neon-cyan);
}

/* Toast de Notificación */
.lead-toast {
    position: fixed;
    bottom: -80px;
    left: 30px;
    background: rgba(7, 4, 21, 0.9);
    border: 1px solid var(--neon-cyan);
    border-radius: 15px;
    padding: 15px 25px;
    z-index: 100000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(3, 221, 203, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lead-toast.active {
    bottom: 30px;
}

.lead-toast-title {
    font-family: 'DIN-Bold', sans-serif;
    font-size: 15px;
    color: var(--neon-cyan);
}

.lead-toast-desc {
    font-family: 'DIN-Regular', sans-serif;
    font-size: 13px;
    color: var(--text-white);
}

.lead-toast.toast-error {
    border-color: #e74c3c;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(231, 76, 60, 0.25);
}

.lead-toast.toast-error .lead-toast-title {
    color: #e74c3c;
}

/* ============================
   FOOTER
   ============================ */
.site-footer {
    position: relative;
    z-index: 10;
    padding: 40px 20px 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.footer-logo {
    height: 40px;
    width: auto;
    opacity: 0.85;
}

.footer-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: 'DIN-Bold', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

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

.footer-copy {
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.6;
    font-family: 'DIN-Regular', sans-serif;
    margin: 0;
}

.footer-admin-lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    color: var(--text-muted);
    opacity: 0.35;
    vertical-align: middle;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-admin-lock:hover {
    opacity: 1;
    color: var(--neon-cyan);
}

/* ============================
   CONTENIDO INFORMATIVO / SEO
   ============================ */
.discovery-section {
    position: relative;
    z-index: 10;
    padding: 90px 20px 40px;
}

.discovery-wrapper {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 56px);
    border: 1px solid rgba(3, 221, 203, 0.2);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(7, 4, 21, 0.72), rgba(45, 19, 81, 0.58));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.discovery-eyebrow {
    margin: 0 0 10px;
    color: var(--neon-cyan);
    font-family: 'DIN-Bold', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.13em;
}

.discovery-wrapper h1 {
    margin: 0;
    color: var(--text-white);
    font-family: 'DIN-Condensed-Bold', 'DIN-Bold', sans-serif;
    font-size: clamp(2rem, 5vw, 3.4rem);
    letter-spacing: 0.03em;
    line-height: 1;
    text-transform: uppercase;
}

.discovery-intro,
.discovery-note {
    max-width: 820px;
    color: var(--text-muted);
    font-family: 'DIN-Regular', sans-serif;
    font-size: 1.05rem;
    line-height: 1.65;
}

.discovery-intro {
    margin: 22px 0 0;
}

.discovery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 32px;
}

.discovery-card {
    min-height: 100%;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
}

.discovery-card h3 {
    margin: 0;
    color: var(--neon-cyan);
    font-family: 'DIN-Bold', sans-serif;
    font-size: 1.2rem;
}

.discovery-card p {
    margin: 12px 0 0;
    color: var(--text-muted);
    font-family: 'DIN-Regular', sans-serif;
    line-height: 1.55;
}

.discovery-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--neon-cyan);
    font-family: 'DIN-Bold', sans-serif;
    text-decoration: none;
}

.discovery-link:hover,
.discovery-link:focus-visible {
    color: var(--text-white);
    text-decoration: underline;
}

.discovery-note {
    margin: 26px 0 0;
    font-size: 0.92rem;
}

@media (max-width: 800px) {
    .discovery-section {
        padding-top: 60px;
    }

    .discovery-grid {
        grid-template-columns: 1fr;
    }
}
