/* ==========================================================================
   CAE - PREMIUM FUTURISTIC DESIGN SYSTEM (UNIFIED V6)
   ========================================================================== */

/* ==========================================================================
   CAE - PREMIUM FUTURISTIC DESIGN SYSTEM
   ========================================================================== */

:root {
    /* Colors */
    --bg-base: #050816;
    --bg-surface: rgba(10, 16, 48, 0.8);
    --bg-surface-opaque: #0a1030;
    --primary: #7C4DFF;
    --primary-glow: rgba(124, 77, 255, 0.4);
    --primary-glow-subtle: rgba(124, 77, 255, 0.15);
    --secondary: #9D6CFF;
    --accent: #A78BFA;
    --text-primary: #FFFFFF;
    --text-muted: #A8B0C5;
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, #7C4DFF 0%, #9D6CFF 100%);
    --grad-text: linear-gradient(135deg, #FFFFFF 30%, #A78BFA 100%);
    --grad-accent: linear-gradient(135deg, #7C4DFF 0%, #B794F4 100%);
    --grad-border: linear-gradient(135deg, rgba(124, 77, 255, 0.4) 0%, rgba(157, 108, 255, 0.1) 100%);
    --grad-border-highlight: linear-gradient(135deg, rgba(124, 77, 255, 0.8) 0%, rgba(167, 139, 250, 0.4) 100%);

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Layout */
    --max-width: 1400px;
    --padding-container: 24px;
    --spacing-section: 140px;
    --radius-lg: 16px;
    --radius-md: 12px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

/* Desactiva el resaltado celeste por defecto que los navegadores móviles
   (Chrome Android / Safari iOS) pintan sobre TODO el elemento al tocarlo
   (-webkit-tap-highlight-color). Sin esta regla, ese overlay azul
   semitransparente cubre el 100% del contenedor tocado y tapa los estados
   hover/active violetas definidos en este stylesheet. NO borrar. */
* {
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Accessibility: Screen Readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: #1a224a;
    border-radius: 5px;
    border: 2px solid var(--bg-base);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==========================================================================
   VISUAL EFFECTS: BACKGROUNDS & GLOWS
   ========================================================================== */

/* Particle canvas underlying */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* Ambient glow blobs */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.15;
    mix-blend-mode: screen;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -100px;
    animation: pulse-glow 15s ease-in-out infinite alternate;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: -150px;
    left: -100px;
    animation: pulse-glow 20s ease-in-out infinite alternate-reverse;
}

.bg-glow-3 {
    width: 700px;
    height: 700px;
    background: rgba(124, 77, 255, 0.4);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.08;
}

@keyframes pulse-glow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.12; }
    50% { transform: scale(1.1) translate(30px, -50px); opacity: 0.18; }
    100% { transform: scale(0.9) translate(-20px, 30px); opacity: 0.12; }
}

/* Cybernetic SVG Grid pattern */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.03) 1px, transparent 0),
        linear-gradient(rgba(124, 77, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 77, 255, 0.015) 1px, transparent 1px);
    background-size: 40px 40px, 80px 80px, 80px 80px;
    z-index: 1;
    pointer-events: none;
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

p {
    color: var(--text-muted);
}

.gradient-text {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.eyebrow {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 1rem;
    display: inline-block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
}

.text-center {
    text-align: center;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: var(--padding-container);
    padding-right: var(--padding-container);
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    background: var(--grad-primary);
    color: var(--text-primary);
    box-shadow: 0 4px 20px var(--primary-glow-subtle);
    position: relative;          /* era "absolute" — ese era el bug de los botones */
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    transition: 0.75s;
    opacity: 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--primary-glow);
}

.btn-primary:hover::after {
    left: 120%;
    opacity: 1;
}

.btn-outline {
    display: inline-block;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background: rgba(124, 77, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--primary-glow-subtle);
}

.btn-icon {
    padding: 0.75rem;
    aspect-ratio: 1;
}

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    background: rgba(5, 8, 22, 0.75);
    backdrop-filter: blur(16px);
    border-color: rgba(124, 77, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.25rem var(--padding-container);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    transition: var(--transition-smooth);
}

.main-header.scrolled .header-container {
    padding: 0.875rem var(--padding-container);
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    flex-shrink: 0;              /* el logo nunca se comprime */
    position: relative;
    z-index: 110;
    max-width: 60px;
}

.logo-accent {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.logo-img {
    max-width: 60px;
    height: 60px;
    width: 60px;
    object-fit: contain;
    display: block;
}

/* nav: centrar el menú en la cabecera (independiente del logo) */
.primary-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    overflow: visible;
    z-index: 105;
    /* grid column 2: centrado naturalmente */
}

/* la lista ocupa el espacio disponible dentro del nav */
.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    flex: 1;
    min-width: 0;
    /* SIN overflow: hidden — el JS controla qué items están visibles */
}

/* cada item de nav no se comprime */
.nav-list > li:not(.more-menu) {
    flex-shrink: 0;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.25rem 0.65rem;
    display: block;
    white-space: nowrap;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

/* subrayado activo — igual que el original */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.65rem;               /* alineado con el padding del link */
    right: 0.65rem;
    width: auto;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* actions: botones de sesión / avatar — nunca se comprimen */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    position: fixed;
    right: var(--padding-container);
    top: 1.25rem;
    transform: none;
    z-index: 110;
    transition: top var(--transition-smooth);
}

.main-header.scrolled .nav-actions {
    top: 0.875rem;
}

.auth-guest-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Mobile Toggle Hamburger button */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 4px;
    z-index: 110;
    margin-left: auto;   /* ← empuja el botón al margen derecho */
}

.hamburger-bar {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

/* More menu — siempre al final de la lista, sin margin-left auto */
.more-menu {
    position: relative;
    flex-shrink: 0;
    /* SIN margin-left: auto — el JS lo posiciona moviendo items al dropdown */
}

.more-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.25rem 0.65rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition-fast);
    position: relative;
}

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

.more-btn::after {
    content: '▾';
    font-size: 0.7rem;
    line-height: 1;
}

.more-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(10, 16, 48, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(124, 77, 255, 0.35);
    border-radius: 10px;
    padding: 0.4rem 0;
    list-style: none;
    min-width: 165px;
    z-index: 999;
    box-shadow: 0 12px 30px rgba(0,0,0,0.5), 0 0 20px rgba(124,77,255,0.1);
}

.more-dropdown.open {
    display: block;
    animation: dropdown-fade-in 0.18s ease forwards;
}

@keyframes dropdown-fade-in {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

.more-dropdown li {
    list-style: none;
}

/* los nav-link dentro del dropdown no llevan subrayado */
.more-dropdown .nav-link {
    display: block;
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
    border-radius: 0;
}

.more-dropdown .nav-link:hover {
    background: rgba(124, 77, 255, 0.08);
    color: var(--text-primary);
}

.more-dropdown .nav-link::after {
    display: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.section-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-content .headline {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content .description {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    margin-bottom: 2rem;
    max-width: 600px;
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
    margin-bottom: 2.5rem;
    width: 100%;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.icon-check {
    color: var(--accent);
    flex-shrink: 0;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    width: 100%;
}

.social-proof {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.indicator-dot {
    width: 8px;
    height: 8px;
    background-color: #00E676;
    border-radius: 50%;
    box-shadow: 0 0 10px #00E676;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

/* Hero Right Column: Processor visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.processor-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.processor-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    z-index: 5;
    filter: drop-shadow(0 0 50px rgba(124, 77, 255, 0.4));
    animation: float 6s ease-in-out infinite;
}

/* Hologram visual background effects */
.circuit-ring {
    position: absolute;
    border: 1px dashed rgba(124, 77, 255, 0.2);
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
}

.circuit-ring-1 {
    width: 110%;
    height: 110%;
    border-color: rgba(124, 77, 255, 0.25);
    animation: rotate-clockwise 30s linear infinite;
}

.circuit-ring-2 {
    width: 85%;
    height: 85%;
    border: 1px solid rgba(157, 108, 255, 0.15);
    animation: rotate-counter 20s linear infinite;
}

.circuit-ring-3 {
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.08) 0%, transparent 70%);
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes rotate-clockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotate-counter {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.section-about {
    padding: var(--spacing-section) 0;
    position: relative;
}

.about-container {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 5rem;
    align-items: center;
}

.about-visual {
    position: relative;
}

/* Asymmetric grid gallery */
.about-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 1.25rem;
    width: 100%;
    height: 480px;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(124, 77, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.item-1 {
    grid-column: 1 / 4;
    grid-row: 1 / 5;
}

.item-2 {
    grid-column: 4 / 7;
    grid-row: 2 / 6;
}

.item-3 {
    grid-column: 2 / 5;
    grid-row: 5 / 7;
}

/* Floating overlay glass card */
.floating-card {
    position: absolute;
    bottom: 10%;
    left: -5%;
    background: rgba(10, 16, 48, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(124, 77, 255, 0.35);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.75rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 30px rgba(124, 77, 255, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 10;
    animation: card-float 4s ease-in-out infinite;
}

.floating-card .card-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.floating-card .card-value {
    font-size: 1.5rem;
    font-weight: 800;
}

@keyframes card-float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.about-content .section-title {
    margin-bottom: 1.5rem;
}

.about-content .description {
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.bullets-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.bullets-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
}

.bullet-icon-wrapper {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(124, 77, 255, 0.1);
    border: 1px solid rgba(124, 77, 255, 0.3);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-action {
    display: flex;
}

/* ==========================================================================
   STUDY AREAS SECTION
   ========================================================================== */

.section-areas {
    padding: var(--spacing-section) 0;
    position: relative;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

/* Premium Card Design */
.area-card {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(124, 77, 255, 0.25);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(124, 77, 255, 0.05);
}

.area-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(124, 77, 255, 0.2);
}

.area-image-wrapper {
    width: 100%;
    height: 260px;
    position: relative;
    overflow: hidden;
}

.area-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.area-card:hover .area-img {
    transform: scale(1.05);
}

.area-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--bg-surface-opaque) 0%, transparent 100%);
    pointer-events: none;
}

.area-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.area-card-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.area-description {
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
    line-height: 1.5;
}

.area-topics {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    margin-top: auto;
}

.area-topics li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.topic-dot {
    width: 8px;
    height: 8px;
    color: var(--accent);
    flex-shrink: 0;
}

.area-btn {
    width: 100%;
}

/* ==========================================================================
   BENEFITS SECTION
   ========================================================================== */

.section-benefits {
    padding: var(--spacing-section) 0;
    position: relative;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: rgba(10, 16, 48, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.benefit-card:hover {
    background: var(--bg-surface);
    border-color: rgba(124, 77, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 35px rgba(124, 77, 255, 0.1);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(124, 77, 255, 0.1);
    border: 1px solid rgba(124, 77, 255, 0.2);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.benefit-card:hover .benefit-icon {
    background: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 15px var(--primary);
}

.benefit-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.benefit-desc {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ==========================================================================
   STEPS SECTION
   ========================================================================== */

.section-steps {
    padding: var(--spacing-section) 0;
    position: relative;
}

.steps-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    position: relative;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.step-number-container {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 1.5rem;
}

.step-num {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.step-connector {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, rgba(124, 77, 255, 0.05) 100%);
    margin-left: 1.5rem;
    position: relative;
}

.step-connector::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.step-desc {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==========================================================================
   PRICING SECTION
   ========================================================================== */

.section-pricing {
    padding: var(--spacing-section) 0;
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    align-items: stretch;
    margin-bottom: 4rem;
}

/* Pricing Card base */
.price-card {
    background: rgba(10, 16, 48, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 3rem 2.25rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-smooth);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

.price-card:hover {
    border-color: rgba(124, 77, 255, 0.25);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(124, 77, 255, 0.05);
}

/* Highlighted recommended plan */
.price-card.highlighted {
    background: var(--bg-surface);
    border: 1.5px solid var(--primary);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.5), 0 0 40px var(--primary-glow-subtle);
    transform: scale(1.03);
}

.price-card.highlighted:hover {
    box-shadow: 0 30px 65px rgba(0, 0, 0, 0.6), 0 0 45px var(--primary-glow);
}

.badge-recommended {
    position: absolute;
    top: 20px;
    right: 24px;
    background: var(--grad-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    box-shadow: 0 0 10px var(--primary-glow);
}

.price-header {
    margin-bottom: 2.25rem;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.plan-price-block {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.price-header .currency {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-muted);
}

.price-header .price {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.price-header .period {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    display: block;
}

.payment-methods {
    width: 100%;
    height: auto;
    object-fit: contain;
    align-items: center;
    transition: transform 0.3s ease-in-out;
}

.payment-methods.pagopar {
    max-width: 200px;
}

.payment-methods.ueno {
    max-width: 250px;
}

.payment-methods.familiar {
    max-width: 190px;
    border-radius:8px;
}

.payment-methods:hover {
    filter: brightness(0.9);
    transform: scale(1.1);
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.plan-features .icon-check {
    color: var(--accent);
}

.plan-btn {
    width: 100%;
    margin-top: auto;
}

/* Secure Payments Info Box */
.secure-payments {
    background: rgba(10, 16, 48, 0.4);
    border: 1px solid rgba(124, 77, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 2rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.payments-content {
    max-width: 500px;
}

.payments-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.icon-lock {
    color: var(--accent);
}

.secure-title {
    font-size: 1.15rem;
    font-weight: 600;
}

.secure-desc {
    font-size: 0.9rem;
}

.payment-methods-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.payment-method-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.payment-method-badge:hover {
    border-color: var(--primary-glow);
    background: rgba(124, 77, 255, 0.05);
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.section-cta {
    padding: var(--spacing-section) 0;
    position: relative;
}

.cta-inner {
    background: radial-gradient(circle at top right, rgba(124, 77, 255, 0.2) 0%, rgba(10, 16, 48, 0.9) 80%);
    border: 1px solid rgba(124, 77, 255, 0.35);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(124, 77, 255, 0.15);
    }

@media (min-width: 768px) {
    .cta-inner {
    background: radial-gradient(circle at top right, rgba(124, 77, 255, 0.2) 0%, rgba(10, 16, 48, 0.9) 80%);
    border: 1px solid rgba(124, 77, 255, 0.35);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(124, 77, 255, 0.15);
    }
}

/* Cybernetic Grid Overlay */
.cta-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(124, 77, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(124, 77, 255, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 1;
}

.cta-text-content {
    position: relative;
    z-index: 5;
}

.cta-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-desc {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.cta-actions {
    display: flex;
    gap: 1rem;
}

.cta-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1.2;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(124, 77, 255, 0.25);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.cta-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-img-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 40%, rgba(5, 8, 22, 0.6) 100%);
    pointer-events: none;
}

.whatsapp-icon {
    color: #25D366;
    margin-right: 5px;
    margin-bottom: -2px;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.section-contact {
    padding: var(--spacing-section) 0;
    position: relative;
}

.form-inner {
    background: radial-gradient(circle at top right, rgba(124, 77, 255, 0.2) 0%, rgba(10, 16, 48, 0.9) 80%);
    border: 1px solid rgba(124, 77, 255, 0.35);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(124, 77, 255, 0.15);
}

@media (min-width: 768px) {
    .form-inner {
        background: radial-gradient(circle at top right, rgba(124, 77, 255, 0.2) 0%, rgba(10, 16, 48, 0.9) 80%);
        border: 1px solid rgba(124, 77, 255, 0.35);
        border-radius: var(--radius-lg);
        overflow: hidden;
        padding: 4rem;
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        gap: 4rem;
        position: relative;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(124, 77, 255, 0.15);
    }
}

.form-text-content {
    position: relative;
    text-align: center;
    width: 100%;
}

@media (min-width: 768px) {
    .form-text-content {
        text-align: left;
    }
}

.form-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.form-desc {
    font-size: 1.1rem;
    max-width: 500px;
}

.form-container {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-weight: 0.85rem;
}

.input-group input, 
.input-group textarea {
    width: 100%;
    padding: 12px;
    background-color: #1a224a;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.input-group input:focus, 
.input-group textarea:focus {
    border-color: #7C4DFF;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 102, 204, 0.2);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.main-footer {
    background: #03050f;
    border-top: 1px solid rgba(124, 77, 255, 0.1);
    padding: 80px 0 40px 0;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr 0.8fr 1.4fr;
    gap: 4rem;
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-col-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--primary);
    padding-left: 4px;
}

/* Newsletter Input group styling */
.col-newsletter .footer-desc {
    margin-bottom: 1.5rem;
}

.newsletter-form .input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 0.25rem;
    transition: var(--transition-fast);
}

.newsletter-form .input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow-subtle);
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    background: transparent;
    border: none;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-feedback {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.form-feedback.success {
    color: #00E676;
}

.form-feedback.error {
    color: #FF5252;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

/* ==========================================================================
   SCROLL REVEAL STYLES (Animate on Enter)
   ========================================================================== */

.scroll-reveal {
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.fade-in-up {
    transform: translateY(30px);
}

.scroll-reveal.fade-in-left {
    transform: translateX(-30px);
}

.scroll-reveal.fade-in-right {
    transform: translateX(30px);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE STATES)
   ========================================================================== */

@media (max-width: 1200px) {
    :root {
        --spacing-section: 100px;
    }
    
    .hero-container {
        gap: 2rem;
    }
    
    .about-container {
        gap: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
        padding-top: 80px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-content .headline {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-content .description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .features-list {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .social-proof {
        justify-content: center;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .about-visual {
        order: 2;
    }
    
    .about-gallery {
        height: 380px;
    }
    
    .areas-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .steps-flow {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .step-connector {
        display: none;
    }
    
    .step-item {
        align-items: center;
        text-align: center;
    }
    
    .step-number-container {
        justify-content: center;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
        gap: 2rem;
    }
    
    .price-card.highlighted {
        transform: scale(1);
    }
    
    .secure-payments {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .payment-methods-grid {
        justify-content: center;
    }
    
    .cta-inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 3rem;
        gap: 3rem;
    }
    
    .cta-actions {
        justify-content: center;
    }
    
    .cta-image-wrapper {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    /* Mobile Menu Toggle Navigation styling */
    .header-container {
        grid-template-columns: 1fr auto;
    }

    .mobile-nav-toggle {
        display: flex;
        margin-left: 0;
    }
    
    .primary-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(10, 16, 48, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid rgba(124, 77, 255, 0.2);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 4rem 3rem;
        gap: 2rem;
        transition: var(--transition-smooth);
        z-index: 105;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    }
    
    .primary-nav.open {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        width: 100%;
    }
    
    .nav-link {
        font-size: 1.15rem;
    }
    
    .nav-actions {
        position: static;
        justify-content: center;
        width: 100%;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .auth-guest-actions {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .nav-actions .btn {
        flex: 1 1 auto;
        min-width: 0;
        text-align: center;
        white-space: nowrap;
    }
    
    /* Hamburger Menu Toggle Animation states */
    .mobile-nav-toggle.open .hamburger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-nav-toggle.open .hamburger-bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-toggle.open .hamburger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .features-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 576px) {
    :root {
        --spacing-section: 80px;
        --padding-container: 16px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .about-gallery {
        height: 320px;
        gap: 0.75rem;
    }
    
    .floating-card {
        padding: 0.85rem 1.25rem;
        left: 2%;
    }
    
    .floating-card .card-value {
        font-size: 1.25rem;
    }
    
    .area-content {
        padding: 1.75rem;
    }
    
    .price-card {
        padding: 2rem 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ==========================================================================
   USER PROFILE BADGE & DROPDOWN
   ========================================================================== */

.user-profile-badge {
    position: relative;
    z-index: 110;
}

.avatar-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--grad-primary);
    border: 2px solid rgba(124, 77, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    box-shadow: 0 0 10px rgba(124, 77, 255, 0.2);
}

.avatar-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--primary-glow);
    border-color: var(--accent);
}

.user-avatar {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: rgba(10, 16, 48, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(124, 77, 255, 0.3);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    width: 220px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 30px rgba(124, 77, 255, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    z-index: 120;
}

.user-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.user-dropdown-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.user-dropdown-role {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
}

.user-dropdown-career {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dropdown-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0.75rem 0;
}

.dropdown-item {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-sans);
}

.dropdown-item:hover {
    color: var(--primary);
    padding-left: 4px;
}

/* ==========================================================================
   CARD LOCK OVERLAY
   ========================================================================== */

.area-card {
    position: relative;
}

.card-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lock-blur-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 22, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
}

.lock-content {
    position: relative;
    z-index: 12;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-lock-md {
    color: var(--accent);
    filter: drop-shadow(0 0 10px rgba(124, 77, 255, 0.5));
    margin-bottom: 1rem;
    animation: float 4s ease-in-out infinite;
}

.lock-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.lock-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 260px;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.request-unlock-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

/* ==========================================================================
   AUTH MODAL OVERLAY & VIEWS
   ========================================================================== */

.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 22, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.auth-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.auth-modal-card {
    background: rgba(10, 16, 48, 0.9);
    border: 1px solid rgba(124, 77, 255, 0.35);
    box-shadow: 0 0 50px rgba(124, 77, 255, 0.25), 0 30px 60px rgba(0, 0, 0, 0.6);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    padding: 3rem 2.5rem;
    position: relative;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal-overlay.open .auth-modal-card {
    transform: scale(1);
}

.auth-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.auth-modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.auth-modal-title {
    font-size: 1.75rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-modal-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
    min-width: 0;
}

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-form label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"],
.auth-form select {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: var(--transition-fast);
    width: 100%;
}

.auth-form select {
    background-color: #0A1030;
    cursor: pointer;
}

.auth-form input:focus,
.auth-form select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow-subtle);
    outline: none;
    background: rgba(255, 255, 255, 0.04);
}

.form-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-checkbox-group input[type="checkbox"] {
    accent-color: var(--primary);
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.form-link-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: var(--transition-fast);
}

.form-link-btn:hover {
    color: var(--accent);
    text-decoration: underline;
}

.auth-modal-footer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
}

.auth-modal-footer button {
    font-size: 0.85rem;
}

.auth-feedback {
    display: none;
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

.auth-feedback.error {
    display: block;
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid #FF5252;
    color: #FF5252;
}

.auth-feedback.success {
    display: block;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid #00E676;
    color: #00E676;
}

.w-full {
    width: 100%;
}

@media (max-width: 576px) {
    .auth-modal-card {
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1.25rem;
    }
}

/* Social Auth Styles */
.social-auth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 1.5rem 0;
}
.social-auth-separator::before,
.social-auth-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.social-auth-separator:not(:empty)::before {
    margin-right: .5em;
}
.social-auth-separator:not(:empty)::after {
    margin-left: .5em;
}

.social-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(124, 77, 255, 0.3);
    box-shadow: 0 0 15px rgba(124, 77, 255, 0.1);
}

.btn-social svg {
    width: 18px;
    height: 18px;
}

/* Interest Selection Card Grid */
.interest-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 576px) {
    .interest-cards-grid {
        grid-template-columns: 1fr;
    }
}

.interest-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary) !important;
    box-shadow: 0 10px 25px rgba(124, 77, 255, 0.15) !important;
}

/* Custom Refinements for Contact section */
.contact-info-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
}

.contact-method-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(124, 77, 255, 0.15);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.contact-method-item:hover {
    background: rgba(124, 77, 255, 0.08);
    border-color: rgba(124, 77, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(124, 77, 255, 0.15);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(124, 77, 255, 0.15);
    border: 1px solid rgba(124, 77, 255, 0.3);
    border-radius: 50%;
    color: var(--accent);
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(124, 77, 255, 0.2);
}

.contact-method-item:hover .contact-icon {
    background: var(--grad-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 20px var(--primary-glow);
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.contact-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

@media (max-width: 480px) {
    .contact-method-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .contact-value {
        font-size: 0.95rem;
        word-break: break-all;
        overflow-wrap: break-word;
    }
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.01) !important;
    border: 1px solid rgba(124, 77, 255, 0.15) !important;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    display: block;
}

.input-group input, 
.input-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background-color: rgba(10, 16, 48, 0.6) !important;
    border: 1px solid rgba(124, 77, 255, 0.25) !important;
    border-radius: var(--radius-md);
    color: #fff !important;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group input::placeholder, 
.input-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

.input-group input:focus, 
.input-group textarea:focus {
    border-color: var(--accent) !important;
    background-color: rgba(10, 16, 48, 0.9) !important;
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.3) !important;
    outline: none;
}

/* Mobile responsive fixes for user profile dropdown */
@media (max-width: 768px) {
    .btn, .btn-primary, .btn-outline {
        white-space: normal !important;
        word-break: break-word;
    }

    .user-profile-badge {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        width: 100%;
        position: relative;
    }
    
    .nav-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1rem;
    }
    
    .nav-role-btn {
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        width: auto !important;
        text-align: center;
    }
    
    .user-dropdown {
        position: absolute !important;
        bottom: calc(100% + 12px) !important;
        top: auto !important;
        right: 0 !important;
        left: auto !important;
        transform: translateY(10px) !important;
        width: 220px !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 30px rgba(124, 77, 255, 0.15) !important;
        background: rgba(10, 16, 48, 0.95) !important;
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.3s ease !important;
        padding: 0 !important;
        border: none !important;
        z-index: 200 !important;
    }

    .user-dropdown.open {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        padding: 1.25rem !important;
        border: 1px solid rgba(124, 77, 255, 0.25) !important;
    }
}

/* ==========================================================================
   BLOG SPECIFIC STYLES
   ========================================================================== */
body {
            background-color: var(--bg-base);
            overflow-y: auto;
        }

        .blog-header-section {
            padding: 100px 0 60px 0;
            text-align: center;
            position: relative;
        }

        /* Search and Categories bar */
        .blog-toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 3rem;
            gap: 2rem;
            flex-wrap: wrap;
        }

        .search-box {
            display: flex;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: var(--radius-md);
            padding: 0.25rem;
            width: 320px;
            max-width: 100%;
        }

        .search-box input {
            background: transparent;
            border: none;
            padding: 0.6rem 1rem;
            color: #fff;
            width: 100%;
            font-family: var(--font-sans);
            font-size: 0.9rem;
        }

        .search-box input:focus {
            outline: none;
        }

        .categories-filter {
            display: flex;
            gap: 0.75rem;
            flex-wrap: wrap;
        }

        .category-tab {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 20px;
            padding: 0.5rem 1.2rem;
            font-size: 0.85rem;
            font-weight: 500;
            color: var(--text-muted);
            cursor: pointer;
            transition: var(--transition-fast);
        }

        .category-tab:hover,
        .category-tab.active {
            background: var(--primary);
            border-color: var(--primary);
            color: #fff;
            box-shadow: 0 0 15px var(--primary-glow-subtle);
        }

        /* Grid layout */
        .blog-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2.5rem;
            margin-bottom: 6rem;
        }

        .blog-card {
            background: var(--bg-surface);
            border: 1px solid rgba(124, 77, 255, 0.2);
            border-radius: var(--radius-lg);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transition: var(--transition-smooth);
            cursor: pointer;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }

        .blog-card:hover {
            transform: translateY(-5px);
            border-color: var(--primary);
            box-shadow: 0 20px 45px rgba(124, 77, 255, 0.15);
        }

        .blog-card-image {
            height: 180px;
            background-color: rgba(255, 255, 255, 0.02);
            position: relative;
            background-size: cover;
            background-position: center;
        }

        .blog-card-category {
            position: absolute;
            top: 15px;
            left: 15px;
            background: rgba(10, 16, 48, 0.9);
            border: 1px solid rgba(124, 77, 255, 0.3);
            color: var(--accent);
            font-size: 0.75rem;
            font-weight: 600;
            padding: 0.25rem 0.75rem;
            border-radius: 12px;
        }

        .blog-card-content {
            padding: 2rem;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }

        .blog-card-date {
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-bottom: 0.75rem;
        }

        .blog-card-title {
            font-size: 1.25rem;
            font-weight: 700;
            line-height: 1.4;
            margin-bottom: 0.75rem;
            color: var(--text-primary);
            transition: var(--transition-fast);
        }

        .blog-card:hover .blog-card-title {
            color: var(--primary);
        }

        .blog-card-summary {
            font-size: 0.9rem;
            color: var(--text-muted);
            line-height: 1.5;
        }

        /* Reader Mode Layout CSS */
        .reader-layout {
            max-width: 800px;
            margin: 120px auto 80px auto;
            padding: 0 var(--padding-container);
            position: relative;
            z-index: 10;
        }

        .reader-meta {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-bottom: 1.5rem;
        }

        .reader-content {
            font-size: 1.1rem;
            line-height: 1.8;
            color: var(--text-muted);
        }

        .reader-content p {
            margin-bottom: 1.75rem;
        }

        .reader-content h2,
        .reader-content h3 {
            color: var(--text-primary);
            margin: 2.5rem 0 1rem 0;
        }

        .related-section {
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            padding-top: 4rem;
            margin-top: 5rem;
        }

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

        @media (max-width: 768px) {
            .blog-toolbar {
                flex-direction: column;
                align-items: stretch;
            }
            .search-box {
                width: 100%;
            }
            .blog-grid {
                grid-template-columns: 1fr;
            }
        }

/* ==========================================================================
   TRAINING CATALOG SPECIFIC STYLES
   ========================================================================== */
body {
            background-color: var(--bg-base);
            overflow-y: auto;
        }

        /* Hero Section */
        .entrenamientos-hero {
            padding: 180px 0 80px 0;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .entrenamientos-hero .headline {
            font-size: clamp(2.25rem, 5vw, 3.75rem);
            font-weight: 800;
            line-height: 1.2;
            margin-bottom: 1.5rem;
        }

        /* Section Layouts */
        .category-section {
            padding: 5rem 0;
            position: relative;
            border-top: 1px solid rgba(124, 77, 255, 0.1);
        }

        .category-grid {
            display: grid;
            grid-template-columns: 350px 1fr;
            gap: 4rem;
            align-items: start;
        }

        /* Category Card (Sticky Side) */
        .category-intro-card {
            position: sticky;
            top: 120px;
            background: radial-gradient(circle at top, rgba(124, 77, 255, 0.15) 0%, rgba(10, 16, 48, 0.9) 70%);
            border: 1px solid rgba(124, 77, 255, 0.3);
            border-radius: var(--radius-lg);
            padding: 2.5rem 2rem;
            box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .category-intro-img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-radius: var(--radius-md);
            border: 1px solid rgba(124, 77, 255, 0.2);
        }

        .category-intro-title {
            font-size: 2rem;
            font-weight: 800;
            background: var(--grad-accent);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .category-intro-desc {
            font-size: 0.95rem;
            color: var(--text-muted);
            line-height: 1.6;
        }

        /* Subcategory Block */
        .subcategory-block {
            margin-bottom: 3rem;
        }

        .subcategory-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .subcategory-title::before {
            content: '';
            display: inline-block;
            width: 12px;
            height: 12px;
            background: var(--primary);
            border-radius: 50%;
            box-shadow: 0 0 10px var(--primary);
            flex-shrink: 0;
        }

        /* Accordion Component */
        .accordion-list {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }

        .accordion-item {
            background: rgba(10, 16, 48, 0.45);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(124, 77, 255, 0.15);
            border-radius: var(--radius-md);
            overflow: hidden;
            transition: var(--transition-smooth);
        }

        .accordion-item:hover {
            border-color: rgba(124, 77, 255, 0.4);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 20px rgba(124, 77, 255, 0.05);
        }

        .accordion-item.active {
            border-color: var(--primary);
            background: rgba(10, 16, 48, 0.85);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 30px rgba(124, 77, 255, 0.15);
        }

        .accordion-header {
            width: 100%;
            background: transparent;
            border: none;
            padding: 1.5rem;
            text-align: left;
            font-family: var(--font-sans);
            font-size: 1.15rem;
            font-weight: 600;
            color: var(--text-primary);
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: var(--transition-fast);
        }

        .accordion-header:focus {
            outline: none;
        }

        .accordion-header svg {
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            color: var(--accent);
            flex-shrink: 0;
            margin-left: 1rem;
        }

        /* Título del entrenamiento con logo de marca a la izquierda.
           El wrapper agrupa logo + texto como UN solo item flex para que el
           space-between del header siga empujando el chevron a la derecha.
           min-width:0 permite que el texto se ajuste sin desbordar. */
        .accordion-title-wrap {
            display: flex;
            align-items: center;
            gap: 0.7rem;
            min-width: 0;
        }

        .brand-badge {
            height: 30px;
            width: auto;
            max-width: 90px;
            object-fit: contain;
            flex-shrink: 0;
        }

        /* Entrenamiento con imagen: dos columnas en escritorio — la foto a la
           IZQUIERDA y la estructura curricular a la derecha. Así una imagen
           vertical no ocupa todo el ancho (se vería enorme en pantallas
           horizontales) y se conservan sus proporciones originales. */
        .training-layout {
            display: flex;
            align-items: flex-start;
            gap: 1.75rem;
            margin-bottom: 1.25rem;
        }

        .training-layout .training-modules-section {
            flex: 1;
            min-width: 0;
        }

        /* Sin object-fit ni max-height: la imagen mantiene su relación de
           aspecto natural; solo se limita el ANCHO de la columna. */
        .training-hero-img {
            display: block;
            width: 34%;
            max-width: 300px;
            height: auto;
            flex-shrink: 0;
            border-radius: var(--radius-md);
            border: 1px solid rgba(124, 77, 255, 0.25);
        }

        .accordion-item.active .accordion-header svg {
            transform: rotate(180deg);
        }

        .accordion-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .accordion-content-inner {
            padding: 0 1.5rem 1.5rem 1.5rem;
            border-top: 1px solid rgba(124, 77, 255, 0.1);
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .training-description {
            font-size: 0.95rem;
            color: var(--text-muted);
            line-height: 1.6;
        }

        /* Modules list inside details */
        .training-modules-section {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .training-modules-title {
            font-size: 0.9rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--accent);
        }

        .training-modules-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 0.6rem;
        }

        .training-modules-list li {
            font-size: 0.9rem;
            color: var(--text-primary);
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
        }

        .training-modules-list li svg {
            color: var(--primary);
            margin-top: 3px;
            flex-shrink: 0;
        }

        /* Specs pills */
        .training-specs {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-top: 0.5rem;
        }

        .spec-pill {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 30px;
            padding: 0.35rem 0.85rem;
            font-size: 0.8rem;
            font-weight: 500;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }

        /* Premium Notification (Toast overlay) */
        .premium-notification {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: rgba(10, 16, 48, 0.97);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(124, 77, 255, 0.45);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(124, 77, 255, 0.25);
            border-radius: 12px;
            padding: 1.25rem 1.5rem;
            z-index: 1000;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            animation: slide-in-notification 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
            max-width: 380px;
        }

        .notification-content {
            display: flex;
            align-items: flex-start;
        }

        .notification-progress {
            height: 3px;
            background: linear-gradient(90deg, #7C4DFF, #9D6CFF);
            width: 100%;
            margin-top: 1rem;
            transform-origin: left;
            animation: shrink-progress 4s linear forwards;
        }

        @keyframes slide-in-notification {
            from { transform: translateY(50px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        @keyframes shrink-progress {
            from { transform: scaleX(1); }
            to { transform: scaleX(0); }
        }

        @media (max-width: 991px) {
            .category-grid {
                grid-template-columns: 1fr;
                gap: 3rem;
            }
            .category-intro-card {
                position: relative;
                top: 0;
            }
        }

        @media (max-width: 576px) {
            .premium-notification {
                left: 20px;
                right: 20px;
                max-width: none;
                bottom: 20px;
            }
            .accordion-header {
                font-size: 1rem;
                padding: 1.25rem 1rem;
            }
            .accordion-content-inner {
                padding: 0 1rem 1.25rem 1rem;
            }
            /* En móvil el logo y la imagen se achican para no comprimir el
               título ni generar scroll horizontal. */
            .brand-badge {
                height: 22px;
                max-width: 64px;
            }
            .accordion-title-wrap {
                gap: 0.5rem;
            }
            /* En móvil se apila: la imagen ocupa todo el ancho, con su alto
               proporcional natural. */
            .training-layout {
                flex-direction: column;
                gap: 1.25rem;
            }
            .training-hero-img {
                width: 100%;
                max-width: 100%;
            }
            .category-intro-card {
                padding: 1.75rem 1.25rem;
            }
            .category-section {
                padding: 3rem 0;
            }
            .training-specs {
                gap: 0.5rem;
            }
            .spec-pill {
                padding: 0.3rem 0.65rem;
                font-size: 0.75rem;
            }
        }

/* ==========================================================================
   DASHBOARD & ADMIN SPECIFIC STYLES
   ========================================================================== */
/* --- Admin Panel --- */
body.admin-page, body.dashboard-page {
            background-color: var(--bg-base);
            display: flex;
            min-height: 100vh;
            overflow-y: auto;
        }

        .admin-layout {
            display: flex;
            width: 100%;
            min-height: 100vh;
            position: relative;
            z-index: 10;
        }

        /* Sidebar styles */
        .sidebar {
            width: 280px;
            background: rgba(10, 16, 48, 0.95);
            border-right: 1px solid rgba(124, 77, 255, 0.25);
            padding: 2.5rem 1.5rem;
            display: flex;
            flex-direction: column;
            flex-shrink: 0;
            z-index: 1000;
            backdrop-filter: blur(20px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .sidebar-logo {
            font-size: 1.5rem;
            font-weight: 800;
            color: #fff;
            text-decoration: none;
            margin-bottom: 2.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            letter-spacing: -0.02em;
        }

        .sidebar-logo .logo-accent {
            color: var(--accent);
            text-shadow: 0 0 15px var(--accent-glow);
        }

        .sidebar-menu {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .sidebar-item {
            width: 100%;
        }

        .sidebar-item button {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 0.85rem 1.25rem;
            background: transparent;
            border: 1px solid transparent;
            border-radius: var(--radius-md);
            color: var(--text-muted);
            font-size: 0.95rem;
            font-weight: 500;
            cursor: pointer;
            text-align: left;
            transition: all 0.2s ease;
        }

        .sidebar-item button svg {
            color: var(--text-muted);
            transition: all 0.2s ease;
        }

        .sidebar-item button:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.03);
            border-color: rgba(255, 255, 255, 0.05);
        }

        .sidebar-item button:hover svg {
            color: #fff;
        }

        /* Active sidebar tab */
        .sidebar-item.active button {
            background: rgba(124, 77, 255, 0.15);
            border-color: rgba(124, 77, 255, 0.4);
            color: #fff;
            font-weight: 600;
            box-shadow: 0 4px 20px rgba(124, 77, 255, 0.15);
        }

        .sidebar-item.active button svg {
            color: var(--accent);
            filter: drop-shadow(0 0 5px var(--accent));
        }

        .sidebar-footer {
            margin-top: auto;
            padding-top: 1.5rem;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
        }

        .sidebar-footer button {
            cursor: pointer;
        }

        .sidebar-toggle-btn {
            display: none;
            background: rgba(124, 77, 255, 0.15);
            border: 1px solid rgba(124, 77, 255, 0.35);
            color: #fff;
            border-radius: var(--radius-md);
            padding: 0.75rem;
            cursor: pointer;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .sidebar-toggle-btn:hover {
            background: rgba(124, 77, 255, 0.25);
            border-color: rgba(124, 77, 255, 0.6);
        }

        .sidebar-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(5px);
            z-index: 999;
        }

        .sidebar-overlay.active {
            display: block;
        }

        .main-content {
            flex-grow: 1;
            padding: 3rem 4rem;
            overflow-y: auto;
            max-width: calc(100% - 280px);
        }

        /* Table styles */
        .admin-table-card {
            background: var(--bg-surface);
            border: 1px solid rgba(124, 77, 255, 0.2);
            border-radius: var(--radius-lg);
            padding: 2rem;
            margin-bottom: 2rem;
            overflow-x: auto;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .admin-table {
            width: 100%;
            border-collapse: collapse;
            text-align: left;
        }

        .admin-table th {
            padding: 1rem;
            font-size: 0.85rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--text-muted);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .admin-table td {
            padding: 1.25rem 1rem;
            font-size: 0.9rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            color: var(--text-primary);
        }

        .admin-table tr:last-child td {
            border-bottom: none;
        }

        .admin-table tr:hover td {
            background: rgba(124, 77, 255, 0.03);
        }

        .status-badge {
            display: inline-block;
            font-size: 0.75rem;
            font-weight: 700;
            padding: 0.25rem 0.6rem;
            border-radius: 12px;
            text-transform: uppercase;
        }

        .status-active {
            background: rgba(0, 230, 118, 0.1);
            color: #00E676;
            border: 1px solid rgba(0, 230, 118, 0.2);
        }

        .status-blocked {
            background: rgba(255, 82, 82, 0.1);
            color: #FF5252;
            border: 1px solid rgba(255, 82, 82, 0.2);
        }

        .status-scheduled {
            background: rgba(255, 179, 0, 0.1);
            color: #FFB300;
            border: 1px solid rgba(255, 179, 0, 0.2);
        }

        /* Action Buttons */
        .action-btn-group {
            display: flex;
            gap: 0.5rem;
        }

        .btn-action-icon {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-primary);
            padding: 0.4rem;
            border-radius: 6px;
            cursor: pointer;
            transition: var(--transition-fast);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .btn-action-icon:hover {
            background: rgba(124, 77, 255, 0.1);
            border-color: var(--primary);
            color: var(--primary);
        }

        .btn-action-delete:hover {
            background: rgba(255, 82, 82, 0.1);
            border-color: #FF5252;
            color: #FF5252;
        }

        /* Forms in overlay or content */
        .admin-form-box {
            background: var(--bg-surface);
            border: 1px solid rgba(124, 77, 255, 0.25);
            border-radius: var(--radius-lg);
            padding: 2.5rem;
            margin-bottom: 3rem;
            max-width: 750px;
        }

        /* Charts Layout SVG Grid */
        .charts-row {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2rem;
            margin-bottom: 3rem;
        }

        .chart-box {
            background: var(--bg-surface);
            border: 1px solid rgba(124, 77, 255, 0.2);
            border-radius: var(--radius-lg);
            padding: 2rem;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        }

        .chart-box h4 {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            color: var(--text-primary);
        }

        .chart-container-svg {
            width: 100%;
            height: 220px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Export toolbar */
        .export-toolbar {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
        }

        @media (max-width: 1200px) {
            .charts-row {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 991px) {
            .admin-layout {
                flex-direction: column;
            }
            .sidebar {
                position: fixed;
                top: 0;
                right: 0;
                left: auto !important;
                bottom: 0;
                width: 280px;
                height: 100vh;
                transform: translateX(100%);
                transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                z-index: 1010 !important;
                box-shadow: -20px 0 40px rgba(0, 0, 0, 0.5);
                border-left: 1px solid rgba(124, 77, 255, 0.25);
                border-right: none !important;
                border-bottom: none;
            }
            .sidebar.open {
                transform: translateX(0) !important;
            }
            .main-content {
                max-width: 100%;
                padding: 2rem 1.5rem;
            }
            .sidebar-toggle-btn {
                display: flex;
                margin-right: 1rem;
            }
            .panel-header {
                display: flex;
                align-items: center;
                gap: 1rem;
                margin-bottom: 2rem;
                background: rgba(10, 16, 48, 0.5);
                padding: 1rem;
                border-radius: var(--radius-lg);
                border: 1px solid rgba(255, 255, 255, 0.05);
            }
        }

        .dashboard-tab {
            display: none;
        }
        .dashboard-tab.active {
            display: block;
        }

/* --- Student Dashboard --- */
/* Specific Dashboard Layout Styles */
        body.admin-page, body.dashboard-page {
            background-color: var(--bg-base);
            display: flex;
            min-height: 100vh;
            overflow-y: auto;
        }

        .dashboard-container {
            display: flex;
            width: 100%;
            min-height: 100vh;
            position: relative;
            z-index: 10;
        }

        /* Sidebar CSS */
        .sidebar {
            width: 280px;
            background: rgba(10, 16, 48, 0.95);
            backdrop-filter: blur(16px);
            border-right: 1px solid rgba(124, 77, 255, 0.25);
            padding: 2.5rem 1.5rem;
            display: flex;
            flex-direction: column;
            flex-shrink: 0;
            transition: var(--transition-smooth);
            z-index: 100;
        }

        .sidebar-logo {
            font-size: 1.75rem;
            font-weight: 800;
            color: var(--text-primary);
            text-decoration: none;
            margin-bottom: 3.5rem;
            padding-left: 0.75rem;
            display: block;
        }

        .sidebar-menu {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .sidebar-item button {
            width: 100%;
            background: transparent;
            border: none;
            color: var(--text-muted);
            padding: 1rem 1.25rem;
            font-family: var(--font-sans);
            font-size: 0.95rem;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 1rem;
            cursor: pointer;
            border-radius: var(--radius-md);
            transition: var(--transition-fast);
            text-align: left;
        }

        .sidebar-item button svg {
            transition: var(--transition-fast);
            color: var(--text-muted);
        }

        .sidebar-item button:hover {
            background: rgba(124, 77, 255, 0.08);
            color: var(--text-primary);
            padding-left: 1.5rem;
        }

        .sidebar-item button:hover svg {
            color: var(--primary);
        }

        .sidebar-item.active button {
            background: var(--grad-primary);
            color: var(--text-primary);
            box-shadow: 0 4px 15px var(--primary-glow-subtle);
        }

        .sidebar-item.active button svg {
            color: var(--text-primary);
        }

        .sidebar-footer {
            margin-top: auto;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            padding-top: 1.5rem;
        }

        /* Content Panel CSS */
        .main-panel {
            flex-grow: 1;
            padding: 3rem 4rem;
            overflow-y: auto;
            max-width: calc(100% - 280px);
        }

        .panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 3rem;
        }

        .welcome-title {
            font-size: 2.25rem;
            font-weight: 800;
            margin-bottom: 0.5rem;
        }

        .welcome-subtitle {
            font-size: 0.95rem;
            color: var(--text-muted);
        }

        .user-pill {
            display: flex;
            align-items: center;
            gap: 1rem;
            background: var(--bg-surface);
            border: 1px solid rgba(124, 77, 255, 0.2);
            padding: 0.5rem 1.25rem;
            border-radius: 30px;
        }

        .user-pill-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--grad-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.8rem;
        }

        /* Widgets Grid */
        .widgets-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.5rem;
            margin-bottom: 3rem;
        }

        .widgets-grid-3 {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
        }

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

        @media (max-width: 576px) {
            .widgets-grid-3 {
                grid-template-columns: 1fr;
            }
        }

        .tab-header-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            gap: 1rem;
        }

        @media (max-width: 576px) {
            .tab-header-row {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.75rem;
            }
        }

        .widget-card {
            background: var(--bg-surface);
            border: 1px solid rgba(124, 77, 255, 0.2);
            border-radius: var(--radius-md);
            padding: 1.5rem;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
            display: flex;
            align-items: center;
            gap: 1.25rem;
            transition: var(--transition-smooth);
        }

        .widget-card:hover {
            border-color: var(--primary);
            box-shadow: 0 15px 30px rgba(124, 77, 255, 0.1);
            transform: translateY(-2px);
        }

        .widget-icon-wrapper {
            width: 48px;
            height: 48px;
            border-radius: var(--radius-md);
            background: rgba(124, 77, 255, 0.1);
            color: var(--accent);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .widget-info {
            display: flex;
            flex-direction: column;
        }

        .widget-val {
            font-size: 1.75rem;
            font-weight: 800;
            line-height: 1.2;
        }

        .widget-lbl {
            font-size: 0.8rem;
            color: var(--text-muted);
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        /* Section Layouts inside dashboard tabs */
        .dashboard-tab {
            display: none;
        }

        .dashboard-tab.active {
            display: block;
            animation: tab-fade-in 0.4s ease forwards;
        }

        @keyframes tab-fade-in {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Courses Tab Cards Layout */
        .my-courses-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2rem;
        }

        .course-card-active {
            background: var(--bg-surface);
            border: 1px solid rgba(124, 77, 255, 0.25);
            border-radius: var(--radius-lg);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transition: var(--transition-smooth);
        }

        .course-card-active:hover {
            border-color: var(--primary);
            box-shadow: 0 15px 30px rgba(124, 77, 255, 0.15);
        }

        .card-header-banner {
            height: 140px;
            position: relative;
            background-size: cover;
            background-position: center;
        }

        .card-banner-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to top, rgba(10, 16, 48, 0.95), transparent);
        }

        .card-banner-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background: var(--primary);
            font-size: 0.75rem;
            font-weight: 700;
            padding: 0.3rem 0.75rem;
            border-radius: 12px;
        }

        .card-inner-content {
            padding: 2rem;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }

        .card-inner-content h3 {
            font-size: 1.5rem;
            margin-bottom: 0.75rem;
        }

        .card-inner-content p {
            font-size: 0.9rem;
            margin-bottom: 1.5rem;
            line-height: 1.5;
        }

        .card-progress-wrapper {
            margin-bottom: 2rem;
            margin-top: auto;
        }

        .card-progress-labels {
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-bottom: 0.5rem;
        }

        .progress-bar-bg {
            height: 6px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 3px;
            overflow: hidden;
        }

        .progress-bar-fill {
            height: 100%;
            background: var(--grad-primary);
            border-radius: 3px;
        }

        /* Locked states inside dashboard list */
        .course-card-locked {
            position: relative;
        }

        .course-card-locked .locked-blur-cover {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(5, 8, 22, 0.8);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            z-index: 5;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 2rem;
        }

        .locked-blur-cover svg {
            color: var(--accent);
            margin-bottom: 0.75rem;
        }

        .locked-blur-cover h4 {
            font-size: 1.25rem;
            font-weight: 700;
            margin-bottom: 0.25rem;
        }

        .locked-blur-cover p {
            font-size: 0.85rem;
            color: var(--text-muted);
            max-width: 220px;
            margin-bottom: 1.25rem;
        }

        /* Certificate tab */
        .certs-list {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2rem;
        }

        .cert-card {
            background: var(--bg-surface);
            border: 1px solid rgba(124, 77, 255, 0.2);
            border-radius: var(--radius-md);
            padding: 2rem;
            display: flex;
            align-items: center;
            gap: 1.5rem;
        }

        .cert-thumb {
            width: 120px;
            height: 80px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(124, 77, 255, 0.3);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            flex-shrink: 0;
        }

        /* Profile Forms */
        .profile-container {
            max-width: 600px;
            background: var(--bg-surface);
            border: 1px solid rgba(124, 77, 255, 0.2);
            border-radius: var(--radius-lg);
            padding: 3rem 2.5rem;
        }

        /* Mobile Hamburger menu for dashboard layout */
        /* Logo institucional en el extremo superior del menú lateral de los
           paneles. Se oculta en móvil (ahí el menú es el desplegable y la
           marca ya aparece en la cabecera fija). */
        .sidebar-brand {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.75rem;
            text-decoration: none;
        }

        /* Recuadro "Última actividad": en escritorio el botón va a la derecha;
           en móvil se apila debajo del texto (ver media query). */
        .last-activity-card {
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
        }

        /* Cabecera de los paneles con el mismo tratamiento visual que la de
           index.html (.main-header.scrolled): fondo translúcido, desenfoque,
           borde violeta tenue y sombra. */
        .mobile-header {
            display: none;
            background: rgba(5, 8, 22, 0.75);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            border-bottom: 1px solid rgba(124, 77, 255, 0.15);
            padding: 1rem 1.5rem;
            align-items: center;
            justify-content: space-between;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 110;
        }

        @media (max-width: 991px) {
            body.admin-page, body.dashboard-page {
                flex-direction: column;
                padding-top: 70px;
            }
            .mobile-header {
                display: flex;
            }
            /* La marca del menú lateral se oculta en móvil: ahí el menú es el
               desplegable y el logo ya está en la cabecera fija. */
            .sidebar-brand {
                display: none;
            }
            /* Botón "Continuar clase" debajo del texto en móvil. */
            .last-activity-card {
                flex-direction: column;
                align-items: flex-start;
            }
            .last-activity-card .btn {
                width: 100%;
                justify-content: center;
            }
            /* Logo algo más compacto en la cabecera móvil. */
            .mobile-header .logo-img {
                height: 44px;
                width: 44px;
            }
            .sidebar {
                position: fixed;
                top: 70px;
                right: -280px;
                left: auto !important;
                height: calc(100vh - 70px);
                width: 280px;
                z-index: 1010 !important;
                border-left: 1px solid rgba(124, 77, 255, 0.25);
                border-right: none !important;
                transform: none !important;
                transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            }
            .sidebar.open {
                right: 0 !important;
                left: auto !important;
            }
            .sidebar-overlay {
                z-index: 1000 !important;
            }
            .main-panel, .main-content {
                max-width: 100%;
                padding: 2.5rem 1.5rem;
            }
            .widgets-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .my-courses-grid {
                grid-template-columns: 1fr;
            }
            .certs-list {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 576px) {
            .widgets-grid {
                grid-template-columns: 1fr;
            }
            .panel-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 1.5rem;
            }
            .user-pill {
                align-self: flex-start;
            }
            .admin-form-box, .admin-table-card {
                padding: 1.5rem !important;
            }
        }

        /* Responsive Grid for FAQ & Legal Section */
        .info-legal-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 3rem;
        }

        @media (max-width: 768px) {
            .info-legal-grid {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
        }

        /* Responsive adjustments for Checkout Popup Overlay */
        @media (max-width: 480px) {
            #checkout-popup-overlay > div {
                padding: 1.5rem !important;
            }
        }