/* Variables y Reset */
:root {
    /* User Palette Exact Match */
    --primary: #00a540;
    /* Green */
    --primary-dark: #12762d;
    /* Dark Green */
    --secondary: #b0e5a6;
    /* Light Green */
    --background: #ffffff;
    /* White */
    --text-main: #000000;
    /* Black */
    --white: #ffffff;
    --black: #000000;

    /* Derived/Utility */
    --text-muted: #666666;
    --bg-light: #f9fafb;
    /* Keeping a subtle light gray for section diffs if needed, or I can use white/secondary */

    --accent-blue: #2563eb;
    /* Keeping for variety in icons if needed, can serve as info */
    --accent-orange: #f59e0b;

    --radius-lg: 24px;
    --radius-md: 12px;
    --shadow-sm: 0 1px 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);
}

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

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

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.1;
    font-weight: 700;
}

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

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #00d455 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: #111827;
}

.text-white {
    color: white;
}

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

.max-w-800 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 165, 64, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 165, 64, 0.3);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-main);
    text-decoration: none;
}

.logo img {
    max-height: 55px;
    height: auto;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 4rem 0 6rem;
    overflow: hidden;
}

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

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--secondary);
    color: var(--primary-dark);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* Tiendas de Apps */
.store-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.store-btn {
    transition: transform 0.2s;
    height: 48px;
}

.store-btn img {
    height: 100%;
    border-radius: 8px;
}

.store-btn:hover {
    transform: scale(1.05);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat-item strong {
    display: block;
    font-size: 1.5rem;
    color: var(--text-main);
}

.stat-item span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: #e5e7eb;
}

/* Phone Frame & Mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-frame {
    position: relative;
    width: 270px;
    height: 570px;
    background: #1a1a1a;
    border-radius: 32px;
    border: 12px solid #1a1a1a;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    z-index: 10;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 22px;
    background: #1a1a1a;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 20;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    /* Cambiado a oscuro para evitar flash blanco */
    overflow: hidden;
    border-radius: 20px;
    position: relative;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.app-screenshot.active {
    opacity: 1;
    z-index: 2;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    z-index: 15;
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: 15%;
    left: -20px;
}

.card-2 {
    bottom: 20%;
    right: -20px;
    animation-delay: 2s;
}

.icon-sm {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

@keyframes float {

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

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

/* Features */
.section {
    padding: 5rem 0;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid #f3f4f6;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.bg-green {
    background: #dcfce7;
    color: #166534;
}

.bg-blue {
    background: #dbeafe;
    color: #1e40af;
}

.bg-orange {
    background: #fef3c7;
    color: #92400e;
}

/* Chat Section */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tag {
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: block;
    letter-spacing: 1px;
}

.section-chat h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.section-chat p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.feature-list li i {
    color: var(--primary);
    width: 20px;
}

.split-layout.reverse {
    direction: rtl;
}

.split-layout.reverse>* {
    direction: ltr;
}

.small-frame {
    transform: scale(0.9);
    margin: 0 auto;
}

/* Demo Section */
.demo-section {
    background: linear-gradient(180deg, var(--bg-light) 0%, #ffffff 100%);
}

.demo-container {
    max-width: 800px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.demo-navigation {
    display: flex;
    align-items: center;
    gap: 3rem;
    width: 100%;
    justify-content: center;
}

.demo-nav-btn {
    background: white;
    border: 1px solid #e5e7eb;
    color: var(--primary);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.demo-nav-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
}

.demo-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.demo-frame {
    width: 280px;
    height: 600px;
    transition: transform 0.3s ease;
}

.demo-info {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.step-counter {
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.step-progress {
    height: 6px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 600px) {
    .demo-navigation {
        gap: 1.5rem;
    }

    .demo-nav-btn {
        width: 48px;
        height: 48px;
    }

    .demo-frame {
        width: 220px;
        height: 460px;
    }
}


/* CTA Card */
.cta-card {
    background: var(--primary);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
}

.cta-content h2 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.bg-white {
    background-color: white !important;
    padding: 0.5rem;
    border-radius: 10px;
}

.cta-content .store-buttons {
    justify-content: center;
    margin-bottom: 1rem;
}

.small-text {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid #f3f4f6;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-brand .logo {
    justify-content: center;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

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

.link-group h4 {
    margin-bottom: 1rem;
    color: var(--text-main);
}

.link-group a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.link-group a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #f3f4f6;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.delay-1 {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Refinement */
@media (max-width: 968px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero-grid,
    .split-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero {
        padding: 2.5rem 0 4rem;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .hero-stats,
    .store-buttons {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 1rem;
    }

    .split-layout {
        direction: ltr;
    }

    .split-visual {
        order: -1;
    }

    .feature-list {
        display: inline-block;
        text-align: left;
    }

    /* Mobile Menu Refined */
    .nav-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #f3f4f6;
    }

    .nav-menu.active {
        padding: 2rem;
        max-height: 500px;
        opacity: 1;
    }

    .nav-link {
        width: 100%;
        padding: 1rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid #f9fafb;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem;
        background: var(--bg-light);
        border-radius: 12px;
        color: var(--primary);
    }

    .nav-actions {
        width: 100%;
        margin-top: 1rem;
    }

    .nav-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.25rem;
    }

    .phone-frame {
        width: 240px;
        height: 480px;
        border-width: 8px;
    }

    .floating-card {
        display: none;
    }

    .store-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .store-btn {
        width: 180px;
        height: auto;
    }

    .store-btn img {
        width: 100%;
    }

    .link-group {
        width: 100%;
    }

    /* Modal Mobile */
    .modal-content {
        width: calc(100% - 2rem);
        margin: 1rem;
        padding: 1.75rem;
        border-radius: 24px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-body h3 {
        font-size: 1.5rem;
    }

    .back-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 44px;
        height: 44px;
    }
}

/* Global Overflow Fix */
html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 165, 64, 0.3);
}

/* Modal and Footer Custom Sizes (already present below, keeping order) */
/* Modern Modal Styles... */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 450px;
    padding: 2.5rem;
    border-radius: 30px;
    position: relative;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: all 0.2s;
}

.modal-close:hover {
    background: #e5e7eb;
    color: var(--black);
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: var(--secondary);
    color: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.modal-icon i {
    width: 32px;
    height: 32px;
}

.modal-body h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.modal-body p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: 1.1rem;
}

.fade-in-scale {
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .fade-in-scale {
    transform: scale(1);
}

/* Logos Custom Sizes */
.logo-img-header {
    height: 28px;
    width: auto;
}

.logo-img-footer {
    height: 36px;
    width: auto;
}