/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green-primary: #0F5E3F;
    --green-whatsapp: #25D366;
    --green-light: #E8F5E9;
    --gray-50: #F8F9FA;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-600: #6B7280;
    --gray-900: #1A1A1A;
    --shadow-card: 0 4px 24px rgba(0,0,0,0.06);
    --radius: 12px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-900);
    background: #FFFFFF;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

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

/* ===== BOTONES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-primary {
    background: var(--green-whatsapp);
    color: #fff;
}
.btn-primary:hover {
    background: #1da85c;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}
.btn-outline {
    background: transparent;
    color: var(--green-primary);
    border: 2px solid var(--green-primary);
}
.btn-outline:hover {
    background: var(--green-primary);
    color: #fff;
}

.btn-wa-small {
    background: var(--green-whatsapp);
    color: #fff;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.btn-wa-small:hover {
    background: #1da85c;
    transform: translateY(-2px);
}

/* ===== HEADER ===== */
.header {
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    z-index: 100;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--green-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
}
.logo-text {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--green-primary);
    letter-spacing: -0.5px;
}
.logo-tagline {
    font-size: 0.7rem;
    color: var(--gray-600);
    font-weight: 500;
    display: block;
    margin-top: -2px;
}
.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.nav-actions .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* ===== HERO ===== */
.hero {
    padding: 60px 0 80px;
    background: linear-gradient(135deg, #F8F9FA 0%, #E8F5E9 100%);
}
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--gray-900);
    margin-bottom: 20px;
}
.hero-content h1 span {
    color: var(--green-primary);
}
.hero-content p {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 500px;
    margin-bottom: 32px;
}
.hero-badge {
    display: inline-block;
    background: var(--green-light);
    color: var(--green-primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-chat-mock {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--gray-200);
}
.hero-chat-mock .bubble {
    background: var(--green-light);
    padding: 14px 18px;
    border-radius: 16px 16px 16px 4px;
    max-width: 85%;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--gray-900);
}
.hero-chat-mock .bubble-agent {
    background: var(--green-primary);
    color: #fff;
    border-radius: 16px 16px 4px 16px;
    margin-left: auto;
}
.hero-chat-mock .bubble small {
    display: block;
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: 4px;
}
.hero-chat-mock .typing {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}
.hero-chat-mock .typing span {
    width: 8px;
    height: 8px;
    background: var(--gray-600);
    border-radius: 50%;
    animation: pulse 1.4s infinite;
}
.hero-chat-mock .typing span:nth-child(2) { animation-delay: 0.2s; }
.hero-chat-mock .typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulse {
    0%, 60%, 100% { opacity: 0.2; transform: scale(0.8); }
    30% { opacity: 1; transform: scale(1); }
}

/* ===== SECCIONES ===== */
.section {
    padding: 80px 0;
}
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -1px;
}
.section-sub {
    text-align: center;
    color: var(--gray-600);
    max-width: 640px;
    margin: 0 auto 48px;
    font-size: 1.1rem;
}
.bg-gray {
    background: var(--gray-50);
}

/* ===== COMPARATIVA ===== */
.comparativa {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 16px;
}
.comparativa-card {
    background: #fff;
    padding: 32px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: all 0.2s ease;
}
.comparativa-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
}
.comparativa-card .icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
}
.comparativa-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.comparativa-card .badge-check { color: var(--green-primary); font-weight: 700; }
.comparativa-card .badge-x { color: #ef4444; }
.comparativa-card ul {
    list-style: none;
    text-align: left;
    margin-top: 16px;
    font-size: 0.95rem;
}
.comparativa-card ul li {
    padding: 6px 0;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
}
.comparativa-card ul li:last-child { border-bottom: none; }

/* ===== NICHO TARJETAS ===== */
.nichos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 16px;
}
.nicho-card {
    background: #fff;
    padding: 32px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
}
.nicho-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
}
.nicho-card .emoji {
    font-size: 2.4rem;
    margin-bottom: 12px;
}
.nicho-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.nicho-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* ===== PRECIOS ===== */
.precios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}
.precio-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 40px 32px;
    transition: all 0.2s ease;
}
.precio-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
}
.precio-card.destacado {
    border-color: var(--green-primary);
    background: var(--green-light);
}
.precio-card .plan {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--gray-600);
}
.precio-card .nombre {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 8px 0 4px;
}
.precio-card .price {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--green-primary);
}
.precio-card .price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-600);
}
.precio-card .price-sub {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.precio-card ul {
    list-style: none;
    margin: 20px 0 28px;
}
.precio-card ul li {
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}
.precio-card ul li::before {
    content: "✓";
    color: var(--green-primary);
    font-weight: 700;
}
.precio-card .btn {
    width: 100%;
    justify-content: center;
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--gray-200);
    padding: 20px 0;
    cursor: pointer;
}
.faq-item h4 {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item p {
    color: var(--gray-600);
    font-size: 0.95rem;
    display: none;
    margin-top: 8px;
}
.faq-item.active p {
    display: block;
}
.faq-item .toggle {
    color: var(--green-primary);
    font-weight: 700;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}
.faq-item.active .toggle {
    transform: rotate(45deg);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
    color: #fff;
    padding: 48px 0 32px;
}
.footer .container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}
.footer h5 {
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1rem;
}
.footer p, .footer a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    line-height: 2;
}
.footer a:hover { color: #fff; }
.footer-bottom {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .comparativa {
        grid-template-columns: 1fr;
    }
    .nichos-grid {
        grid-template-columns: 1fr;
    }
    .precios-grid {
        grid-template-columns: 1fr;
    }
    .footer .container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .header .container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .nav-actions {
        justify-content: center;
    }
}
