/* =========================================
   VARIABLES & THEME CONFIGURATION
   ========================================= */
:root {
    /* Colors - Light Mode (Default) - Based on app_colors.dart */
    --primary-color: #0D7377; /* Deep Teal - Success/Accion */
    --primary-light: rgba(13, 115, 119, 0.1);
    --secondary-color: #3E4C59; /* Neutral 700 - Functional */
    --secondary-light: rgba(62, 76, 89, 0.1);
    --accent-color: #B87333; /* Copper/Bronze - Redemption */
    --accent-light: rgba(184, 115, 51, 0.1);
    --dark-light: rgba(31, 41, 51, 0.1);
    
    --bg-color: #F5F7FA; /* neutral 100 */
    --card-bg: #FFFFFF;
    --text-main: #1F2933; /* neutral 900 */
    --text-muted: #7B8794; /* neutral 500 */
    --border-color: #E4E7EB; /* neutral 200 */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.5);
    
    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Border Radius */
    --radius-card: 16px;
    --radius-btn: 12px;
    --radius-sm: 8px;
    
    /* Shadows - Clean elevation */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glass: 0 8px 32px 0 rgba(13, 115, 119, 0.07);
    --shadow-glow: 0 0 20px rgba(184, 115, 51, 0.4);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Configuration */
[data-theme="dark"] {
    --bg-color: #1F2933; /* neutral 900 */
    --card-bg: #3E4C59; /* neutral 700 */
    --text-main: #F5F7FA; /* neutral 100 */
    --text-muted: #9AA5B1; /* neutral 400 */
    --border-color: rgba(228, 231, 235, 0.1);
    --glass-bg: rgba(62, 76, 89, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color var(--transition), color var(--transition);
    overflow-x: hidden;
}

/* =========================================
   UTILITIES
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
[data-theme="dark"] .text-gradient {
    background: linear-gradient(135deg, #EFF2F7, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-accent { color: var(--accent-color); }

.bg-primary { background-color: var(--primary-color); color: white; }
.bg-accent { background-color: var(--accent-color); color: white; }
.bg-primary-light { background-color: var(--primary-light); color: var(--primary-color); }
.bg-accent-light { background-color: var(--accent-light); color: var(--accent-color); }
.bg-secondary-light { background-color: var(--secondary-light); color: var(--secondary-color); }
.bg-dark-light { background-color: var(--dark-light); color: var(--text-main); }

[data-theme="dark"] .bg-primary-light { color: #EFF2F7; }

/* Glassmorphism Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-glass);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-large {
    padding: 15px 30px;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    background-color: #0A5A5D;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
[data-theme="dark"] .btn-primary {
    background-color: #2A4365;
}
[data-theme="dark"] .btn-primary:hover {
    background-color: #3C5A82;
}


.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
}
.btn-secondary:hover {
    background-color: var(--secondary-light);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}
[data-theme="dark"] .btn-outline {
    border-color: #EFF2F7;
    color: #EFF2F7;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}
[data-theme="dark"] .btn-outline:hover {
    background-color: #EFF2F7;
    color: #0F1419;
}

.glow-effect {
    position: relative;
}
.glow-effect::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--primary-color));
    z-index: -1;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}
.glow-effect:hover::before {
    opacity: 0.6;
}

/* Typography */
h1, h2, h3, h4 { color: var(--text-main); font-weight: 700; }
.section-title { font-size: 2.2rem; margin-bottom: 3rem; }
p { color: var(--text-muted); }

/* =========================================
   HEADER & NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 15px 0;
}
.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
}
.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

[data-theme="dark"] .logo-img {
    filter: invert(1) grayscale(1) brightness(1.5);
    box-shadow: 0 4px 12px rgba(255,255,255,0.05);
}

.logo:hover .logo-img {
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 6px 15px rgba(184, 115, 51, 0.4); /* Resplandor color bronce al hacer hover */
}

.nav-links {
    display: flex;
    gap: 24px;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: -4px; left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    background: transparent; border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.theme-toggle:hover { background-color: var(--secondary-light); }

.menu-toggle {
    display: none;
    background: transparent; border: none;
    color: var(--text-main);
    cursor: pointer;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Offset for navbar */
    overflow: hidden;
}

.hero-background-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(184, 115, 51, 0.15) 0%, rgba(13, 115, 119, 0) 70%);
    z-index: -1;
    border-radius: 50%;
}
[data-theme="dark"] .hero-background-glow {
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, rgba(15, 20, 25, 0) 70%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content .badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-content h2 {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 90%;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Visuals & Device Mockups */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 650px;
    perspective: 2000px; /* Perspectiva más profunda para mejor efecto 3D */
    margin: 40px auto 0;
}

.device-mockup {
    position: absolute;
    width: 280px;
    height: 580px;
    background: #111;
    border: 12px solid #222;
    border-radius: 44px;
    box-shadow: 
        0 30px 60px -12px rgba(0,0,0,0.5),
        0 18px 36px -18px rgba(0,0,0,0.6);
    overflow: hidden;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 2;
}

.device-screen {
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
    position: relative;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.device-label {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0.9;
    box-shadow: var(--shadow-sm);
    pointer-events: none;
    z-index: 5;
}

.business-device {
    transform: translateX(-80px) rotateY(15deg) rotateX(5deg) scale(0.95);
    z-index: 2;
}

.client-device {
    transform: translateX(80px) rotateY(-10deg) rotateX(5deg) scale(0.9);
    z-index: 1; /* El de la derecha un poco más atrás */
}

.device-mockup:hover {
    transform: translateX(0) rotateY(0) rotateX(0) scale(1) translateZ(80px);
    z-index: 20;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.5);
}

/* La sección de Floating Pass ha sido eliminada a petición del usuario para simplificar el diseño */

@media (max-width: 992px) {
    .hero-visual {
        height: 500px;
        margin-top: 40px;
    }
    .device-mockup {
        width: 180px;
        height: 380px;
        border-width: 8px;
        border-radius: 28px;
    }
    .business-device { transform: translateX(-50px) rotateY(10deg) scale(0.85); }
    .client-device { transform: translateX(50px) rotateY(-10deg) scale(0.85); }
    .floating-pass-wrapper { width: 140px; right: 0; bottom: 0; }
}

/* =========================================
   VALUE PROPOSITION (Split)
   ========================================= */
.split-layout {
    display: grid; grid-template-columns: 1fr 1fr; gap: 30px;
}
.split-card {
    padding: 40px;
    transition: var(--transition);
}
.split-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.card-header {
    display: flex; align-items: center; gap: 15px; margin-bottom: 30px;
}
.icon-wrapper {
    width: 50px; height: 50px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}
.benefit-list { list-style: none; }
.benefit-list li {
    display: flex; gap: 15px; margin-bottom: 20px; align-items: flex-start;
}
.check-icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; color: var(--primary-color); }
.check-icon.accent { color: var(--accent-color); }
[data-theme="dark"] .check-icon { color: #EFF2F7; }

.benefit-list strong { color: var(--text-main); display: block; margin-bottom: 5px;}

/* =========================================
   HOW IT WORKS (Steps)
   ========================================= */
.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
}
.step-card {
    flex: 1; padding: 40px 30px; text-align: center; position: relative; z-index: 2;
}
.step-number {
    width: 50px; height: 50px;
    background: var(--accent-color); color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-glow);
}
.step-card h3 { margin-bottom: 15px; }
.step-connector {
    height: 2px;
    flex: 0.2;
    background: dashed 2px var(--border-color);
    z-index: 1;
}

/* =========================================
   FEATURES GRID
   ========================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.feature-box {
    padding: 35px 25px; text-align: center;
}
.hover-lift { transition: var(--transition); }
.hover-lift:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }

.feature-icon {
    width: 60px; height: 60px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin: 0 auto 20px;
}
.feature-box h4 { margin-bottom: 12px; font-size: 1.2rem;}

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonial-slider {
    display: grid; grid-template-columns: 1fr 1fr; gap: 30px;
}
.testimonial-card {
    padding: 40px;
}
.stars { color: var(--accent-color); letter-spacing: 2px; margin-bottom: 15px; font-size: 1.2rem;}
.quote { font-style: italic; font-size: 1.1rem; color: var(--text-main); margin-bottom: 25px;}
.author { display: flex; align-items: center; gap: 15px; }
.author-avatar {
    width: 45px; height: 45px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.author-info strong { display: block; color: var(--text-main);}
.author-info span { font-size: 0.85rem; color: var(--text-muted); }

/* =========================================
   FAQ ACCORDION
   ========================================= */
.faq-container { max-width: 800px; margin: 0 auto; }
.accordion-item { margin-bottom: 15px; overflow: hidden;}
.accordion-header {
    width: 100%; padding: 20px 25px;
    display: flex; justify-content: space-between; align-items: center;
    background: transparent; border: none; cursor: pointer;
    text-align: left; color: var(--text-main); font-weight: 600; font-size: 1.05rem;
    font-family: inherit;
}
.accordion-icon { transition: transform 0.3s; color: var(--secondary-color);}
.accordion-header[aria-expanded="true"] .accordion-icon { transform: rotate(180deg); }
.accordion-content {
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    padding: 0 25px;
}
.accordion-content p { padding-bottom: 20px; }

/* =========================================
   CTA SECTION
   ========================================= */
.cta-box {
    padding: 60px; background: linear-gradient(135deg, var(--card-bg), var(--primary-light));
    border: 1px solid var(--border-color);
}
[data-theme="dark"] .cta-box { background: linear-gradient(135deg, var(--card-bg), rgba(28, 46, 74, 0.3)); }

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.footer-brand p { margin-top: 15px; font-size: 0.9rem;}
.footer-links h4 { margin-bottom: 20px; font-size: 1rem; }
.footer-links a {
    display: block; color: var(--text-muted); text-decoration: none; margin-bottom: 10px; font-size: 0.9rem;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--primary-color); }
[data-theme="dark"] .footer-links a:hover { color: var(--accent-color); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 20px; border-top: 1px solid var(--border-color); font-size: 0.85rem;
}
.social-icons { display: flex; gap: 15px;}
.social-icons a { color: var(--text-muted); transition: var(--transition); }
.social-icons a:hover { color: var(--primary-color); transform: translateY(-2px);}
[data-theme="dark"] .social-icons a:hover { color: var(--accent-color); }

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes scan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .hero-container, .split-layout, .testimonial-slider { grid-template-columns: 1fr; }
    .hero-visual { height: 500px; margin-top: 40px; }
    .business-device { transform: translateX(-30px) rotateY(10deg) scale(0.9); }
    .client-device { transform: translateX(30px) rotateY(-8deg) scale(0.85); }
    .steps-container { flex-direction: column; }
    .step-connector { width: 2px; height: 30px; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem !important; }
    .nav-links, .nav-btn { display: none; }
    .menu-toggle { display: block; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .cta-box { padding: 40px 20px; }
    .hero { padding-top: 100px; text-align: center; }
    .hero-cta { justify-content: center; }
}
