@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@600;700;800&display=swap');

/* ==========================================================================
   AGL Latinoamérica - MasterMend Training Design System
   Visual Aesthetics: High-End Industrial Dark & Clean Light Theme
   ========================================================================== */

:root,
[data-theme="dark"] {
    color-scheme: dark;
    --bg-color: #121212;
    --bg-surface: #171d15;
    --bg-surface-hover: #1f271d;
    --bg-card: #141913;
    --bg-alt: #1C2219;

    --text-primary: #f0f4f8;
    --text-secondary: #94a3b8;
    --text-muted: #81807E;

    --primary-color: #659E50;
    --primary-hover: #75b35c;
    --primary-light: #4ade80;
    --primary-glow: rgba(101, 158, 80, 0.35);
    --primary-subtle: rgba(101, 158, 80, 0.14);

    --accent-color: #37522D;
    --accent-hover: #456638;

    --glass-bg: rgba(28, 34, 25, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(101, 158, 80, 0.45);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --nav-scrolled-bg: rgba(18, 18, 18, 0.92);

    --theme-toggle-bg: rgba(255, 255, 255, 0.06);
    --theme-toggle-border: rgba(255, 255, 255, 0.12);
    --theme-toggle-hover: rgba(101, 158, 80, 0.2);

    --header-height: 80px;
    --border-radius-lg: 16px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --theme-transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

[data-theme="light"] {
    color-scheme: light;
    --bg-color: #f7faf7;
    --bg-surface: #ffffff;
    --bg-surface-hover: #eaf2e9;
    --bg-card: #ffffff;
    --bg-alt: #edf4ec;

    --text-primary: #151d16;
    --text-secondary: #4d5e50;
    --text-muted: #748577;

    --primary-color: #438830;
    --primary-hover: #346d25;
    --primary-light: #2c681c;
    --primary-glow: rgba(67, 136, 48, 0.25);
    --primary-subtle: rgba(67, 136, 48, 0.1);

    --accent-color: #254a1a;
    --accent-hover: #38562e;

    --glass-bg: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(35, 55, 30, 0.1);
    --border-color: rgba(35, 55, 30, 0.1);
    --border-hover: rgba(67, 136, 48, 0.45);
    --card-shadow: 0 12px 35px rgba(25, 45, 20, 0.07);
    --nav-scrolled-bg: rgba(247, 250, 247, 0.94);

    --theme-toggle-bg: rgba(35, 55, 30, 0.06);
    --theme-toggle-border: rgba(35, 55, 30, 0.12);
    --theme-toggle-hover: rgba(67, 136, 48, 0.15);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, sans-serif;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--theme-transition);
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
}

a { text-decoration: none; color: inherit; }

/* ─── Navbar: Logo centrado inicialmente -> Recorrido a la izquierda al scrollear ─── */
.store-header.dark-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
    background: transparent;
}

.store-header.dark-header.scrolled {
    background: var(--nav-scrolled-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    box-shadow: var(--card-shadow);
}

.store-header.hide-header {
    transform: translateY(-100%);
}

.header-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    position: relative;
    height: 44px;
}

.brand-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: left 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 10;
}

.store-header.scrolled .brand-logo {
    left: 2rem;
    transform: translate(0, -50%);
}

.brand-logo img {
    height: 40px;
    width: auto;
    max-height: 44px;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease, height 0.3s ease;
}

.main-nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, calc(-50% - 8px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease 0.1s, transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) 0.1s, visibility 0.4s;
    z-index: 5;
}

.store-header.scrolled .main-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.auth-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(calc(-50% - 8px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease 0.15s, transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) 0.15s, visibility 0.4s;
    z-index: 5;
}

.store-header.scrolled .auth-actions {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%);
}

/* Language Toggle Button (ES / EN) — exacto aglbi.com */
.lang-toggle-btn {
    width: auto;
    padding: 0 12px;
    height: 44px;
    border-radius: 20px;
    background: var(--theme-toggle-bg);
    border: 1px solid var(--theme-toggle-border);
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    outline: none;
    flex-shrink: 0;
    white-space: nowrap;
    gap: 0;
}

.lang-toggle-btn:hover {
    background: var(--theme-toggle-hover);
    border-color: var(--primary-color);
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 6px 18px rgba(101, 158, 80, 0.25);
}

.lang-toggle-btn span {
    transition: font-weight 0.3s ease, opacity 0.3s ease;
}

/* Theme toggle — exacto aglbi.com */
.theme-toggle-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--theme-toggle-bg);
    border: 1px solid var(--theme-toggle-border);
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    outline: none;
    overflow: hidden;
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: #f59e0b;
    transform: rotate(30deg) scale(1.08);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.3);
}

.theme-toggle-btn .theme-icon {
    position: absolute;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}

.theme-icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: #f59e0b;
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.55));
}

.theme-icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.3);
    color: #94a3b8;
}

[data-theme="light"] .theme-icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0.3);
}

[data-theme="light"] .theme-icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: #475569;
    filter: drop-shadow(0 0 3px rgba(71, 85, 105, 0.3));
}

.btn-text {
    background: transparent;
    border: none;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-fast);
}

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

.btn-outline-green {
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-light);
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-outline-green:hover {
    background: var(--primary-subtle);
    border-color: var(--primary-light);
    color: #fff;
}

/* Keyframe Animations for Hero Entrance */
@keyframes heroFadeUp {
    0% {
        opacity: 0;
        transform: translateY(35px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(10px);
    }
    60% {
        transform: translateX(-50%) translateY(5px);
    }
}

/* Split Hero Section - Centered Layout */
.hero-split {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-alt) 100%);
    padding: 2rem;
    min-height: 100vh;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    transition: var(--theme-transition);
}

.hero-split::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg-color));
    pointer-events: none;
    z-index: 10;
}

.hero-content {
    width: 100%;
    max-width: 850px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    text-transform: none;
    transition: var(--theme-transition);
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title span {
    color: var(--primary-color);
    text-transform: none;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 700px;
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
    opacity: 0;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 1.3rem;
    opacity: 0.6;
    cursor: pointer;
    animation: bounceDown 2s infinite;
    transition: var(--transition-fast);
    z-index: 5;
}

.hero-scroll-hint:hover {
    color: var(--primary-color);
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-disabled,
.btn-primary:disabled,
button:disabled {
    background: #374151 !important;
    color: #9ca3af !important;
    border: 1px solid #4b5563 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    opacity: 0.6 !important;
    transform: none !important;
}

[data-theme="light"] .btn-disabled,
[data-theme="light"] .btn-primary:disabled,
[data-theme="light"] button:disabled {
    background: #e5e7eb !important;
    color: #9ca3af !important;
    border: 1px solid #d1d5db !important;
}

.btn-outline-light {
    border: 1px solid rgba(255,255,255,0.4);
    background: transparent;
    color: #fff;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-outline-light:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

/* Mockup Visuals (Appears on Scroll) */
.hero-visual {
    width: 100%;
    max-width: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    position: relative;
    z-index: 2;
    margin-top: 4rem;
    margin-bottom: 6rem;
    opacity: 0;
    transform: translateY(70px) scale(0.95);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-visual.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}


.mockup-window {
    flex: 1;
    max-width: 720px;
    width: 100%;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8);
    overflow: hidden;
    aspect-ratio: 16/10;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    height: 30px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mockup-header i {
    width: 10px; height: 10px; border-radius: 50%; background: #4b5563;
}
.mockup-header i:nth-child(1) { background: #ef4444; }
.mockup-header i:nth-child(2) { background: #f59e0b; }
.mockup-header i:nth-child(3) { background: #10b981; }

.mockup-body {
    display: flex; flex: 1;
}

.mockup-sidebar {
    width: 20%; 
    background: rgba(255,255,255,0.02); 
    border-right: 1px solid rgba(255,255,255,0.05);
}

.mockup-content {
    flex: 1; 
    padding: 1.5rem; 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 1rem; 
    grid-auto-rows: min-content;
}

.mockup-card {
    background: linear-gradient(135deg, var(--primary-subtle), rgba(101,158,80,0.05)); 
    height: 90px; 
    border-radius: 8px;
    border: 1px solid rgba(101,158,80,0.2);
}

.mockup-card-large {
    grid-column: span 3; 
    height: 200px; 
    background: rgba(255,255,255,0.02); 
    border: 1px dashed rgba(255,255,255,0.1); 
    border-radius: 8px; 
    margin-top: 1rem;
}

.mockup-line {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

.mockup-mobile {
    position: relative;
    bottom: auto;
    right: auto;
    width: 190px;
    height: 380px;
    flex-shrink: 0;
    background: var(--bg-surface);
    border: 4px solid #374151;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mobile-header {
    height: 25px;
    background: #374151;
    display: flex;
    justify-content: center;
    align-items: center;
}
.mobile-header::after {
    content: '';
    width: 40px;
    height: 4px;
    background: #1f2937;
    border-radius: 4px;
}

/* Store Center Text */
.section-center-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-center-title h2 {
    font-size: 2.2rem;
    color: var(--text-primary);
    font-weight: 700;
}

/* Store Grid */
.store-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.section-filters {
    display: flex;
    gap: 0.5rem;
}

.filter-chip {
    padding: 0.4rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-chip.active, .filter-chip:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.trainings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    align-items: start;
}

/* Training Card (Smaller initially, expands on hover) */
.training-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.training-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(101, 158, 80, 0.25);
}

.card-header {
    height: 150px;
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-alt));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.card-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    transition: var(--transition-smooth);
    opacity: 0.9;
}

.training-card:hover .card-icon {
    transform: scale(1.15) rotate(5deg);
    color: var(--primary-light);
}

.level-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(20, 25, 19, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid var(--primary-color);
    color: var(--primary-light);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
    transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

[data-theme="light"] .level-badge {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(4px);
    color: var(--primary-color);
}

.card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 1.15rem;
    margin-bottom: 0;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

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

/* Expansion Mechanics */
.card-reveal {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
                opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
                margin 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.training-card:hover .card-reveal {
    max-height: 200px;
    opacity: 1;
    margin-top: 0.75rem;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.card-meta div {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.card-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.btn-primary.btn-sm, .btn-outline.btn-sm {
    padding: 0.55rem 0;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: normal;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    flex: 1;
    text-align: center;
    justify-content: center;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-light);
    background: var(--primary-subtle);
}

/* Animación de filtros */
@keyframes scaleInFade {
    0% {
        opacity: 0;
        transform: scale(0.92);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.training-card.show-animate {
    animation: scaleInFade 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Detailed UI Mockup */
.app-ui-detailed {
    display: flex; flex-direction: column; width: 100%; height: 100%; background: #1a1a1a;
    font-family: 'Inter', sans-serif;
}
.app-main {
    display: flex; flex: 1; overflow: hidden;
}
.app-sidebar-detailed {
    width: 140px; background: #1a1a1a; border-right: 1px solid #333;
    display: flex; flex-direction: column; padding: 15px 10px; gap: 15px;
}
.sidebar-logo {
    color: #fff; font-weight: bold; font-size: 14px; margin-bottom: 20px;
    display: flex; align-items: center; gap: 5px;
}
.sidebar-menu-item {
    color: #aaa; font-size: 12px; display: flex; align-items: center; gap: 8px;
    padding: 6px; border-radius: 6px; cursor: pointer;
}
.sidebar-menu-item.active {
    background: rgba(101, 158, 80, 0.1); color: var(--primary-color);
}
.sidebar-menu-item .icon { font-size: 14px; }
.sidebar-menu-item.active .icon { color: var(--primary-color); }

.app-content-detailed {
    flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 15px; background: #111;
}
.section-title-detailed {
    color: #aaa; font-size: 11px; font-weight: 600; letter-spacing: 1px; margin-bottom: 10px;
}
.app-grid-2 {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.app-card-detailed {
    background: #222; border: 1px solid #333; border-radius: 6px;
    padding: 10px 12px; display: flex; align-items: center; gap: 10px;
    color: #fff; font-size: 13px; font-weight: 500;
}
.app-card-detailed .icon {
    color: var(--primary-color); font-size: 14px;
}

/* Tarjetas abstractas verdes para el móvil */
.app-card-simple {
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 6px; padding: 12px;
    display: flex; align-items: center; gap: 12px;
}
.simple-icon {
    width: 20px; height: 20px; border-radius: 4px;
    background: rgba(34, 197, 94, 0.4);
}
.simple-lines {
    flex: 1; display: flex; flex-direction: column; gap: 6px;
}
.simple-lines .line1 {
    width: 70%; height: 6px; border-radius: 3px;
    background: rgba(34, 197, 94, 0.8);
}
.simple-lines .line2 {
    width: 40%; height: 4px; border-radius: 2px;
    background: rgba(34, 197, 94, 0.4);
}

/* Imágenes dentro de los mockups */
.mockup-img-container {
    padding: 0 !important;
    overflow: hidden;
    height: 100%;
    display: flex;
}

.mockup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
}

.mobile-img-container .mockup-image {
    object-position: center top;
}

/* ===================================================
   LIGHT MODE - Mockup Hero UI
   =================================================== */

/* Ventana principal del mockup */
[data-theme="light"] .mockup-window {
    background: #e8ede8;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .mockup-header {
    background: rgba(0, 0, 0, 0.06);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .mockup-sidebar {
    background: rgba(0, 0, 0, 0.04);
    border-right-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .mockup-card-large {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .mockup-line {
    background: rgba(0, 0, 0, 0.12);
}

/* App UI detallada dentro del mockup */
[data-theme="light"] .app-ui-detailed {
    background: #edf4ec;
}

[data-theme="light"] .app-sidebar-detailed {
    background: #e0ebe0;
    border-right-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .sidebar-logo {
    color: #151d16;
}

[data-theme="light"] .sidebar-menu-item {
    color: #4d5e50;
}

[data-theme="light"] .sidebar-menu-item.active {
    background: rgba(67, 136, 48, 0.12);
    color: var(--primary-color);
}

[data-theme="light"] .app-content-detailed {
    background: #f7faf7;
}

[data-theme="light"] .app-card-detailed {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    color: #151d16;
}

/* Tarjetas simples del mockup móvil */
[data-theme="light"] .app-card-simple {
    background: rgba(67, 136, 48, 0.06);
    border-color: rgba(67, 136, 48, 0.2);
}

[data-theme="light"] .simple-icon {
    background: rgba(67, 136, 48, 0.35);
}

[data-theme="light"] .simple-lines .line1 {
    background: rgba(67, 136, 48, 0.75);
}

[data-theme="light"] .simple-lines .line2 {
    background: rgba(67, 136, 48, 0.38);
}

/* Mockup móvil */
[data-theme="light"] .mockup-mobile {
    background: #e0ebe0;
    border-color: #a0b8a0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .mobile-header {
    background: #a0b8a0;
}

[data-theme="light"] .mobile-header::after {
    background: #7a9e7a;
}

/* ===================================================
   RESPONSIVE DESIGN
   =================================================== */
@media (max-width: 992px) {
    .hero-visual {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-split {
        padding: 5rem 1.5rem 4rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-desc {
        font-size: 1.05rem;
    }

    .mockup-mobile {
        width: 170px;
        height: 340px;
    }
}




/* =========================================================
   AVISO SENCILLO DE COOKIES (NO BLOQUEANTE)
   ========================================================= */
.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2.5rem);
    max-width: 960px;
    background: rgba(22, 28, 20, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(101, 158, 80, 0.45);
    border-radius: 18px;
    padding: 1.15rem 1.65rem;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(101, 158, 80, 0.15);
    z-index: 99999;
    opacity: 1;
    pointer-events: auto;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.35s ease,
                background-color 0.3s ease,
                border-color 0.3s ease;
}

[data-theme="light"] .cookie-banner {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(67, 136, 48, 0.35);
    box-shadow: 0 14px 35px rgba(25, 45, 20, 0.16), 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cookie-banner.hidden,
html.cookie-accepted #cookie-banner {
    display: none !important;
}

.cookie-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex: 1;
    min-width: 280px;
}

.cookie-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(101, 158, 80, 0.12);
    border: 1px solid rgba(101, 158, 80, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

[data-theme="light"] .cookie-icon {
    background: rgba(67, 136, 48, 0.1);
    border: 1px solid rgba(67, 136, 48, 0.25);
    color: var(--primary-color);
}

.cookie-text h4 {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
}

[data-theme="light"] .cookie-text h4 {
    color: #151d16;
}

.cookie-text p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
}

[data-theme="light"] .cookie-text p {
    color: #4d5e50;
}

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

.btn-cookie-accept {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #ffffff !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(101, 158, 80, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(101, 158, 80, 0.45);
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
}

.btn-cookie-decline {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary) !important;
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 0.6rem 1.35rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    outline: none;
}

[data-theme="light"] .btn-cookie-decline {
    background: #f1f4f0;
    color: #4b5d4e !important;
    border: 1px solid rgba(35, 55, 30, 0.2);
}

.btn-cookie-decline:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #f87171 !important;
    transform: translateY(-2px);
}

[data-theme="light"] .btn-cookie-decline:hover {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.3);
    color: #b91c1c !important;
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 1rem;
        width: calc(100% - 1.5rem);
        padding: 1rem 1.2rem;
    }

    .cookie-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9rem;
    }

    .cookie-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .btn-cookie-accept,
    .btn-cookie-decline {
        flex: 1;
        padding: 0.65rem 1rem;
    }
}
