/* ── CSS Variables ── */
:root {
    --forest: #4a7c59;
    --forest-dark: #3a6147;
    --sage: #8fbc8f;
    --lavender: #b19cd9;
    --sand: #f5f0e8;
    --warm-gray: #5a5a5a;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #333;
    --white: #ffffff;
    --error: #dc3545;
    --success: #28a745;
    --warning: #ffc107;
}

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background: var(--white);
    padding-top: 70px;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
a { color: var(--forest); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--forest-dark); }
img { max-width: 100%; height: auto; display: block; }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 2rem; }
.container-form { max-width: 600px; margin: 0 auto; padding: 0 2rem; }

/* ── Navigation ── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    background: var(--white);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
}

.nav-container {
    max-width: 1400px; margin: 0 auto; padding: 0 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
    height: 70px;
}

.nav-brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-icon { height: 40px; width: 40px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; }
.brand-title { font-size: 1.5rem; color: var(--forest); font-weight: 700; line-height: 1.2; }
.brand-subtitle { font-size: 0.7rem; color: var(--sage); font-weight: 500; letter-spacing: 0.5px; }

.nav-menu { display: flex; align-items: center; gap: 0.5rem; list-style: none; }
.nav-link {
    text-decoration: none; color: var(--warm-gray); font-weight: 500;
    padding: 8px 12px; border-radius: 6px; font-size: 0.9rem;
    transition: color 0.3s, background 0.3s; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--forest); background: rgba(74,124,89,0.08); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.lang-toggle { display: flex; gap: 0.25rem; }
.lang-btn {
    padding: 4px 10px; border: 1px solid var(--forest); background: transparent;
    color: var(--forest); border-radius: 15px; font-size: 0.75rem; font-weight: 600;
    cursor: pointer; transition: all 0.3s; min-width: 35px;
}
.lang-btn.active, .lang-btn:hover { background: var(--forest); color: var(--white); }

.nav-login {
    color: var(--forest) !important; padding: 8px 14px;
    border: 1px solid var(--forest); border-radius: 20px; font-weight: 600; font-size: 0.85rem;
    transition: all 0.3s; text-decoration: none;
}
.nav-login:hover { background: rgba(74,124,89,0.08); }

.nav-cta {
    background: var(--forest); color: var(--white) !important; padding: 8px 18px;
    border-radius: 20px; font-weight: 600; font-size: 0.85rem;
    transition: background 0.3s, transform 0.3s; text-decoration: none;
}
.nav-cta:hover { background: var(--forest-dark); transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; cursor: pointer; padding: 5px; background: none; border: none; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--forest); margin: 3px 0; transition: 0.3s; border-radius: 2px; }
.nav-toggle.active span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, rgba(74,124,89,0.08), rgba(143,188,143,0.04));
    padding: 5rem 0 4rem; text-align: center;
}
.hero h1 { font-size: 3rem; color: var(--forest); margin-bottom: 1.5rem; }
.hero p { font-size: 1.15rem; color: var(--warm-gray); max-width: 650px; margin: 0 auto 2rem; line-height: 1.7; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Beta Banner ── */
.beta-banner {
    margin: 2.5rem auto 0;
    max-width: 680px;
    background: linear-gradient(135deg, rgba(177,156,217,0.12), rgba(74,124,89,0.08));
    border: 2px dashed var(--lavender);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    text-align: center;
}
.beta-badge {
    display: inline-block;
    background: var(--lavender);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 4px 16px;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}
.beta-banner p {
    color: var(--warm-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 12px 28px; border-radius: 8px; font-weight: 600; font-size: 1rem;
    text-decoration: none; border: none; cursor: pointer; transition: all 0.3s;
}
.btn-primary { background: var(--forest); color: var(--white); }
.btn-primary:hover { background: var(--forest-dark); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(74,124,89,0.3); }
.btn-secondary { background: transparent; color: var(--forest); border: 2px solid var(--forest); }
.btn-secondary:hover { background: var(--forest); color: var(--white); }
.btn-whatsapp { background: #25d366; color: var(--white); }
.btn-whatsapp:hover { background: #128c7e; transform: translateY(-2px); }
.btn-sm { padding: 8px 18px; font-size: 0.875rem; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ── Sections ── */
.section { padding: 5rem 0; }
.section-gray { background: var(--light-gray); }
.section-sand { background: var(--sand); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-title { font-size: 2.2rem; color: var(--forest); margin-bottom: 1rem; }
.section-description { font-size: 1.05rem; color: var(--warm-gray); max-width: 650px; margin: 0 auto; line-height: 1.7; }

/* ── Grid ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── Cards ── */
.card {
    background: var(--white); padding: 2rem; border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.card-icon {
    width: 56px; height: 56px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; margin-bottom: 1.25rem;
}
.card-icon.forest { background: rgba(74,124,89,0.1); color: var(--forest); }
.card-icon.sage { background: rgba(143,188,143,0.15); color: var(--sage); }
.card-icon.lavender { background: rgba(177,156,217,0.15); color: var(--lavender); }
.card h3 { color: var(--forest); margin-bottom: 0.75rem; font-size: 1.15rem; }
.card p { color: var(--warm-gray); line-height: 1.6; font-size: 0.95rem; }

/* ── Feature list ── */
.feature-list { list-style: none; }
.feature-list li { padding: 0.6rem 0; color: var(--warm-gray); display: flex; align-items: flex-start; gap: 0.75rem; }
.feature-list li::before { content: "✓"; color: var(--forest); font-weight: 700; flex-shrink: 0; margin-top: 2px; }

/* ── Tables ── */
.table-wrapper { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
table.data-table th { background: var(--forest); color: var(--white); padding: 12px 16px; text-align: left; font-weight: 600; font-size: 0.9rem; }
table.data-table td { padding: 10px 16px; border-bottom: 1px solid var(--medium-gray); font-size: 0.9rem; color: var(--warm-gray); }
table.data-table tr:hover td { background: rgba(74,124,89,0.04); }
table.data-table th:first-child { border-radius: 8px 0 0 0; }
table.data-table th:last-child { border-radius: 0 8px 0 0; }

/* ── Treatment types ── */
.treatment-card {
    background: var(--white); padding: 1.75rem; border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08); border-left: 4px solid var(--forest);
}
.treatment-card h3 { color: var(--forest); margin-bottom: 0.5rem; font-size: 1.1rem; }
.treatment-card p { color: var(--warm-gray); font-size: 0.9rem; }

/* ── Info box ── */
.info-box {
    background: var(--sand); padding: 1.5rem 2rem; border-radius: 12px;
    border-left: 4px solid var(--lavender); margin: 2rem 0;
}
.info-box h4 { color: var(--forest); margin-bottom: 0.5rem; }
.info-box p { color: var(--warm-gray); font-size: 0.95rem; }

.warning-box {
    background: #fff3cd; padding: 1.5rem 2rem; border-radius: 12px;
    border-left: 4px solid var(--warning); margin: 2rem 0;
}
.warning-box h4 { color: #856404; margin-bottom: 0.5rem; }
.warning-box p { color: #856404; font-size: 0.95rem; }

/* ── Forms ── */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 600; color: var(--dark-gray); font-size: 0.9rem; }
.form-group .hint { font-weight: 400; color: var(--warm-gray); font-size: 0.8rem; }

.form-control {
    width: 100%; padding: 10px 14px; border: 1.5px solid var(--medium-gray);
    border-radius: 8px; font-size: 0.95rem; font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s; background: var(--white);
}
.form-control:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(74,124,89,0.15); }
.form-control.error { border-color: var(--error); }

select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a5a5a' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
textarea.form-control { resize: vertical; min-height: 120px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-error { color: var(--error); font-size: 0.8rem; margin-top: 0.3rem; display: none; }
.form-error.visible { display: block; }

.form-check { display: flex; align-items: flex-start; gap: 0.5rem; margin: 1rem 0; }
.form-check input[type="checkbox"] { margin-top: 3px; accent-color: var(--forest); }
.form-check label { font-weight: 400; font-size: 0.9rem; color: var(--warm-gray); }

/* ── Alerts ── */
.alert {
    padding: 1rem 1.25rem; border-radius: 8px; margin-bottom: 1.5rem;
    font-size: 0.9rem; display: none;
}
.alert.visible { display: block; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

/* ── CTA Section ── */
.cta-section {
    text-align: center; background: linear-gradient(135deg, rgba(74,124,89,0.06), rgba(143,188,143,0.04));
    padding: 3rem; border-radius: 12px; margin-top: 3rem;
}
.cta-section h3 { color: var(--forest); margin-bottom: 1rem; font-size: 1.6rem; }
.cta-section p { color: var(--warm-gray); margin-bottom: 1.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ── WhatsApp ── */
.whatsapp-section {
    background: linear-gradient(135deg, rgba(37,211,102,0.08), rgba(37,211,102,0.03));
    padding: 2rem; border-radius: 12px; border: 1.5px solid rgba(37,211,102,0.2);
    text-align: center;
}
.whatsapp-section h3 { color: var(--forest); margin-bottom: 0.75rem; }
.whatsapp-section p { color: var(--warm-gray); margin-bottom: 1.5rem; }

/* ── Footer ── */
.footer { background: var(--dark-gray); color: var(--white); padding: 3.5rem 0 1.5rem; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2rem; }
.footer-section h4 { color: var(--white); margin-bottom: 1.25rem; font-size: 1rem; }
.footer-description { color: #bbb; line-height: 1.6; font-size: 0.9rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: #bbb; font-size: 0.9rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--sage); }
.footer-bottom { border-top: 1px solid #555; padding-top: 1.5rem; text-align: center; }
.footer-bottom p { color: #999; font-size: 0.85rem; margin-bottom: 0.3rem; }

/* ── Download page ── */
.download-card {
    background: var(--white); padding: 3rem; border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1); text-align: center; max-width: 500px; margin: 0 auto;
}
.download-card h2 { color: var(--forest); margin-bottom: 1rem; }
.download-card p { color: var(--warm-gray); margin-bottom: 1.5rem; }
.download-icon { font-size: 4rem; margin-bottom: 1rem; }

/* ── Legal pages ── */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h1 { color: var(--forest); font-size: 2rem; margin-bottom: 0.5rem; }
.legal-content .last-updated { color: var(--warm-gray); font-size: 0.9rem; margin-bottom: 2rem; }
.legal-content h2 { color: var(--forest); font-size: 1.3rem; margin: 2rem 0 0.75rem; }
.legal-content h3 { color: var(--dark-gray); font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.legal-content p { color: var(--warm-gray); margin-bottom: 1rem; line-height: 1.7; }
.legal-content ul { color: var(--warm-gray); margin: 0.5rem 0 1rem 1.5rem; line-height: 1.7; }

/* ── Page header ── */
.page-header {
    background: linear-gradient(135deg, rgba(74,124,89,0.08), rgba(143,188,143,0.04));
    padding: 3rem 0; text-align: center;
}
.page-header h1 { color: var(--forest); font-size: 3rem; margin-bottom: 0.75rem; }
.page-header p { color: var(--warm-gray); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ── Spinner ── */
.spinner {
    display: inline-block; width: 20px; height: 20px;
    border: 2.5px solid rgba(255,255,255,0.3); border-top-color: var(--white);
    border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Screenshots ── */
.screenshot-showcase {
    margin: 2.5rem auto 3.5rem;
    max-width: 820px;
    text-align: center;
    padding: 0 2rem;
}
.screenshot-showcase img {
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border: 1px solid var(--medium-gray);
    max-width: 100%;
    height: auto;
    display: inline-block;
}
.screenshot-showcase .screenshot-caption {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--warm-gray);
    font-style: italic;
}

/* ── Turnstile ── */
.cf-turnstile { margin: 1rem 0; }

/* ── Utility ── */
.text-center { text-align: center; }
.text-muted { color: var(--warm-gray); }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }

/* ── Responsive ── */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    body { padding-top: 70px; }

    .nav-menu {
        position: fixed; top: 70px; left: -100%; width: 100%; height: calc(100vh - 70px);
        background: var(--white); flex-direction: column; justify-content: flex-start;
        padding: 1.5rem; transition: left 0.3s; box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        overflow-y: auto; gap: 0;
    }
    .nav-menu.active { left: 0; }
    .nav-link { padding: 12px 16px; font-size: 1rem; width: 100%; }
    .nav-toggle { display: flex; }

    .hero { padding: 3rem 0; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .hero-buttons { flex-direction: column; align-items: center; }

    .section { padding: 3rem 0; }
    .section-title { font-size: 1.75rem; }
    .container { padding: 0 1rem; }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .footer-content { grid-template-columns: 1fr; gap: 2rem; }

    .page-header { padding: 2rem 0; }
    .page-header h1 { font-size: 2rem; }

    table.data-table { font-size: 0.8rem; }
    table.data-table th, table.data-table td { padding: 8px 10px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.75rem; }
    .container, .container-narrow, .container-form { padding: 0 0.75rem; }
    .btn { padding: 10px 20px; font-size: 0.9rem; }
}
