/* --- CONFIGURACIÓN DE COLORES --- */
:root {
    /* Light Mode */
    --primary: #2E7D58;
    --primary-dark: #1e523a;
    --secondary: #4CA77B;
    --bg: #FFFFFF;
    --bg-alt: #F8FAFC;
    --surface: #F3F4F6;
    --text-main: #1F2937;
    --text-muted: #64748b;
    --accent: #4CA77B;
    --shadow: rgba(0, 0, 0, 0.08);
    --phone-frame-color: #222;
    /* Marco oscuro elegante */
    --bg-footer: #111827;
    --white: #F9FAFB;

}

/* Dark Mode */
[data-theme="dark"] {
    --primary: #4CA77B;
    --primary-dark: #2E7D58;
    --secondary: #2E7D58;
    --bg: #111827;
    --bg-alt: #0d121d;
    --surface: #1F2937;
    --text-main: #F9FAFB;
    --text-muted: #9CA3AF;
    --accent: #2E7D58;
    --shadow: rgba(0, 0, 0, 0.5);
    --phone-frame-color: #000;
    --white: #F9FAFB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scrollbar-color: var(--primary) var(--bg);
}

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

::-webkit-scrollbar {
    width: 10px; 
    height: 10px; 
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary); 
    border-radius: 10px; 
    border: 2px solid var(--bg); 
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark); 
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--surface);
    z-index: 1000;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
}


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

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.theme-toggle {
    background: var(--surface);
    border: none;
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

section {
    padding: 6rem 2rem;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 5px;
    background: var(--primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 800px;
    line-height: 1.6;
}

.hero {
    min-height: 110vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float-bg 20s linear infinite;
}

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

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

.hero-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

/* --- PHONE MOCKUP (RECTANGULAR) --- */
.phone-mockup {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    position: relative;
    animation: float-phone 6s ease-in-out infinite;
}

@keyframes float-phone {

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

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

.phone-colab {
    width: 100%;
    aspect-ratio: 9/20.5;
    background: var(--phone-frame-color);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 40px 80px var(--shadow);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);

}

.phone-frame {
    width: 100%;
    aspect-ratio: 10/19.5;
    background: var(--phone-frame-color);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 40px 80px var(--shadow);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-intro {
    background: var(--bg);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px var(--shadow);
    border: 3px solid var(--primary);
    margin-bottom: 3rem;
}

.team-card {
    background: var(--bg);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 8px 25px var(--shadow);
    border-top: 5px solid var(--primary);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    font-weight: 700;
}

.objective-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 3px solid var(--primary);
    border-radius: 20px;
    padding: 3.5rem;
    text-align: center;
    margin-top: 2rem;
    box-shadow: 0 10px 30px var(--shadow);
}

[data-theme="dark"] .objective-box {
    background: linear-gradient(135deg, #064e3b 0%, #134e4a 100%);
    border-color: var(--accent);
}

.objective-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    color: white;
}

.objective-text {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.7;
}

[data-theme="dark"] .objective-text {
    color: #ecfdf5;
}

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

.stat-card {
    background: var(--bg);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 6px 20px var(--shadow);
    border-left: 5px solid var(--accent);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.menu-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.menu-card {
    background: var(--bg);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow);
    border-bottom: 5px solid var(--accent);
    position: relative;
    transition: transform 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-10px);
}

.menu-number {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.menu-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
    padding: 3rem;
    background: var(--bg);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.feature-block:nth-child(even) {
    background: var(--bg-alt);
}

.feature-block.reverse {
    direction: rtl;
}

.feature-block.reverse>* {
    direction: ltr;
}

.feature-text h3 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-list li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 1.15rem;
    line-height: 1.6;
}

.feature-list li i {
    color: var(--accent);
    margin-top: 5px;
    font-size: 1.3rem;
    min-width: 20px;
}

.extra-screens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.mini-screen-card {
    text-align: center;
}

.mini-screen-card h4 {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: var(--text-main);
}

footer {
    background: var(--bg-footer);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.7rem;
    font-family: 'Poppins', sans-serif;
}

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .feature-block,
    .feature-block.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr;
        text-align: center;
    }

    .feature-text h3 {
        justify-content: center;
    }

    .feature-list li {
        justify-content: flex-start;
        text-align: left;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .menu-toggle {
        display: block;
        color: var(--text-main);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}