/* ==========================================================================
   ESCUELA NACIONAL DE BARBEROS — Design System
   ==========================================================================
   Inspired by bevel.health aesthetic: dark, immersive, premium.
   Features: Glassmorphism, smooth animations, 3D transforms, gradients.
   ========================================================================== */

/* ── Fuentes Locales (Parabolica) ──────────────────────────────────────── */
@font-face {
    font-family: 'Parabolica';
    src: url('../fonts/parabolica/ParabolicaTest-Regular-BF643e085b3654e.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Parabolica';
    src: url('../fonts/parabolica/ParabolicaTest-Medium-BF643e085ae3392.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Parabolica';
    src: url('../fonts/parabolica/ParabolicaTest-Bold-BF643e085ad372a.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Parabolica';
    src: url('../fonts/parabolica/ParabolicaTest-Black-BF643e085a31d57.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ParabolicaText';
    src: url('../fonts/parabolica/ParabolicaTextTest-Regular-BF643e085bc259c.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ParabolicaText';
    src: url('../fonts/parabolica/ParabolicaTextTest-Medium-BF643e085b75ce3.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ParabolicaText';
    src: url('../fonts/parabolica/ParabolicaTextTest-Bold-BF643e085b7d068.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ── CSS Custom Properties (Design Tokens) ─────────────────────────────── */
:root {
    /* Colors — Light Premium Palette */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.4);
    --bg-glass-hover: rgba(255, 255, 255, 0.6);

    /* Gold accent palette (Mismos acentos dorados) */
    --gold-100: #FFF8E1;
    --gold-200: #F5E6A3;
    --gold-300: #E8D068;
    --gold-400: #D4AF37;
    --gold-500: #C9A84C;
    --gold-600: #8B6914;
    --gold-700: #6B4F0A;
    --gold-gradient: linear-gradient(135deg, #C9A84C 0%, #8B6914 50%, #D4AF37 100%);
    --gold-gradient-h: linear-gradient(135deg, #D4AF37 0%, #C9A84C 50%, #8B6914 100%);

    /* Text */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --text-gold: #C9A84C;

    /* Borders */
    --border-glass: rgba(0, 0, 0, 0.08);
    --border-glass-hover: rgba(201, 168, 76, 0.4);
    --border-gold: rgba(201, 168, 76, 0.5);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.08);
    --shadow-gold: 0 8px 32px rgba(201, 168, 76, 0.15);
    --shadow-gold-lg: 0 16px 48px rgba(201, 168, 76, 0.25);

    /* Typography */
    --font-primary: 'Parabolica', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'ParabolicaText', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: clamp(80px, 12vh, 160px) clamp(20px, 5vw, 120px);
    --container-max: 1280px;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Z-index layers */
    --z-bg: -1;
    --z-content: 1;
    --z-sticky: 100;
    --z-nav: 1000;
    --z-modal: 2000;
    --z-overlay: 3000;
}

/* ── Reset & Base ──────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    overflow-x: clip;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: clip;
    position: relative;
}

.hero {
    padding-top: 10vh;
}

.hero__logo-img {
    height: 120px;
    width: auto;
    object-fit: contain;
    border-radius: 50%;
}

.loader__logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    border-radius: 10px;
}

.footer__logo-img {
    height: 28px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* Cursor personalizado */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gold-500);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s var(--ease-out-expo),
        opacity 0.3s ease,
        background 0.3s ease;
    mix-blend-mode: difference;
}

.custom-cursor.hover {
    transform: scale(2.5);
    background: rgba(201, 168, 76, 0.1);
    border-color: var(--gold-400);
}

/* ── Background Effects ────────────────────────────────────────────────── */
.bg-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.04;
    z-index: var(--z-bg);
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

.bg-gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: var(--z-bg);
}

.bg-gradient-orb--gold {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.bg-gradient-orb--blue {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(74, 144, 217, 0.1) 0%, transparent 70%);
    bottom: 20%;
    left: -150px;
}

.bg-gradient-orb--purple {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    top: 50%;
    right: 10%;
}

/* ── Navigation ────────────────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-nav);
    padding: 1.2rem clamp(20px, 5vw, 80px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-glass);
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    z-index: 10;
}

.nav__logo-icon {
    width: 42px;
    height: 42px;
    background: var(--gold-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--bg-primary);
    font-weight: 800;
    font-family: var(--font-primary);
}

.nav__logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.nav__logo-img {
    height: auto;
    max-height: 40px;
    /* Tamaño base sugerido */
    transform: scale(1.5);
    transform-origin: left center;
    margin-top: 15px;
    transition: transform 0.3s ease, margin-top 0.3s ease;
}

.nav__logo-text {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.15rem;
    color: #000000;
    letter-spacing: -0.02em;
}

.nav__logo-text span {
    color: #000000;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav__link {
    color: #000000;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-gradient);
    transition: width 0.4s var(--ease-out-expo);
    border-radius: 2px;
}

.nav__link:hover {
    color: var(--gold-500);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.6rem;
    background: var(--gold-gradient);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    transition: transform 0.3s var(--ease-out-expo),
        box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.nav__cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* Mobile nav toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    padding: 5px;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.4s var(--ease-out-expo),
        opacity 0.3s ease;
}

.nav__toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero Section ──────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    padding-bottom: var(--section-padding);
    padding-left: var(--section-padding);
    padding-right: var(--section-padding);
    overflow: hidden;
    isolation: isolate;
    /* Create stacking context for video */
}

/* Difuminado inferior para integrar con la siguiente sección */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25vh;
    /* 25% de la altura de la pantalla */
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
    z-index: -1;
    pointer-events: none;
}

.video-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    /* Forza al video a tener altura aunque el height: 100% falle */
    object-fit: cover;
    z-index: 0;
    /* Forzar Aceleración de Hardware en Android/Webkit */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 6, 11, 0.15);
    z-index: 1;
    /* Encima del video */
}

.hero__fade-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    opacity: 0;
    z-index: 1;
    /* Encima del video */
    pointer-events: none;
}

.hero__grid {
    display: grid;
    /* Since we removed the 3D element, we can make it a single column centered or keep the 2 columns if the user wants it to look the same. The original was 1fr 1fr. I'll change it to 1fr to center the content or just leave it as is. */
    /* Wait, the user didn't ask to center it. I will remove grid-template-columns so it just flows naturally or keep 1fr 1fr but since there is only 1 child now, it's fine. Let's make it 1fr. */
    grid-template-columns: 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
    max-width: var(--container-max);
    width: 100%;
    position: relative;
    z-index: var(--z-content);
}

.hero__content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem 0.4rem 0.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

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

    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

.hero__title {
    font-family: var(--font-primary);
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero__title-line {
    display: block;
    overflow: hidden;
}

.hero__title-word {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
}

.hero__title .accent {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 480px;
    font-weight: 400;
    margin-left: auto;
    margin-right: auto;
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    background: var(--gold-gradient);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: transform 0.4s var(--ease-out-expo),
        box-shadow 0.4s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

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

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-gold-lg);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--border-glass);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--gold-500);
    color: var(--gold-400);
    background: rgba(201, 168, 76, 0.05);
}

.hero__stats .btn-secondary:hover {
    color: var(--text-primary);
}

.hero__stats {
    position: absolute;
    left: clamp(20px, 5vw, 80px);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    border-top: none;
    margin-top: 0;
    padding-top: 0;
    width: auto;
    z-index: 10;
}

.hero__stat {
    text-align: left;
}

.hero__stat-number {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.hero__stat-label {
    font-size: 0.8rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Hero 3D Canvas */
.hero__3d {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero-canvas {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.hero__3d-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.1) 0%, transparent 70%);
    filter: blur(60px);
    animation: float-glow 6s ease-in-out infinite alternate;
}

@keyframes float-glow {
    0% {
        transform: scale(1) translateY(0);
    }

    100% {
        transform: scale(1.1) translateY(-20px);
    }
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-tertiary);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    animation: float-scroll 2s ease-in-out infinite;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold-500), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes float-scroll {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

@keyframes scroll-line {
    0% {
        opacity: 1;
        height: 40px;
    }

    50% {
        opacity: 0.3;
        height: 20px;
    }

    100% {
        opacity: 1;
        height: 40px;
    }
}

/* ── Section Commons ───────────────────────────────────────────────────── */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section__container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.section__header {
    text-align: center;
    margin-bottom: clamp(3rem, 6vh, 5rem);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--gold-500);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.section__title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.section__title .accent {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section__description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Section divider */
.section__divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
    margin: 0 auto;
}

/* ── Course Cards — Slider ────────────────────────────────────── */
.courses__slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0 3rem;
    /* padding for box-shadow on hover */
}

.courses__track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
    perspective: 1200px;
}

/* Indicadores del Slider (Círculos) */
.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 1.5rem;
}

.slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    /* Círculo perfecto */
    background: #94a3b8;
    /* Color plomo */
    opacity: 0.5;
    /* Ligeramente opaco para verse bien */
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--gold-gradient);
    /* Color dorado */
    opacity: 1;
    /* Totalmente visible */
    transform: scale(1.15);
    /* Crece un poquito para destacar */
}

.course-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.6s var(--ease-out-expo),
        box-shadow 0.6s var(--ease-out-expo);
    transform-style: preserve-3d;
    flex: 0 0 calc((100% - 3rem) / 3);
    /* 3 cards */
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.course-card__inner {
    position: relative;
    padding: 2rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color 0.4s ease, background 0.4s ease;
    overflow: hidden;
    z-index: 1;
    /* Para aislar contenido */
}

.course-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    /* Desvanecido intenso */
    z-index: -1;
    transition: opacity 0.5s ease, transform 0.8s ease;
    pointer-events: none;
}

.course-card:hover .course-card__image {
    opacity: 0.35;
    transform: scale(1.05);
}

.course-card:hover .course-card__inner {
    border-color: var(--border-glass-hover);
    background: var(--bg-glass-hover);
}

/* Gradient accent line at top */
.course-card__accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.course-card:hover .course-card__accent {
    opacity: 1;
}

/* Shimmer effect on hover */
.course-card__shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transition: left 0.8s ease;
}

.course-card:hover .course-card__shimmer {
    left: 100%;
}

.course-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    transition: transform 0.4s var(--ease-out-expo);
}

.course-card:hover .course-card__icon {
    transform: scale(1.1) rotate(-5deg);
}

.course-card__duration {
    position: absolute;
    top: 2rem;
    right: 2rem;
    padding: 0.3rem 0.8rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.course-card__title {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    letter-spacing: -0.01em;
}

.course-card__subtitle {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.course-card__description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.course-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.7rem 1.4rem;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border-glass);
    transition: all 0.3s ease;
    cursor: pointer;
    width: fit-content;
}

.course-card__cta:hover {
    border-color: var(--gold-500);
    color: var(--gold-400);
    background: rgba(201, 168, 76, 0.08);
}

.course-card__cta svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s var(--ease-out-expo);
}

.course-card__cta:hover svg {
    transform: translateX(4px);
}

/* ── Seminars Section ──────────────────────────────────────────────────── */
.seminars {
    background: var(--bg-secondary);
}

.seminars__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.seminar-card {
    position: relative;
    padding: 2.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    transition: all 0.4s var(--ease-out-expo);
    overflow: hidden;
}

.seminar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(201, 168, 76, 0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.seminar-card:hover::before {
    opacity: 1;
}

.seminar-card:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-4px);
}

.seminar-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.2rem;
}

.seminar-card__badge--free {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.seminar-card__badge--paid {
    background: rgba(201, 168, 76, 0.1);
    color: var(--gold-400);
    border: 1px solid rgba(201, 168, 76, 0.2);
}

.seminar-card__title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
}

.seminar-card__description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.seminar-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.seminar-card__meta-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.seminar-card__meta-icon {
    width: 32px;
    height: 32px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.seminar-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.8rem 1.6rem;
    background: var(--gold-gradient);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}

.seminar-card__cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* ── CTA Section ───────────────────────────────────────────────────────── */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta__container {
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: var(--z-content);
}

.cta__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.06) 0%, transparent 60%);
}

.cta__title {
    font-family: var(--font-primary);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.cta__description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer {
    background: var(--bg-secondary);
    padding: clamp(3rem, 6vh, 5rem) clamp(20px, 5vw, 80px);
    border-top: 1px solid var(--border-glass);
}

.footer__container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer__brand {
    max-width: 300px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    text-decoration: none;
}

.footer__logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gold-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--bg-primary);
    font-weight: 800;
    font-family: var(--font-primary);
}

.footer__logo-text {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.footer__about {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer__col-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.2rem;
}

.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer__link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: var(--gold-500);
}

.footer__bottom {
    max-width: var(--container-max);
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer__social a:hover {
    border-color: var(--gold-500);
    color: var(--gold-400);
    background: rgba(201, 168, 76, 0.08);
}

/* ── Reveal Animations ─────────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__content {
        max-width: 100%;
        order: 2;
    }

    .hero__3d {
        order: 1;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__stats {
        position: absolute;
    }

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

@media (max-width: 768px) {
    .nav__logo-img {
        transform: scale(1.1);
        margin-top: 10px;
    }

    .nav__links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(6, 6, 11, 0.97);
        backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.5s var(--ease-out-expo);
    }

    .nav__links.open {
        transform: translateX(0);
    }

    .nav__links .nav__link {
        font-size: 1.3rem;
    }

    .nav__toggle {
        display: flex;
    }

    .course-card {
        flex: 0 0 calc((100% - 1.5rem) / 2);
        /* 2 cards en tablet */
    }

    .hero {
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 15vh;
        background-image: url('../recursos/img/hero-movil.jpg?v=6') !important;
        background-size: cover !important;
        background-position: center !important;
    }

    .video-fondo {
        display: none !important;
    }

    .mobile-fondo {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .course-card {
        flex: 0 0 100%;
        /* 1 card en móvil */
    }

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



    .hero__stats {
        display: none;
        /* Eliminamos las métricas y porcentajes en celular */
    }

    .hero__scroll {
        display: none;
        /* Ocultar scroll icon en móvil para evitar que se superponga */
    }

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

    .footer__bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .custom-cursor {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2.2rem;
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .section__title {
        font-size: 1.8rem;
    }
}

/* ── Loading screen ────────────────────────────────────────────────────── */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.loader__icon {
    width: 50px;
    height: 50px;
    background: var(--gold-gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--bg-primary);
    font-weight: 800;
    font-family: var(--font-primary);
    animation: loader-pulse 1.5s ease-in-out infinite;
}

@keyframes loader-pulse {

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

    50% {
        transform: scale(1.15);
        opacity: 0.7;
    }
}

.loader__bar {
    width: 120px;
    height: 3px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.loader__bar-fill {
    width: 0;
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 3px;
    animation: loader-fill 1.8s var(--ease-out-expo) forwards;
}

@keyframes loader-fill {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

/* ── Smooth scroll bar ─────────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 168, 76, 0.5);
}

/* ── Selection ─────────────────────────────────────────────────────────── */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: var(--text-primary);
}

/* ── Botón WhatsApp Flotante ────────────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    left: auto;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease, opacity 0.4s ease, visibility 0.4s ease;
    animation: float-ws 3s ease-in-out infinite alternate;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.whatsapp-float.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
    color: #FFF;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

@keyframes float-ws {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-8px);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        left: auto;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

/* ══════════════════════════════════════════════════════════════════
   PÁGINA: NOSOTROS (Slider View)
   ══════════════════════════════════════════════════════════════════ */
.about-scroll-section {
    height: 100vh;
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
}

.about-sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    overflow: hidden;
    background: var(--bg-primary);
}

.about-left {
    flex: 1;
    position: relative;
    padding: 6rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-right {
    flex: 1;
    position: relative;
    background: #0f172a;
    overflow: hidden;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
}

.about-bg-shape {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
    z-index: 0;
}

/* Textos */
.about-text-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateY(30px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s var(--ease-out-expo);
    max-width: 500px;
}

.about-text-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateY(0);
}

.about-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.about-brand .brand-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.about-brand .brand-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.about-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.about-footer-info {
    position: absolute;
    bottom: 3rem;
    left: 4rem;
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Imagen Grande */
.about-image-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, transform 1s var(--ease-out-expo);
    transform: scale(1.05);
    z-index: 1;
}

.about-image-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.about-image-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Ajuste específico para la primera imagen principal (mover hacia la derecha) */
#about-img-0 img {
    object-position: 10% center;
    /* Mueve el encuadre de la foto hacia la derecha */
}

/* Miniaturas */
.about-thumbnails {
    position: absolute;
    left: 45%;
    top: 15%;
    /* Movido hacia la parte superior */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 10;
    cursor: pointer;
}

.about-thumbnails .thumbnail {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    opacity: 0.5;
    transition: all 0.4s ease;
    transform: translateX(-20px);
}

/* Escalonamiento diagonal para que sigan el corte principal */
.about-thumbnails .thumbnail:nth-child(1) {
    margin-left: 60px;
}

.about-thumbnails .thumbnail:nth-child(2) {
    margin-left: 40px;
}

.about-thumbnails .thumbnail:nth-child(3) {
    margin-left: 20px;
}

.about-thumbnails .thumbnail:nth-child(4) {
    margin-left: 0px;
}

.about-thumbnails .thumbnail.active {
    opacity: 1;
    transform: translateX(0);
}

.thumbnail-label {
    background: var(--gold-gradient);
    color: #fff;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
}

.thumbnail-img-wrapper {
    width: 100px;
    height: 120px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s ease;
    box-shadow: var(--shadow-sm);
    background: #0f172a;
    /* Fondo oscuro por si la imagen tarda */
}

.about-thumbnails .thumbnail.active .thumbnail-img-wrapper {
    border-color: var(--gold-400);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.thumbnail-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    /* Para evitar espacios fantasma (barras inferiores) */
}

@media (max-width: 992px) {
    .about-sticky-container {
        flex-direction: column;
    }

    .about-right {
        clip-path: none;
        height: 50vh;
    }

    .about-left {
        height: 50vh;
        padding: 2rem;
    }

    .about-image-slide {
        left: 0;
        width: 100%;
    }

    .about-thumbnails {
        flex-direction: row;
        top: auto;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
    }

    .about-thumbnails .thumbnail {
        align-items: center;
        transform: translateY(20px);
    }

    .about-thumbnails .thumbnail.active {
        transform: translateY(0);
    }
}

/* ══════════════════════════════════════════════════════════════════
   COVERFLOW CAROUSEL (Home)
   ══════════════════════════════════════════════════════════════════ */
.coverflow-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 3rem auto;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.coverflow-item {
    position: absolute;
    width: 250px;
    height: 360px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    padding: 20px;
    cursor: pointer;
    color: #333;
}

.coverflow-item:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* Base states for JS logic */
.coverflow-item[data-position="0"] {
    transform: translateX(0) scale(1) translateZ(0);
    z-index: 5;
    opacity: 1;
}

.coverflow-item[data-position="-1"] {
    transform: translateX(-160px) scale(0.8) translateZ(-100px);
    z-index: 4;
    opacity: 0.9;
}

.coverflow-item[data-position="1"] {
    transform: translateX(160px) scale(0.8) translateZ(-100px);
    z-index: 4;
    opacity: 0.9;
}

.coverflow-item[data-position="-2"] {
    transform: translateX(-280px) scale(0.65) translateZ(-200px);
    z-index: 3;
    opacity: 0.6;
}

.coverflow-item[data-position="2"] {
    transform: translateX(280px) scale(0.65) translateZ(-200px);
    z-index: 3;
    opacity: 0.6;
}

.coverflow-item[data-position="hidden"] {
    transform: translateX(0) scale(0.2) translateZ(-300px);
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

.coverflow-img-box {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 15px;
}

.coverflow-img-box svg {
    width: 80px;
    height: 80px;
    opacity: 0.3;
}

.coverflow-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #1e293b;
}

.coverflow-price {
    font-size: 1.2rem;
    font-weight: 900;
    color: #2563eb;
}

@media (max-width: 768px) {
    .coverflow-item[data-position="-1"] {
        transform: translateX(-100px) scale(0.8) translateZ(-100px);
    }

    .coverflow-item[data-position="1"] {
        transform: translateX(100px) scale(0.8) translateZ(-100px);
    }

    .coverflow-item[data-position="-2"] {
        transform: translateX(-180px) scale(0.65) translateZ(-200px);
    }

    .coverflow-item[data-position="2"] {
        transform: translateX(180px) scale(0.65) translateZ(-200px);
    }
}

/* ══════════════════════════════════════════════════════════════════
   TIENDA VIRTUAL
   ══════════════════════════════════════════════════════════════════ */
/* ... (estilos existentes se mantienen si se usó multi_replace, pero como estoy usando replace_file_content debo tener cuidado. Oh, wait, I shouldn't replace lines 1928 and up with a partial block). */

/* ══════════════════════════════════════════════════════════════════
   TIENDA VIRTUAL
   ══════════════════════════════════════════════════════════════════ */
/* Hero Header */
.store-hero {
    background: #000;
    color: #fff;
    padding: 120px 20px 40px;
    text-align: center;
}

.store-hero__title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

.store-hero__categories {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.store-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: #ffffff;
    opacity: 0.5;
    /* Categorías no seleccionadas más tenues */
    transition: all 0.3s ease;
}

.store-cat-item:hover,
.store-cat-item.active {
    color: #ffffff;
    opacity: 1;
    /* Totalmente visible */
    text-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 0 30px rgba(255, 255, 255, 0.6);
}

.store-cat-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.store-cat-count {
    font-size: 0.8rem;
    color: #888;
}

/* Main Store Layout */
.store-main {
    background: #ffffff;
    color: #333;
    padding: 40px 20px;
}

.store-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
}

/* Sidebar */
.store-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.store-filter {
    margin-bottom: 3rem;
}

.store-filter__title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #000;
}

/* Price Slider Mock */
.price-slider-mock {
    padding: 10px 0;
    margin-bottom: 1rem;
}

.price-slider-track {
    height: 3px;
    background: #eee;
    position: relative;
    border-radius: 2px;
}

.price-slider-range {
    position: absolute;
    left: 0;
    right: 0;
    height: 100%;
    background: #000;
}

.price-slider-handle {
    width: 14px;
    height: 14px;
    background: #000;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.price-slider-handle.left {
    left: 0;
}

.price-slider-handle.right {
    left: 100%;
}

.price-filter-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
}

.btn-filter {
    background: #f5f5f5;
    border: none;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-filter:hover {
    background: #e0e0e0;
}

/* Color List */
.color-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.color-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
}

.color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 12px;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.color-name {
    flex: 1;
}

.color-count {
    color: #999;
    font-size: 0.85rem;
}

/* Brands Grid */
.brand-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.brand-item {
    background: #fff;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.3s;
    cursor: pointer;
}

.brand-item:hover {
    opacity: 1;
}

/* Store Content */
.store-content {
    flex: 1;
}

.store-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.store-breadcrumbs {
    font-size: 0.9rem;
    color: #666;
}

.store-breadcrumbs strong {
    color: #000;
}

.store-toolbar-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.85rem;
}

.store-view-modes {
    display: flex;
    gap: 5px;
}

.store-view-modes .view-mode {
    color: #ccc;
    font-size: 1.2rem;
    cursor: pointer;
}

.store-view-modes .view-mode.active {
    color: #000;
}

.store-sort-select {
    border: none;
    background: transparent;
    font-size: 0.85rem;
    color: #333;
    cursor: pointer;
    outline: none;
}

/* Products Grid */
.store-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    position: relative;
    text-align: center;
    cursor: pointer;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #000;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.product-image-wrapper {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 15px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.product-image-placeholder {
    width: 60%;
    height: 60%;
    opacity: 0.5;
}

.product-info {
    padding: 0 10px;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 5px;
    line-height: 1.4;
}

.product-category {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 8px;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
}

.old-price {
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
    font-size: 0.9rem;
    font-weight: 400;
}

.current-price {
    color: #000;
}

/* ── Paginación ────────────────────────────────────────────────────────── */
.store-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f9f9f9;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #eaeaea;
}

.page-link:hover {
    background: #e0e0e0;
}

.page-link.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.page-link.prev-next {
    font-size: 1.2rem;
}

/* Tienda Responsive */
@media (max-width: 900px) {
    .store-container {
        flex-direction: column;
    }

    .store-sidebar {
        width: 100%;
    }

    .store-hero__categories {
        gap: 1.5rem;
    }

    .store-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* ══════════════════════════════════════════════════════════════════
   PRODUCT DETAILS PAGE
   ══════════════════════════════════════════════════════════════════ */
.product-page {
    background: #fff;
    color: #333;
    padding: 120px 20px 60px;
}

.product-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

/* Left Gallery */
.product-gallery {
    flex: 1;
    position: relative;
}

.product-main-image {
    width: 100%;
    aspect-ratio: 1;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-main-image svg {
    width: 50%;
    height: 50%;
    opacity: 0.1;
}

.product-badge-large {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #000;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Right Details */
.product-details {
    flex: 1;
}

.product-breadcrumbs-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.breadcrumbs-path .muted {
    color: #999;
}

.product-nav .nav-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
    margin-left: 10px;
}

.product-title-large {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #000;
}

.product-price-large {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.product-price-large .old-price {
    color: #999;
    text-decoration: line-through;
    margin-right: 15px;
    font-size: 1.2rem;
    font-weight: 400;
}

.product-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 30px;
    overflow: hidden;
}

.qty-btn {
    background: #fff;
    border: none;
    width: 40px;
    height: 45px;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
}

.quantity-selector input {
    width: 40px;
    text-align: center;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    -moz-appearance: textfield;
}

.btn-black {
    background: #000;
    color: #fff;
    border: none;
    padding: 0 30px;
    height: 45px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-black:hover {
    background: #333;
}

.product-meta-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.meta-btn {
    background: none;
    border: none;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-separator {
    border: none;
    border-top: 1px solid #eee;
    margin: 30px 0;
}

.product-meta-info p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.product-meta-info strong {
    color: #333;
}

.share-icons {
    letter-spacing: 10px;
    font-size: 1.1rem;
    color: #000;
}

@media (max-width: 900px) {
    .product-container {
        flex-direction: column;
    }

    .product-actions {
        flex-wrap: wrap;
    }
}

/* ══════════════════════════════════════════════════════════════════
   CART DRAWER (Floating Window)
   ══════════════════════════════════════════════════════════════════ */
.cart-drawer {
    position: fixed;
    top: 90px;
    right: -450px;
    width: 380px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 110px);
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eaeaea;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.cart-drawer.open {
    right: 20px;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.cart-drawer-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-header h3 {
    margin: 0;
    color: #000;
    font-size: 1.2rem;
}

.cart-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.cart-item-img svg {
    width: 30px;
    height: 30px;
    opacity: 0.3;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 5px;
}

.cart-item-price {
    font-weight: 700;
    color: #2563eb;
    font-size: 0.95rem;
}

.cart-item-qty {
    font-size: 0.8rem;
    color: #666;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
}

.cart-drawer-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.2rem;
    color: #000;
    margin-bottom: 20px;
}

.btn-full {
    width: 100%;
    height: 50px;
    font-size: 1rem;
}