/* ════════════════════════════════════════════════════════════════════
   IMPORFACTORY — Calculadora de Importaciones
   Landing modern light + accent purple/orange (warm, premium)
════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px; line-height: 1.55;
    background: #FAFAF8; color: #0F1419;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .15s; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

:root {
    --bg:        #FAFAF8;
    --surface:   #FFFFFF;
    --surface-2: #F4F4F1;
    --text:      #0F1419;
    --text-2:    #4B5563;
    --text-3:    #9CA3AF;
    --border:    #E7E5E0;
    --primary:   #FF6B2C;          /* orange importacion */
    --primary-2: #E55A1F;
    --accent:    #635BFF;          /* purple */
    --accent-2:  #5048E5;
    --green:     #10B981;
    --red:       #EF4444;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow:    0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 30px 80px rgba(0,0,0,0.12);
}

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

/* ── NAV ── */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.85); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1180px; margin: 0 auto; padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
    width: 38px; height: 38px; border-radius: 9px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 14px; letter-spacing: -0.5px;
    box-shadow: 0 4px 12px rgba(255,107,44,0.30);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 14px; font-weight: 800; letter-spacing: -0.2px; }
.brand-text span { font-size: 11px; color: var(--text-3); font-weight: 500; }

.nav-actions { display: flex; gap: 8px; align-items: center; }

/* ── BUTTONS ── */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 16px; font-size: 14px; font-weight: 600;
    border-radius: 8px; border: 1px solid transparent;
    transition: all .15s; line-height: 1; white-space: nowrap;
}
.btn-primary {
    background: var(--primary); color: #fff;
    box-shadow: 0 4px 12px rgba(255,107,44,0.30);
}
.btn-primary:hover { background: var(--primary-2); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255,107,44,0.40); }
.btn-ghost {
    background: transparent; color: var(--text); border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--text-3); }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

/* ── HERO ── */
.hero {
    padding: 80px 0 100px;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255,107,44,0.08), transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(99,91,255,0.05), transparent 60%);
}
.badge-new {
    display: inline-block; padding: 6px 14px;
    background: rgba(255,107,44,0.10); color: var(--primary);
    border: 1px solid rgba(255,107,44,0.30);
    border-radius: 100px; font-size: 12px; font-weight: 700;
    margin-bottom: 24px; letter-spacing: 0.3px;
}
.hero h1 {
    margin: 0 0 24px; font-size: clamp(34px, 5.5vw, 60px);
    font-weight: 800; line-height: 1.1; letter-spacing: -1.5px;
    color: var(--text);
}
.hero h1 .grad {
    background: linear-gradient(135deg, var(--primary), #ff8c5a);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero .lead {
    font-size: 18px; color: var(--text-2); max-width: 680px;
    margin: 0 auto 36px; line-height: 1.6;
}
.hero-cta {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
    margin-bottom: 50px;
}
.hero-stats {
    display: flex; gap: 40px; justify-content: center; flex-wrap: wrap;
    color: var(--text-3); font-size: 14px;
}
.hero-stats strong { color: var(--text); font-weight: 800; font-size: 16px; }

/* ── SECTIONS ── */
.section-head { text-align: center; margin-bottom: 40px; max-width: 680px; margin-left: auto; margin-right: auto; }
.kicker {
    display: inline-block; padding: 4px 12px;
    background: rgba(99,91,255,0.10); color: var(--accent);
    border-radius: 100px; font-size: 11px; font-weight: 800;
    letter-spacing: 1px; margin-bottom: 12px;
}
.section-head h2 {
    margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px);
    font-weight: 800; letter-spacing: -1px; line-height: 1.15;
}
.section-head p { margin: 0; font-size: 17px; color: var(--text-2); }

/* ── CALCULADORA ── */
.calc-section { padding: 60px 0 80px; background: var(--surface-2); }
.calc-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 20px; box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.calc-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
@media (max-width: 880px) { .calc-grid { grid-template-columns: 1fr; } }

.calc-inputs { padding: 36px; border-right: 1px solid var(--border); }
.calc-inputs h3, .calc-results h3 {
    margin: 0 0 24px; font-size: 18px; font-weight: 700;
}
.grp { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 880px) { .calc-inputs { border-right: none; border-bottom: 1px solid var(--border); } }

.field label {
    display: block; font-size: 12px; font-weight: 700; color: var(--text-2);
    margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.3px;
}
.input, .select, .textarea {
    width: 100%; padding: 11px 14px; font-size: 14px;
    background: var(--surface); border: 1.5px solid var(--border);
    color: var(--text); border-radius: 8px; font-family: inherit;
    transition: all .15s;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,107,44,0.15);
}
.textarea { min-height: 70px; resize: vertical; }

.input-row {
    display: flex; align-items: stretch; gap: 0;
    border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden;
    transition: all .15s; background: var(--surface);
}
.input-row:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,44,0.15); }
.input-row .prefix {
    padding: 11px 14px; background: var(--surface-2); color: var(--text-2);
    font-weight: 700; border-right: 1px solid var(--border);
}
.input-row input { flex: 1; border: 0; padding: 11px 14px; font-size: 14px; outline: none; background: transparent; }
.input-row select { border: 0; border-left: 1px solid var(--border); padding: 11px 12px; background: var(--surface); cursor: pointer; }

.advanced-toggle {
    margin: 24px 0 14px; padding: 12px 14px;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 8px; cursor: pointer; user-select: none;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; font-weight: 600; color: var(--text-2);
}
.advanced-toggle:hover { background: var(--surface); border-color: var(--text-3); }
.advanced-toggle .chev { transition: transform .2s; font-size: 14px; }
.advanced-toggle.open .chev { transform: rotate(180deg); }
.adv-section {
    grid-template-columns: 1fr 1fr;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: all .25s; margin: 0;
}
.adv-section.open { max-height: 400px; opacity: 1; margin-bottom: 16px; }

/* RESULTS */
.calc-results { padding: 36px; background: linear-gradient(180deg, var(--surface), var(--surface-2)); }

.result-main {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff; padding: 24px; border-radius: 14px;
    text-align: center; margin-bottom: 20px;
    box-shadow: 0 12px 32px rgba(255,107,44,0.25);
}
.result-main .lbl { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; opacity: 0.85; }
.result-main .val {
    font-size: 48px; font-weight: 900; letter-spacing: -1.5px;
    margin: 8px 0 4px; font-family: 'JetBrains Mono', monospace;
}
.result-main .sub { font-size: 12px; opacity: 0.85; }

.result-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    margin-bottom: 24px;
}
.r-item {
    background: var(--surface); padding: 12px 14px; border-radius: 8px;
    border: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}
.r-item .r-lbl { font-size: 12px; color: var(--text-2); font-weight: 600; }
.r-item .r-val { font-size: 14px; font-weight: 700; font-family: 'JetBrains Mono', monospace; }
.r-item.highlight { background: rgba(99,91,255,0.06); border-color: rgba(99,91,255,0.20); }
.r-item.highlight .r-val { color: var(--accent); }
.r-item.strong { background: rgba(16,185,129,0.06); border-color: rgba(16,185,129,0.30); }
.r-item.strong .r-val { color: var(--green); font-size: 16px; }

.result-cta {
    text-align: center; padding-top: 20px; border-top: 1px solid var(--border);
}
.result-cta p { margin: 0 0 12px; font-size: 13px; color: var(--text-2); }

/* ── FEATURES ── */
.features { padding: 80px 0; }
.feat-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 800px) { .feat-grid { grid-template-columns: 1fr; } }
.feat {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 28px;
    transition: all .2s;
}
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(99,91,255,0.30); }
.feat-ico { font-size: 32px; margin-bottom: 16px; }
.feat h3 { margin: 0 0 10px; font-size: 17px; font-weight: 700; letter-spacing: -0.3px; }
.feat p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.6; }

/* ── WHO ── */
.who { padding: 80px 0; background: var(--surface-2); }
.who-grid {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px;
    align-items: center;
}
@media (max-width: 800px) { .who-grid { grid-template-columns: 1fr; gap: 30px; } }
.who h2 { margin: 12px 0 24px; font-size: clamp(26px, 4vw, 36px); font-weight: 800; line-height: 1.2; letter-spacing: -1px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
    padding: 10px 0 10px 32px; position: relative;
    color: var(--text-2); font-size: 15px; line-height: 1.5;
}
.check-list li::before {
    content: '✓'; position: absolute; left: 0; top: 10px;
    color: var(--green); font-weight: 800;
    width: 22px; height: 22px; background: rgba(16,185,129,0.12);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 12px;
}
.who-card {
    background: var(--surface); padding: 30px; border-radius: 16px;
    border: 1px solid var(--border); box-shadow: var(--shadow);
}
.quote { font-size: 17px; line-height: 1.6; color: var(--text); font-style: italic; margin-bottom: 20px; }
.quote-author { display: flex; align-items: center; gap: 12px; }
.qa-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 14px;
}
.quote-author strong { display: block; font-size: 14px; }
.quote-author span { display: block; font-size: 12px; color: var(--text-3); }

/* ── CTA FINAL ── */
.cta-final {
    padding: 100px 0; text-align: center;
    background: linear-gradient(135deg, #0F1419 0%, #1F2937 100%);
    color: #fff;
}
.cta-final h2 {
    margin: 0 0 16px; font-size: clamp(30px, 5vw, 48px);
    font-weight: 800; letter-spacing: -1.5px; line-height: 1.15;
}
.cta-final p { margin: 0 0 32px; color: rgba(255,255,255,0.7); font-size: 17px; }
.cta-final .btn-ghost { background: transparent; border-color: rgba(255,255,255,0.20); color: #fff; }
.cta-final .btn-ghost:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.40); }

/* ── FOOTER ── */
.footer { padding: 50px 0 30px; background: var(--surface); border-top: 1px solid var(--border); }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 30px;
}
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.footer h4 {
    margin: 0 0 14px; font-size: 12px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px; color: var(--text-3);
}
.footer a {
    display: block; padding: 5px 0; font-size: 14px; color: var(--text-2);
}
.footer a:hover { color: var(--primary); }
.footer-desc { margin: 12px 0 0; font-size: 13px; color: var(--text-3); }
.footer-bottom {
    text-align: center; padding-top: 24px; border-top: 1px solid var(--border);
    font-size: 12px; color: var(--text-3);
}

/* ── MODAL ── */
.modal-bg {
    position: fixed; inset: 0; background: rgba(15,20,25,0.7);
    display: none; align-items: center; justify-content: center;
    z-index: 9000; padding: 20px;
    backdrop-filter: blur(4px);
}
.modal-bg.open { display: flex; }
.modal {
    background: var(--surface); border-radius: 16px;
    width: 100%; max-width: 500px; max-height: 92vh;
    overflow-y: auto; padding: 32px;
    box-shadow: var(--shadow-lg);
}
.modal h3 { margin: 0 0 8px; font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.modal .modal-desc { margin: 0 0 22px; color: var(--text-2); font-size: 14px; }
.modal .field { margin-bottom: 14px; }
.modal-actions {
    margin-top: 22px; display: flex; justify-content: flex-end; gap: 8px;
}

.lead-ok { text-align: center; padding: 12px 0; }
.lead-ok-icon {
    width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 16px;
    background: var(--green); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: 800;
}
.lead-ok h4 { margin: 0 0 8px; font-size: 22px; font-weight: 800; }
.lead-ok p { margin: 0 0 20px; color: var(--text-2); }
.hidden { display: none !important; }
