/* ========================================
   TiendaChat Landing — CSS
   ======================================== */

:root {
    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --brand-light: #eff6ff;
    --accent: #7c3aed;
    --bg-light: #f8fafc;
    --text: #0f172a;
    --text-muted: #64748b;
}

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

body {
    background: #fff;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

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

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   CONTAINER
   ======================================== */

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

/* ========================================
   NAV
   ======================================== */

.nav-landing {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    padding: 0 2rem;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--text);
    padding: 8px 4px;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand);
}

.nav-link i {
    margin-left: 4px;
    transition: transform 0.2s;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    min-width: 220px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    transform: translateX(-50%) translateY(8px);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    transition: background 0.15s;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
}

.dropdown-icon {
    font-size: 1.1rem;
}

/* Login button */
.btn-nav-login {
    border: 2px solid var(--brand);
    color: var(--brand);
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.btn-nav-login:hover {
    background: var(--brand);
    color: #fff;
}

/* Mobile toggle */
.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
}

/* ========================================
   HERO
   ======================================== */

.hero-landing {
    padding: 100px 2rem 80px;
    text-align: center;
    background: linear-gradient(180deg, #eff6ff 0%, #f5f3ff 100%);
}

.hero-landing h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.15;
    max-width: 700px;
    margin: 0 auto 1rem;
    color: var(--text);
}

.hero-landing .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-light);
    color: var(--brand);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-primary-lg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand);
    color: #fff;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.btn-primary-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-outline-lg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--brand);
    color: var(--brand);
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.btn-outline-lg:hover {
    background: var(--brand);
    color: #fff;
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
    padding: 80px 2rem;
}

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

.section-title-lg {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ========================================
   FEATURE CARDS
   ======================================== */

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

.feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.25s, transform 0.25s;
}

.feature-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.feature-card .icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ========================================
   STEPS (How it works)
   ======================================== */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step {
    text-align: center;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step h3 {
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text);
}

.step p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========================================
   PRICING
   ======================================== */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.pricing-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid #e2e8f0;
    position: relative;
    transition: box-shadow 0.25s;
}

.pricing-card.popular {
    border-color: var(--brand);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
}

.pricing-card .plan-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
}

.pricing-card .plan-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--brand);
    margin: 0.5rem 0;
}

.pricing-card .plan-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-card .plan-desc {
    color: var(--text-muted);
    margin: 0.5rem 0 1.5rem;
    font-size: 0.9rem;
}

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

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li .check {
    color: #22c55e;
    font-weight: 700;
}

.feature-list li .cross {
    color: #cbd5e1;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand);
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

/* ========================================
   CONTACT FORM
   ======================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.form-group-landing {
    margin-bottom: 1.25rem;
}

.form-group-landing label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.375rem;
    display: block;
}

.form-group-landing input,
.form-group-landing select,
.form-group-landing textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #fff;
    color: var(--text);
}

.form-group-landing input:focus,
.form-group-landing select:focus,
.form-group-landing textarea:focus {
    border-color: var(--brand);
    outline: none;
}

.form-group-landing textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background: var(--brand);
    color: #fff;
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: var(--brand-dark);
}

.whatsapp-btn {
    background: #25d366;
    color: #fff;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: background 0.2s;
}

.whatsapp-btn:hover {
    background: #20bd5a;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    padding: 80px 2rem;
    text-align: center;
    color: #fff;
    border-radius: 24px;
    margin: 0 2rem 3rem;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.cta-section p {
    opacity: 0.9;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.btn-cta-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--brand);
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ========================================
   LEGAL PAGES
   ======================================== */

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 2rem;
}

.legal-content h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text);
}

.legal-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--brand);
}

.legal-content p,
.legal-content li {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
    padding-left: 1.5rem;
}

/* ========================================
   FLASH MESSAGES
   ======================================== */

.flash-msg {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.flash-msg.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.flash-msg.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ========================================
   FEATURE DETAIL PAGES
   ======================================== */

.feature-detail-hero {
    padding: 80px 2rem 60px;
    background: linear-gradient(180deg, #eff6ff 0%, #f5f3ff 100%);
    text-align: center;
}

.feature-detail-hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 1rem;
}

.feature-detail-hero p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.feature-detail-section {
    padding: 60px 2rem;
}

.feature-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-detail-grid.reverse {
    direction: rtl;
}

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

/* ========================================
   FOOTER
   ======================================== */

.footer-landing {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 2rem 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto 3rem;
}

.footer-grid h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-grid a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    padding: 4px 0;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-grid a:hover {
    color: #fff;
}

.footer-grid p {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* ========================================
   RESPONSIVE — TABLET & MOBILE
   ======================================== */

@media (max-width: 768px) {

    /* Nav */
    .nav-mobile-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1rem 2rem 1.5rem;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
        gap: 0.5rem;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        padding: 10px 0;
    }

    .btn-nav-login {
        text-align: center;
        margin-top: 0.5rem;
    }

    /* Dropdown on mobile */
    .nav-dropdown .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border-radius: 8px;
        background: var(--bg-light);
        opacity: 1;
        visibility: visible;
        padding: 4px 0 4px 12px;
        min-width: auto;
    }

    /* Hero */
    .hero-landing {
        padding: 60px 1.5rem 50px;
    }

    .hero-landing h1 {
        font-size: 2rem;
    }

    .hero-landing .subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    /* Sections */
    .section {
        padding: 50px 1.5rem;
    }

    .section-title-lg {
        font-size: 1.7rem;
    }

    /* Steps */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Feature detail */
    .feature-detail-grid {
        grid-template-columns: 1fr;
    }

    .feature-detail-grid.reverse {
        direction: ltr;
    }

    .feature-detail-hero h1 {
        font-size: 1.8rem;
    }

    /* CTA */
    .cta-section {
        margin: 0 1rem 2rem;
        padding: 50px 1.5rem;
        border-radius: 16px;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .footer-landing {
        padding: 40px 1.5rem 20px;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
