:root {
    --navy: #0f2c46;
    --navy-dark: #0a1f33;
    --navy-light: #163d5e;
    --teal: #14b8a6;
    --teal-dark: #0d9488;
    --bg: #f4f7f9;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --white: #ffffff;
    --danger: #dc2626;
    --success: #16a34a;
    --warning: #d97706;
    --radius: 12px;
    --shadow: 0 4px 16px rgba(15, 44, 70, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 44, 70, 0.14);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 16px; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 16px; }

/* ---------- Botones ---------- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: var(--white); box-shadow: 0 6px 18px rgba(20,184,166,.35); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-outline { background: transparent; color: var(--teal-dark); border-color: var(--teal); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Header público ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; row-gap: 12px; padding: 16px 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.brand-suffix { font-weight: 400; color: var(--muted); font-size: 0.95rem; }
.brand-logo { height: 34px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 10px 20px; }
.site-nav a:not(.btn) { color: var(--text); font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--teal-dark); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy) 60%, var(--navy-light));
    color: var(--white);
    padding: 90px 0 110px;
    text-align: center;
}
.hero h1 { color: var(--white); font-size: 3rem; max-width: 820px; margin: 0 auto 20px; }
.hero .subtitle { font-size: 1.2rem; color: #cbd8e3; max-width: 620px; margin: 0 auto 36px; }
.hero .subtitle strong { color: var(--white); }
.hero-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.hero-badge { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); padding: 8px 16px; border-radius: 999px; font-size: .85rem; color: #e5edf3; }

/* ---------- Secciones ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--navy-dark); color: #e5edf3; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.eyebrow { display: inline-block; background: rgba(20,184,166,.12); color: var(--teal-dark); font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
.section-dark .eyebrow { background: rgba(20,184,166,.2); color: #5eead4; }

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card-icon { font-size: 1.8rem; margin-bottom: 12px; display: block; }

.section-dark .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: #cbd8e3; }
.section-dark .card h3 { color: var(--white); }

.benefit-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.benefit-list li { display: flex; gap: 10px; align-items: flex-start; }
.benefit-list li::before { content: '✓'; color: var(--teal); font-weight: 800; flex-shrink: 0; }
@media (max-width: 640px) { .benefit-list { grid-template-columns: 1fr; } }

/* ---------- Tabla de comisiones ---------- */
.pricing-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.pricing-table th, .pricing-table td { padding: 18px 24px; text-align: left; border-bottom: 1px solid var(--border); color: var(--text); }
.pricing-table th { background: var(--navy); color: var(--white); font-weight: 600; }
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table td.amount { font-weight: 800; color: var(--teal-dark); font-size: 1.15rem; }
.pricing-table tr.highlight td { background: rgba(20,184,166,.06); }

/* ---------- Stats ---------- */
.stat { text-align: center; }
.stat .value { font-size: 2.6rem; font-weight: 800; color: var(--teal); }
.stat .label { color: #cbd8e3; font-size: .95rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { text-align: center; }
.steps li::before {
    counter-increment: step;
    content: counter(step);
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--teal); color: var(--white); font-weight: 800;
    margin: 0 auto 12px;
}

/* ---------- CTA final ---------- */
.cta-final { text-align: center; background: linear-gradient(135deg, var(--teal-dark), var(--teal)); color: var(--white); border-radius: 20px; padding: 60px 32px; margin: 0 24px; }
.cta-final h2 { color: var(--white); }
.cta-final .btn-primary { background: var(--white); color: var(--teal-dark); box-shadow: none; }
.cta-final .btn-primary:hover { background: #f0fdfa; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #9db1c4; padding: 40px 0; margin-top: 40px; }
.site-footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.site-footer a { color: #cbd8e3; }
.site-footer p { margin: 4px 0 0; font-size: .85rem; }
.site-footer__contact { display: flex; gap: 20px; flex-wrap: wrap; align-self: center; }

/* ---------- Formularios ---------- */
.form-page { max-width: 720px; margin: 48px auto; padding: 0 24px; }
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; }
.form-card--narrow { max-width: 460px; margin: 64px auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
.field .hint { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=url], .field input[type=password], .field select, .field textarea, .field input[type=file] {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20,184,166,.15); }
.field textarea { resize: vertical; min-height: 90px; }
.checkbox-field { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.checkbox-field input { margin-top: 4px; }
.checkbox-field label { font-weight: 400; font-size: .92rem; }
.form-section-title { font-size: 1rem; font-weight: 700; color: var(--navy); margin: 28px 0 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.form-section-title:first-child { border-top: none; margin-top: 0; padding-top: 0; }

/* ---------- Alertas ---------- */
.alert { padding: 14px 18px; border-radius: 8px; margin: 16px 0; font-size: .92rem; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge-pendiente { background: #fef3c7; color: #92400e; }
.badge-aprobado { background: #d1fae5; color: #065f46; }
.badge-rechazado { background: #fee2e2; color: #991b1b; }

/* ---------- Iconos ---------- */
.icon { flex-shrink: 0; }
.icon-inline { display: inline-flex; align-items: center; gap: 8px; }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: rgba(20,184,166,.12); color: var(--teal-dark); margin-bottom: 12px; }
.section-dark .card-icon { background: rgba(20,184,166,.18); }
h3 .icon-inline, h2 .icon-inline { color: var(--teal-dark); }

/* ---------- Genérico ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--muted); }
