:root {
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-muted: #6b7280;
    --color-border: #d1dce8;
    --color-primary: #0e7a5f;        /* verde oscuro del logo */
    --color-primary-dark: #095e48;
    --color-accent: #00c896;         /* verde esmeralda brillante del logo */
    --color-accent-dark: #00a87e;
    --color-navy: #1a3a7a;           /* azul marino del logo */
    --color-navy-dark: #122b5c;
    --color-bg-soft: #f0faf6;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --color-success-bg: #ecfdf5;
    --color-success-text: #065f46;
    --color-error-bg: #fef2f2;
    --color-error-text: #991b1b;
    --max-width: 1100px;
    --radius: 10px;
    /* Degradados de marca */
    --grad-brand: linear-gradient(135deg, #1a3a7a 0%, #0e7a5f 60%, #00c896 100%);
    --grad-brand-h: linear-gradient(135deg, #122b5c 0%, #095e48 60%, #00a87e 100%);
    --grad-accent: linear-gradient(135deg, #00c896 0%, #0e7a5f 100%);
    --grad-soft:   linear-gradient(135deg, #eaf6f2 0%, #e8f0fe 100%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 104px; }
body { margin: 0; font-family: var(--font-sans); line-height: 1.6; background: var(--color-bg); color: var(--color-text); -webkit-font-smoothing: antialiased; }
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header base — position:sticky */
.site-header { position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 0; }
.logo { font-weight: 700; font-size: 1.25rem; color: var(--color-text); }
.nav { display: flex; align-items: center; gap: 1.2rem; }
.nav__logout { margin: 0; }

.nav a:not(.btn):not(.nav__area-btn):not(.nav-link):not(.nav__login) { position: relative; color: var(--color-text); font-size: 0.92rem; font-weight: 500; padding: 0.25rem 0; }
.nav a:not(.btn):not(.nav__area-btn):not(.nav-link):not(.nav__login):hover { text-decoration: none; color: var(--color-primary); }
.nav a:not(.btn):not(.nav__area-btn):not(.nav-link):not(.nav__login)::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.nav a:not(.btn):not(.nav__area-btn):not(.nav-link):not(.nav__login):hover::after { transform: scaleX(1); }
.nav .btn-link { font-size: 0.92rem; font-weight: 500; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn { display: inline-block; background: var(--grad-brand); color: #fff; border: none; border-radius: var(--radius); padding: 0.7rem 1.4rem; font-size: 1rem; font-weight: 600; cursor: pointer; text-align: center; transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
.btn:hover { background: var(--grad-brand-h); text-decoration: none; color: #fff; transform: translateY(-1px); }
.btn--sm { padding: 0.45rem 0.9rem; font-size: 0.9rem; }
.btn--lg { padding: 0.9rem 2rem; font-size: 1.05rem; }
.btn--full { width: 100%; display: block; text-align: center; }
.btn--outline { background: #fff; color: var(--color-primary); border: 1.5px solid var(--color-primary); }
.btn--outline:hover { background: rgba(14,122,95,0.06); color: var(--color-primary); }
.btn--block { width: 100%; }
.btn--ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.45); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255,255,255,0.22); color: #fff; }
.btn--accent { background: var(--grad-accent); color: #fff; }
.btn--accent:hover { background: var(--color-accent-dark); color: #fff; }
.btn-link { background: none; border: none; color: var(--color-primary); font: inherit; cursor: pointer; padding: 0; }
.btn-link:hover { text-decoration: underline; }
.btn-link--danger { color: var(--color-error-text); }
.btn--nav-cta { background: var(--grad-accent); box-shadow: 0 4px 14px -4px rgba(0,200,150,0.45); letter-spacing: 0.01em; }
.btn--nav-cta:hover { background: var(--color-accent-dark); box-shadow: 0 6px 20px -4px rgba(0,200,150,0.55); }

/* ── Alerts ──────────────────────────────────────────────── */
.alert { border-radius: var(--radius); padding: 0.85rem 1rem; margin: 1rem 0; font-size: 0.95rem; }
.alert--success { background: var(--color-success-bg); color: var(--color-success-text); }
.alert--error   { background: var(--color-error-bg);   color: var(--color-error-text); }
.alert--info    { background: #eff6ff; color: #1e40af; }
.alert--warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert--icon    { display: flex; gap: 0.75rem; align-items: flex-start; }
.alert--icon > span { font-size: 1.2rem; flex-shrink: 0; }
.alert--sm { font-size: 0.9rem; padding: 0.7rem 0.9rem; }
.alert--sm ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.alert--sm li { margin-bottom: 0.2rem; }
.alert--sm p  { margin: 0.4rem 0 0; }

/* ── Forms ───────────────────────────────────────────────── */
.form .field { margin-bottom: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.95rem; }
.field input, .field select, .field textarea { width: 100%; padding: 0.65rem 0.8rem; border: 1px solid var(--color-border); border-radius: var(--radius); font-size: 1rem; font-family: inherit; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; border-color: var(--color-accent); }
.field textarea { resize: vertical; }
.field--sm { flex: 0 1 160px; }
.field--xs { flex: 0 1 90px; }
.field-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.field-row .field { flex: 1 1 160px; }
.field-row--wrap { flex-wrap: wrap; }
.field__error { display: block; color: var(--color-error-text); font-size: 0.85rem; margin-top: 0.3rem; }
.field__hint  { display: block; color: var(--color-muted); font-size: 0.85rem; margin-top: 0.3rem; }
.field__opt   { color: var(--color-muted); font-weight: 400; }
.req { color: var(--color-error-text); }
.check-label { display: flex; align-items: flex-start; gap: 0.55rem; cursor: pointer; font-size: 0.95rem; margin-bottom: 0.5rem; }
.check-label input[type="checkbox"], .check-label input[type="radio"] { width: auto; flex-shrink: 0; margin-top: 0.2rem; accent-color: var(--color-accent); }
.field--check { margin-top: 0.5rem; }

/* ── Auth ────────────────────────────────────────────────── */
.auth { padding: 2.5rem 1.25rem; display: flex; justify-content: center; }
.auth__card { width: 100%; max-width: 440px; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 2rem; }
.auth__card h1 { margin: 0 0 0.25rem; font-size: 1.6rem; }
.auth__sub { color: var(--color-muted); margin: 0 0 1.5rem; }
.auth__alt { margin-top: 1.25rem; text-align: center; color: var(--color-muted); }

/* ── Dashboard ───────────────────────────────────────────── */
.dashboard { padding: 2.5rem 1.25rem; }
.dashboard h1 { margin: 0 0 0.25rem; }
.dashboard__sub { color: var(--color-muted); margin: 0 0 2rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.card { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.5rem; }
.card h2 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.card p { margin: 0.25rem 0; color: var(--color-muted); }
.card__soon { display: inline-block; margin-top: 0.75rem; font-size: 0.8rem; color: var(--color-muted); background: #f3f4f6; border-radius: 999px; padding: 0.2rem 0.7rem; }

/* ── Misc ────────────────────────────────────────────────── */
.panel { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0; }
.panel h2 { margin: 0 0 1rem; font-size: 1.2rem; }
.empty { color: var(--color-muted); margin: 0.5rem 0; }
.motivo { color: var(--color-error-text); font-size: 0.85rem; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--color-border); vertical-align: top; font-size: 0.95rem; }
.table th { color: var(--color-muted); font-weight: 600; }
.table--resumen td:first-child { color: var(--color-muted); width: 50%; }
.table--resumen td { padding: 0.55rem 0.5rem; }
.acciones { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.inline-form { display: inline; margin: 0; }
.rechazar-form { display: inline-flex; gap: 0.3rem; align-items: center; }
.rechazar-form input { padding: 0.3rem 0.5rem; border: 1px solid var(--color-border); border-radius: 6px; font-size: 0.85rem; }
.badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: #f3f4f6; color: #374151; white-space: nowrap; }
.badge--pendiente_pago         { background: #fef9c3; color: #713f12; }
.badge--pendiente_documentacion { background: #fef3c7; color: #92400e; }
.badge--en_tramitacion         { background: #d0f5e8; color: #065f46; }
.badge--tasa_pendiente         { background: #fee2e2; color: #991b1b; }
.badge--en_resolucion          { background: #e0e7ff; color: #3730a3; }
.badge--resolucion_recibida    { background: #dbeafe; color: #1e40af; }
.badge--requerimiento          { background: #fecaca; color: #991b1b; }
.badge--completado             { background: #dcfce7; color: #166534; }
.badge--cancelado              { background: #f3f4f6; color: #6b7280; }
.badge--en_estudio             { background: #ede9fe; color: #5b21b6; }
.badge--doc-pendiente { background: #fef3c7; color: #92400e; }
.badge--doc-validado  { background: #dcfce7; color: #166534; }
.badge--doc-rechazado { background: #fee2e2; color: #991b1b; }
.badge--pago-pendiente  { background: #fef3c7; color: #92400e; }
.badge--pago-completado { background: #dcfce7; color: #166534; }
.badge--pago-fallido    { background: #fee2e2; color: #991b1b; }
.badge--ok { background: #dcfce7; color: #166534; }
.tag { display: inline-block; margin-left: 0.4rem; padding: 0.05rem 0.45rem; border-radius: 6px; font-size: 0.72rem; background: #d0f5e8; color: #065f46; vertical-align: middle; }
.upload-form { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--color-border); }
.upload-form label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.upload-form__row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.upload-form__row input[type="file"] { flex: 1 1 200px; }
.upload-form__row input[type="number"], .upload-form__row select { padding: 0.5rem 0.6rem; border: 1px solid var(--color-border); border-radius: var(--radius); font-size: 0.95rem; background: #fff; }
.stepper { list-style: none; display: flex; gap: 0.25rem; padding: 0; margin: 1.5rem 0; flex-wrap: wrap; }
.stepper__item { flex: 1 1 0; min-width: 90px; text-align: center; position: relative; color: var(--color-muted); }
.stepper__dot { display: block; width: 14px; height: 14px; margin: 0 auto 0.4rem; border-radius: 50%; background: var(--color-border); }
.stepper__item.is-done { color: var(--color-text); }
.stepper__item.is-done .stepper__dot { background: var(--color-primary); }
.stepper__item.is-current .stepper__dot { box-shadow: 0 0 0 4px rgba(0,200,150,0.20); }
.stepper__label { font-size: 0.82rem; }
.exp-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.exp-card { display: block; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.1rem; color: inherit; }
.exp-card:hover { text-decoration: none; border-color: var(--color-accent); }
.expediente { padding: 2.5rem 1.25rem; }
.expediente__back { margin-bottom: 0.5rem; }
.expediente__sub { color: var(--color-muted); margin: 0.25rem 0 0; }
.hilo { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; }
.msg { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 0.75rem 1rem; max-width: 80%; }
.msg--admin  { align-self: flex-start; background: #f9fafb; }
.msg--cliente { align-self: flex-end; background: #edfaf5; }
.msg__meta { display: flex; gap: 0.5rem; justify-content: space-between; font-size: 0.8rem; color: var(--color-muted); margin-bottom: 0.3rem; }
.perfil { padding: 2.5rem 1.25rem; }
.perfil h1 { margin: 0 0 1.5rem; }
.perfil__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; align-items: start; }
.perfil__grid .auth__card { max-width: none; }
.perfil__grid h2 { margin: 0 0 1rem; font-size: 1.2rem; }
.perfil__grid select { width: 100%; padding: 0.65rem 0.8rem; border: 1px solid var(--color-border); border-radius: var(--radius); font-size: 1rem; background: #fff; }
.site-footer { border-top: none; margin-top: 0; padding: 0 0 1.5rem; }

/* ============================================================
   Módulo 01 — Landing
   ============================================================ */
.accent { color: var(--color-accent); }
.logo__img { display: block; height: 44px; width: auto; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-text); transition: transform .2s, opacity .2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 760px) {
    .nav-toggle { display: flex; }
    .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0.25rem; background: #fff; border-bottom: 1px solid var(--color-border); padding: 1rem 1.25rem; box-shadow: 0 8px 16px rgba(0,0,0,.06); z-index: 40; }
    .nav.is-open { display: flex; }
    .site-header__inner { position: relative; flex-wrap: wrap; }
    .nav a, .nav .btn { width: 100%; }
}
.container--narrow { max-width: 820px; }
.center { text-align: center; }
.section { padding: 4rem 0; }
.section--alt { background: var(--grad-soft); }
.section__title { text-align: center; font-size: 1.9rem; margin: 0 0 0.5rem; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; position: relative; padding-bottom: 0.9rem; }
.section__title::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 54px; height: 3px; border-radius: 2px; background: var(--grad-accent); }
.section__title--left { text-align: left; }
.section__title--left::after { left: 0; transform: none; }
.section__sub { text-align: center; color: var(--color-muted); max-width: 640px; margin: 0 auto 2.5rem; }
.section__foot { text-align: center; color: var(--color-muted); margin-top: 2rem; font-size: 0.95rem; }

/* ── HERO — mismo fondo que "Cómo funciona" (section--alt) ── */
.hero-land {
    padding: 0;
    position: relative;
    overflow: hidden;
    background: var(--grad-soft);
    color: var(--color-text);
}
/* Capa de textura de puntos sutil */
.hero-land::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(26,58,122,0.06) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
    z-index: 0;
}
/* Blob decorativo derecho */
.hero-land::after {
    content: "";
    position: absolute;
    width: 520px; height: 520px;
    border-radius: 50%;
    background: rgba(0,200,150,0.18);
    top: -180px; right: -160px;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}
.hero-land__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 4rem 0 3.5rem;
}
.hero-land__eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-navy);
    background: rgba(26,58,122,0.08);
    border: 1px solid rgba(26,58,122,0.22);
    border-radius: 999px;
    padding: 0.28rem 0.9rem;
    margin: 0 0 1.1rem;
    backdrop-filter: blur(4px);
}
.hero-land h1 {
    font-size: 3.2rem;
    line-height: 1.08;
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--color-text);
}
.hero-land h1 .accent { color: var(--color-accent); }
.hero-land__lead { font-size: 1.15rem; color: var(--color-muted); margin: 0 0 1.75rem; }
.hero-land__cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-land .btn { padding: 0.9rem 1.9rem; font-size: 1.05rem; letter-spacing: 0.01em; }
.hero-land .btn--ghost { padding: 0.88rem 1.9rem; background: rgba(26,58,122,0.06); color: var(--color-navy); border-color: rgba(26,58,122,0.35); }
.hero-land .btn--ghost:hover { background: rgba(26,58,122,0.12); color: var(--color-navy); }
.hero-land__note { margin-top: 1.25rem; color: var(--color-muted); font-size: 0.95rem; }
.hero-land__note a { color: var(--color-accent); }

/* Botón test REA — ancho completo bajo los 4 botones */
.hero-land__test-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: .5rem;
    padding: .6rem 1.25rem;
    background: rgba(0,200,150,.10);
    border: 1.5px solid rgba(0,200,150,.45);
    border-radius: var(--radius);
    color: var(--color-primary-dark);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .18s, border-color .18s;
    width: fit-content;
    min-width: 472px;
    justify-content: center;
}
.hero-land__test-btn:hover {
    background: rgba(0,200,150,.18);
    border-color: rgba(0,200,150,.75);
    color: var(--color-primary-dark);
    text-decoration: none;
}

/* Nombre oficial REA destacado en el lead */
.hero-land__rea-name {
    display: inline;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: linear-gradient(90deg, var(--color-primary), var(--color-navy));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}
.hero-land__media { position: relative; }
.hero-land__photo { width: 100%; max-width: 460px; aspect-ratio: 5/4; margin: 0 auto; box-shadow: 0 20px 45px -25px rgba(16,24,40,0.35); border-radius: var(--radius); overflow: hidden; border: 2px solid rgba(26,58,122,0.12); }
.hero-land__chip { position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 0.5rem; background: #fff; border: 1px solid var(--color-border); border-radius: 999px; padding: 0.45rem 0.95rem; box-shadow: 0 14px 34px -18px rgba(16,24,40,0.55); font-size: 0.85rem; font-weight: 500; white-space: nowrap; color: var(--color-text); }
@media (max-width: 760px) {
    .hero-land__inner { grid-template-columns: 1fr; text-align: center; padding: 3rem 0 2.5rem; }
    .hero-land__text { min-width: 0; max-width: 100%; }
    .hero-land__cta { justify-content: center; }
    .hero-land h1 { font-size: 2.1rem; }
    .hero-land__media { order: -1; min-width: 0; max-width: 100%; }
    .hero-land__photo { max-width: 360px; }
    .hero-land__test-btn { min-width: 0; width: 100%; max-width: 100%; box-sizing: border-box; white-space: normal; text-align: center; }
}

/* ── Logo a color en home (no en header) ────────────────── */
.logo-color { display: block; height: 56px; width: auto; }

.photo { position: relative; overflow: hidden; border-radius: var(--radius); background: #c8e6de; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(14,122,95,0.06), rgba(26,58,122,0.18)); pointer-events: none; }

/* ── Facts band ───────────────────────────────────────────── */
.facts {
    background: linear-gradient(135deg, #0e7a5f 0%, #1a3a7a 100%);
    border-top: none;
    border-bottom: none;
}
.facts__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.75rem 1.25rem; text-align: center; }
.fact { display: flex; flex-direction: column; gap: 0.25rem; }
.fact__big { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; color: #fff; }
.fact__label { font-size: 0.9rem; color: rgba(255,255,255,0.72); }
@media (max-width: 680px) { .facts__inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }

.serv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.serv-card { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 0; background: #fff; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; display: flex; flex-direction: column; }
.serv-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(14,122,95,0.35); border-color: var(--color-accent); }
.serv-card__photo { border-radius: 0; height: 168px; flex-shrink: 0; }
.serv-card__body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.serv-card__num { display: inline-block; align-self: flex-start; font-size: 0.9rem; font-weight: 700; color: var(--color-accent); border: 2px solid var(--color-accent); border-radius: 8px; padding: 0.1rem 0.5rem; margin-bottom: 0.75rem; }
.serv-card h3 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.serv-card p { margin: 0; color: var(--color-muted); flex: 1; }
.serv-card__precio { display: flex; align-items: baseline; gap: 0.4rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--color-border); }
.serv-card__precio-num { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; color: var(--color-navy); line-height: 1; }
.serv-card__precio-note { font-size: 0.8rem; color: var(--color-muted); }
.serv-card__cta { display: block; margin-top: 1rem; text-align: center; background: transparent; color: var(--color-primary); border: 1.5px solid var(--color-primary); border-radius: var(--radius); padding: 0.6rem 1rem; font-size: 0.9rem; font-weight: 600; transition: background .18s, color .18s, transform .15s; text-decoration: none; }
.serv-card__cta:hover { background: var(--grad-brand); color: #fff; text-decoration: none; transform: translateY(-1px); border-color: transparent; }
.serv-card:hover .serv-card__cta { background: var(--grad-brand); color: #fff; border-color: transparent; }
.serv-card__links { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 0.65rem; font-size: 0.82rem; }
.serv-card__links a { color: var(--color-muted); text-decoration: underline; text-underline-offset: 2px; }
.serv-card__links a:hover { color: var(--color-primary); }
.serv-card__links-sep { color: var(--color-border); }

.pasos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.paso { position: relative; padding-left: 3.5rem; }
.paso__num { position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--grad-brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.88rem; box-shadow: 0 4px 12px -4px rgba(14,122,95,0.55); }
.paso h3 { margin: 0.2rem 0 0.4rem; font-size: 1.1rem; }
.paso p { margin: 0; color: var(--color-muted); }

.preview { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.preview__text p { color: #374151; font-size: 1.05rem; }
.preview__list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-direction: column; gap: 0.6rem; }
.preview__list li { padding-left: 1.6rem; position: relative; color: #374151; }
.preview__list li::before { content: "✓"; position: absolute; left: 0; color: var(--color-accent); font-weight: 700; }
@media (max-width: 820px) { .preview { grid-template-columns: 1fr; gap: 2rem; } }

.mock-window { background: #fff; border: 1px solid var(--color-border); border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(16,24,40,0.45); overflow: hidden; }
.mock-window__bar { display: flex; gap: 0.4rem; padding: 0.75rem 1rem; background: #f3f5f9; border-bottom: 1px solid var(--color-border); }
.mock-window__bar span { width: 11px; height: 11px; border-radius: 50%; background: #cdd5e0; }
.mock-window__body { padding: 1.5rem; }
.mock-exp__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.mock-exp__id { font-weight: 700; }
.mock-badge { font-size: 0.72rem; font-weight: 600; padding: 0.15rem 0.6rem; border-radius: 999px; white-space: nowrap; }
.mock-badge--blue  { background: #dbeafe; color: #1e40af; }
.mock-badge--green { background: #dcfce7; color: #166534; }
.mock-badge--amber { background: #fef3c7; color: #92400e; }
.mock-steps { display: flex; gap: 0.4rem; margin-bottom: 1.25rem; }
.mock-step { flex: 1; height: 6px; border-radius: 3px; background: var(--color-border); }
.mock-step.is-done    { background: var(--color-primary); }
.mock-step.is-current { background: var(--color-accent); }
.mock-docs { display: flex; flex-direction: column; gap: 0.6rem; }
.mock-doc { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 0.8rem; border: 1px solid var(--color-border); border-radius: 8px; font-size: 0.9rem; }

.vent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.vent { border: 1px solid var(--color-border); border-left: 3px solid var(--color-accent); border-radius: var(--radius); padding: 1.4rem 1.5rem; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.vent:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(14,122,95,0.35); }
.vent h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.vent h3::before { content: "✓"; color: var(--color-accent); font-weight: 700; margin-right: 0.4rem; }
.vent p { margin: 0; color: var(--color-muted); }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1rem; }
.compare__col { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.5rem; background: #fff; }
.compare__col h3 { margin: 0 0 1rem; font-size: 1.1rem; }
.compare__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.compare__col li { padding-left: 1.7rem; position: relative; color: #374151; }
.compare__col--old { background: #fbfbfc; }
.compare__col--old li::before { content: "✕"; position: absolute; left: 0; color: #b0b7c3; font-weight: 700; }
.compare__col--new { border-color: rgba(14,122,95,0.22); background: linear-gradient(180deg, #eaf6f2 0%, #fff 60%); position: relative; overflow: hidden; }
.compare__col--new::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-brand); border-radius: var(--radius) var(--radius) 0 0; }
.compare__col--new h3 { color: var(--color-primary); }
.compare__col--new li::before { content: "✓"; position: absolute; left: 0; color: #16a34a; font-weight: 700; }
@media (max-width: 680px) { .compare { grid-template-columns: 1fr; } }

.faq { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-vermas { text-align: center; margin: 1.25rem 0 0; font-size: 0.95rem; font-weight: 600; }
.faq-vermas a { color: var(--color-primary); }
.faq__item { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 0.25rem 1.1rem; background: #fff; transition: border-color .2s; }
.faq__item[open] { border-left: 3px solid var(--color-accent); padding-left: calc(1.1rem - 2px); }
.faq__item summary { cursor: pointer; font-weight: 600; padding: 0.85rem 0; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; float: right; color: var(--color-accent); font-weight: 700; }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { margin: 0 0 0.9rem; color: var(--color-muted); }

/* ── Página de preguntas frecuentes completa (categorías desplegables) ── */
.faq-page { max-width: 900px; }
.faq-index { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 2.25rem; }
.faq-index a { font-size: 0.85rem; font-weight: 600; color: var(--color-navy); background: rgba(26,58,122,0.06); border: 1px solid rgba(26,58,122,0.18); border-radius: 999px; padding: 0.45rem 0.95rem; text-decoration: none; transition: background .18s, border-color .18s; }
.faq-index a:hover { background: rgba(26,58,122,0.12); border-color: rgba(26,58,122,0.35); }
.faq-categorias { gap: 1rem; }
.faq-cat { border: 1px solid var(--color-border); border-radius: 14px; background: #fff; padding: 0.25rem 1.35rem; transition: border-color .2s; }
.faq-cat[open] { border-color: rgba(0,200,150,0.35); }
.faq-cat summary { cursor: pointer; list-style: none; padding: 1.15rem 0; display: flex; align-items: center; gap: 0.9rem; }
.faq-cat summary::-webkit-details-marker { display: none; }
.faq-cat summary::after { content: "+"; margin-left: auto; color: var(--color-accent); font-weight: 700; font-size: 1.2rem; }
.faq-cat[open] summary::after { content: "−"; }
.faq-cat__num { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem; }
.faq-cat__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--color-text); }
.faq-cat__intro { margin: 0 0 1.1rem; color: var(--color-muted); font-size: 0.9rem; font-style: italic; }
.faq-cat .faq { padding-bottom: 1.35rem; }

.faq-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; justify-content: space-between; background: var(--grad-soft); border: 1px solid rgba(0,200,150,0.25); border-radius: 16px; padding: 1.75rem 2rem; margin-top: 2.5rem; }
.faq-cta__body strong { display: block; font-size: 1.05rem; color: var(--color-navy); margin-bottom: 0.35rem; }
.faq-cta__body p { margin: 0; color: var(--color-text); font-size: 0.92rem; max-width: 520px; }
.faq-cta__btn { flex-shrink: 0; white-space: nowrap; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cta-band {
    background: var(--grad-brand);
    color: #fff;
    padding: 3.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
    z-index: 0;
}
.cta-band h2 { margin: 0 0 0.5rem; font-size: 1.8rem; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; color: #fff; position: relative; z-index: 1; }
.cta-band p { margin: 0 0 1.5rem; opacity: 0.9; position: relative; z-index: 1; }
.cta-band__bg { display: none; }
.cta-band__inner { position: relative; z-index: 2; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: linear-gradient(135deg, #122b5c 0%, #0e7a5f 100%);
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}
.site-footer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,200,150,0.06) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}
.site-footer > * { position: relative; z-index: 1; }

.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding: 2.5rem 1.25rem 1.5rem; }
.site-footer__ico { height: 44px; width: auto; filter: brightness(0) invert(1); }
.site-footer__name { font-weight: 700; margin: 0.5rem 0 0.25rem; color: #fff; }
.site-footer__tag { color: rgba(255,255,255,0.40); font-size: 0.9rem; margin: 0; }
.site-footer__col { text-align: left; }
.site-footer__col h4 { color: rgba(255,255,255,0.80); letter-spacing: 0.03em; text-transform: uppercase; font-size: 0.78rem; margin: 0 0 0.75rem; }
.site-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer__col a { color: rgba(255,255,255,0.45); font-size: 0.92rem; }
.site-footer__col a:hover { color: #fff; text-decoration: none; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.10); padding-top: 1.25rem; text-align: center; color: rgba(255,255,255,0.30); font-size: 0.88rem; }
.site-footer__bottom a { color: rgba(255,255,255,0.40); }
.site-footer__bottom a:hover { color: rgba(255,255,255,0.75); }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }

.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: 1rem 1.25rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; z-index: 60; }
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { margin: 0; flex: 1 1 280px; font-size: 0.9rem; color: #374151; }
.cookie-banner__actions { display: flex; gap: 0.6rem; }

.legal { padding: 2.5rem 1.25rem 3rem; }
.legal h1 { margin: 0 0 0.5rem; }
.legal h2 { font-size: 1.2rem; margin: 1.75rem 0 0.5rem; }
.legal__note { color: var(--color-muted); font-style: italic; font-size: 0.9rem; margin: 0 0 1.5rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.35rem; }
.legal__back { margin-top: 2rem; }

/* ── Páginas legales "definitivas" (privacidad, aviso legal, condiciones, cookies) ── */
.legal-page { padding: 2.5rem 1.25rem 4rem; max-width: 820px; margin: 0 auto; }
.legal-header { padding-bottom: 1.5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--color-border); }
.legal-header h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 0.5rem; color: var(--color-navy); }
.legal-header__sub { color: var(--color-muted); font-size: 0.9rem; margin: 0; }
.legal-body { display: flex; flex-direction: column; gap: 0.25rem; }
.legal-section { padding: 1.5rem 0; border-bottom: 1px solid var(--color-border); }
.legal-section:last-child { border-bottom: none; }
.legal-section h2 { font-size: 1.15rem; font-weight: 700; color: var(--color-navy); margin: 0 0 0.75rem; }
.legal-section h3 { font-size: 1rem; font-weight: 700; color: var(--color-text); margin: 1.1rem 0 0.5rem; }
.legal-section p { margin: 0 0 0.85rem; color: var(--color-text); }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section a { color: var(--color-primary); }
.legal-list { margin: 0 0 0.85rem; padding-left: 1.3rem; }
.legal-list li { margin-bottom: 0.4rem; line-height: 1.55; }
.legal-list--plain { list-style: none; padding-left: 0; background: var(--grad-soft); border-radius: var(--radius); padding: 1rem 1.25rem; }
.legal-list--plain li { margin-bottom: 0.3rem; }
.legal-table { width: 100%; border-collapse: collapse; margin: 0 0 0.85rem; font-size: 0.9rem; }
.legal-table th, .legal-table td { text-align: left; padding: 0.6rem 0.75rem; border: 1px solid var(--color-border); vertical-align: top; }
.legal-table th { background: var(--color-bg-soft); color: var(--color-navy); font-weight: 700; }
.legal-table td.legal-table__muted { color: var(--color-muted); }
@media (max-width: 640px) {
    .legal-table, .legal-table thead, .legal-table tbody, .legal-table th, .legal-table td, .legal-table tr { display: block; }
    .legal-table tr { border: 1px solid var(--color-border); border-radius: 8px; margin-bottom: 0.75rem; }
    .legal-table th { display: none; }
    .legal-table td { border: none; border-bottom: 1px solid var(--color-border); }
    .legal-table td:last-child { border-bottom: none; }
    .legal-table td::before { content: attr(data-label); display: block; font-weight: 700; color: var(--color-navy); font-size: 0.78rem; margin-bottom: 0.2rem; }
}
.legal-back { margin-top: 2.5rem; }

.nav__login { border: 1.5px solid var(--color-border); border-radius: 8px; padding: 0.35rem 0.9rem; color: var(--color-text); font-size: 0.9rem; transition: border-color .2s, background .2s, color .2s; }
.nav__login:hover { border-color: var(--color-accent); background: rgba(0,200,150,0.06); color: var(--color-primary); text-decoration: none; }
.nav__login::after { display: none !important; }
.nav__user-chip { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(14,122,95,0.10); border: 1px solid rgba(14,122,95,0.22); border-radius: 999px; padding: 0.25rem 0.75rem 0.25rem 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--color-primary); white-space: nowrap; max-width: 180px; }
.nav__user-chip__ico { font-size: 0.95rem; flex-shrink: 0; }
.nav__user-chip__nombre { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav__area-btn { display: inline-block; padding: 0.35rem 0.9rem; border-radius: 8px; font-size: 0.88rem; font-weight: 600; background: var(--grad-brand); color: #fff; border: none; transition: background .18s, transform .15s; white-space: nowrap; text-decoration: none; }
.nav__area-btn:hover { background: var(--grad-brand-h); transform: translateY(-1px); text-decoration: none; color: #fff; }
.nav__area-btn--admin { background: var(--color-navy); }
.nav__area-btn--admin:hover { background: var(--color-navy-dark); }
.nav__logout-btn { color: var(--color-muted); font-size: 0.88rem; }
.nav__logout-btn:hover { color: var(--color-error-text); text-decoration: none; }
.nav__sep { display: block; width: 1px; height: 20px; background: var(--color-border); margin: 0; flex-shrink: 0; }

/* ============================================================
   Módulo 03 — Contratación
   ============================================================ */
.page-contratacion { padding: 3rem 1.25rem 4rem; min-height: calc(100vh - 80px); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.contratacion-card { width: 100%; max-width: 700px; background: #fff; border: 1px solid var(--color-border); border-radius: 16px; padding: 2.5rem 2.25rem; box-shadow: 0 20px 60px -30px rgba(14,122,95,0.18); }
.contratacion-card--extranjera { max-width: 700px; }
.contratacion-card__header { margin-bottom: 2rem; }
.contratacion-card__header h1 { font-family: var(--font-display); font-size: 1.9rem; margin: 0.4rem 0 0.6rem; letter-spacing: -0.01em; }
.contratacion-card__header p { color: var(--color-muted); margin: 0; }
.contratacion-card__eyebrow { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--color-primary); background: rgba(14,122,95,0.08); border-radius: 999px; padding: 0.2rem 0.75rem; margin-bottom: 0.5rem; }
.contratacion-card__back { display: block; margin-top: 1.5rem; text-align: center; font-size: 0.9rem; color: var(--color-muted); }
.contratacion-card__back-btn { color: var(--color-primary); font-size: 0.9rem; }
.contratacion-card__back-btn:hover { color: var(--color-primary-dark); }
.opcion-pais { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 0.5rem; }
.opcion-pais__btn { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1.75rem 1rem; border: 2px solid var(--color-border); border-radius: 12px; text-align: center; color: var(--color-text); transition: border-color .2s, box-shadow .2s, transform .2s; cursor: pointer; text-decoration: none; }
.opcion-pais__btn:hover { border-color: var(--color-accent); box-shadow: 0 8px 24px -12px rgba(0,200,150,0.28); transform: translateY(-2px); text-decoration: none; color: var(--color-text); }
.opcion-pais__btn--primary { border-color: var(--color-accent); background: rgba(0,200,150,0.04); }
.opcion-pais__icon { font-size: 2.2rem; }
.opcion-pais__label { font-weight: 700; font-size: 1.05rem; }
.opcion-pais__sub { font-size: 0.82rem; color: var(--color-muted); }
@media (max-width: 480px) { .opcion-pais { grid-template-columns: 1fr; } }
.contrat-steps { display: flex; list-style: none; padding: 0; margin: 0 0 2rem; gap: 0; }
.contrat-steps__item { flex: 1; display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; font-weight: 600; color: var(--color-muted); position: relative; }
.contrat-steps__item:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: var(--color-border); margin: 0 0.5rem; }
.contrat-steps__num { width: 24px; height: 24px; border-radius: 50%; background: var(--color-border); color: var(--color-muted); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }
.contrat-steps__item.is-current { color: var(--color-primary); }
.contrat-steps__item.is-current .contrat-steps__num { background: var(--color-primary); color: #fff; }
.contrat-steps__item.is-done .contrat-steps__num { background: #16a34a; color: #fff; }
.form-contratacion fieldset { border: none; padding: 0; margin: 0 0 1.5rem; }
.form-contratacion legend { font-weight: 700; font-size: 1rem; margin-bottom: 1rem; color: var(--color-text); padding: 0; }
.precio-box { background: #eaf6f2; border: 1px solid #a7e0cc; border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: 1.5rem; }
.precio-box__linea { display: flex; justify-content: space-between; align-items: center; font-size: 1rem; margin-bottom: 0.75rem; }
.precio-box__linea strong { font-size: 1.2rem; color: var(--color-primary); }
.precio-box__tasa { border-top: 1px dashed #a7e0cc; padding-top: 0.75rem; }
.precio-box__tasa-label { font-size: 0.85rem; font-weight: 600; color: var(--color-muted); display: block; margin-bottom: 0.35rem; }
.precio-box p { margin: 0; font-size: 0.88rem; color: var(--color-muted); }
.fieldset-pago { border: none; padding: 0; margin: 0 0 1.5rem; }
.fieldset-pago legend { font-weight: 700; font-size: 1rem; margin-bottom: 0.75rem; padding: 0; }
.radio-card { display: flex; align-items: flex-start; gap: 0.75rem; border: 2px solid var(--color-border); border-radius: var(--radius); padding: 0.9rem 1rem; margin-bottom: 0.6rem; cursor: pointer; transition: border-color .15s; }
.radio-card:has(input:checked) { border-color: var(--color-accent); background: rgba(0,200,150,0.04); }
.radio-card input[type="radio"] { margin-top: 0.15rem; accent-color: var(--color-accent); flex-shrink: 0; }
.radio-card__content { display: flex; flex-direction: column; gap: 0.2rem; }
.radio-card__title { font-weight: 600; font-size: 0.97rem; }
.radio-card__sub { font-size: 0.83rem; color: var(--color-muted); }
.radio-card__badge { display: inline-block; font-size: 0.72rem; font-weight: 600; background: #fef3c7; color: #92400e; border-radius: 999px; padding: 0.1rem 0.5rem; margin-top: 0.2rem; }
.resumen-pedido { margin-bottom: 1.75rem; }
.resumen-pedido h2 { font-size: 1.1rem; margin: 0 0 0.75rem; }
.resumen-pedido__tasa-nota { font-size: 0.85rem; color: var(--color-muted); margin: 0.75rem 0 0; }
.pago-transferencia h2 { font-size: 1.1rem; margin: 0 0 0.75rem; }
.iban-numero { font-family: monospace; font-size: 1.05rem; letter-spacing: 0.05em; }
.btn-copy { margin-left: 0.6rem; font-size: 0.82rem; color: var(--color-primary); }
.password-reveal { background: #eaf6f2; border: 1px dashed #a7e0cc; border-radius: 6px; padding: 0.15rem 0.5rem; font-size: 1rem; letter-spacing: 0.05em; color: var(--color-navy); }
.extran-info { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.extran-info__item { display: flex; gap: 1rem; align-items: flex-start; }
.extran-info__icon { font-size: 1.5rem; flex-shrink: 0; }
.extran-info__item strong { display: block; margin-bottom: 0.2rem; }
.extran-info__item p { margin: 0; color: var(--color-muted); font-size: 0.9rem; }
.extran-contacto { background: #eaf6f2; border: 1px solid #a7e0cc; border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem; }
.extran-contacto h2 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.extran-contacto p { margin: 0.5rem 0; color: var(--color-muted); font-size: 0.95rem; }
.extran-contacto ul { margin: 0.5rem 0 1.25rem; padding-left: 1.2rem; color: var(--color-muted); font-size: 0.95rem; }
.extran-back { text-align: center; font-size: 0.9rem; margin-top: 1rem; }

/* ============================================================
   Módulo 04 — Formulario REA
   ============================================================ */
.page-formulario { padding: 2rem 1.25rem 4rem; }
.form-rea__header { margin-bottom: 2rem; }
.form-rea__header h1 { margin: 0 0 0.3rem; font-size: 1.6rem; font-family: var(--font-display); }
.form-rea__titulo { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.form-rea__back { display: inline-block; font-size: 0.9rem; color: var(--color-muted); margin-bottom: 0.75rem; }
.form-progreso { display: flex; align-items: center; gap: 1rem; margin-top: 0.75rem; }
.form-progreso__bar { flex: 1; height: 8px; background: var(--color-border); border-radius: 4px; overflow: hidden; }
.form-progreso__fill { height: 100%; background: var(--grad-brand); border-radius: 4px; transition: width .4s ease; }
.form-progreso__pct { font-size: 0.85rem; font-weight: 600; color: var(--color-primary); white-space: nowrap; }
.form-rea__layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 820px) { .form-rea__layout { grid-template-columns: 1fr; } }
.form-rea__nav { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 0.25rem; }
@media (max-width: 820px) { .form-rea__nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; } }
.form-nav__item { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; border-radius: 8px; font-size: 0.85rem; color: var(--color-muted); text-decoration: none; transition: background .15s, color .15s; }
.form-nav__item:hover { background: #f3f4f6; color: var(--color-text); text-decoration: none; }
.form-nav__item.is-ok    { color: var(--color-primary); }
.form-nav__item.is-parcial { color: #92400e; }
.form-nav__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-border); flex-shrink: 0; }
.form-nav__item.is-ok    .form-nav__dot { background: var(--color-accent); }
.form-nav__item.is-parcial .form-nav__dot { background: #f59e0b; }
.form-nav__check { margin-left: auto; font-size: 0.75rem; color: var(--color-accent); font-weight: 700; }
.form-nav__item.is-opcional { opacity: 0.65; }
@media (max-width: 820px) { .form-nav__check { display: none; } }
.form-rea__guardado-aviso { background: #eaf6f2; border: 1px solid #a7e0cc; border-radius: var(--radius); padding: 0.6rem 1rem; font-size: 0.85rem; color: var(--color-primary); margin-bottom: 1.25rem; }
.form-sec { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.75rem; margin-bottom: 1.5rem; background: #fff; transition: border-color .2s; scroll-margin-top: 100px; }
.form-sec.is-ok     { border-color: #86efac; background: #f0fdf4; }
.form-sec.is-parcial { border-color: #fcd34d; }
.form-sec__head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.form-sec__head h2 { margin: 0; font-size: 1.15rem; display: flex; align-items: center; gap: 0.5rem; }
.form-sec__num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad-brand); color: #fff; font-size: 0.8rem; font-weight: 700; flex-shrink: 0; }
.form-sec__opcional { font-size: 0.78rem; font-weight: 400; color: var(--color-muted); }
.form-sec__form.is-disabled { pointer-events: none; opacity: 0.7; }
.form-subsec { font-size: 0.95rem; font-weight: 700; color: var(--color-navy); margin: 1.25rem 0 0.75rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--color-border); }
.tabla-personal { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.tabla-personal__fila { display: flex; flex-direction: column; gap: 0.3rem; }
.tabla-personal__fila label { font-size: 0.85rem; font-weight: 600; color: var(--color-muted); }
.tabla-personal__fila input { padding: 0.45rem 0.6rem; border: 1px solid var(--color-border); border-radius: 6px; font-size: 0.95rem; width: 100%; }
.tabla-personal__fila input:focus { outline: 2px solid var(--color-accent); border-color: var(--color-accent); }
.form-sec__actions { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--color-border); flex-wrap: wrap; }
.form-sec__aviso { margin-bottom: 0.75rem; padding: 0.6rem 0.9rem; border-radius: 8px; font-size: 0.88rem; }
.check-label--declaracion { padding: 0.75rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius); margin-bottom: 0.5rem; transition: border-color .15s, background .15s; }
.check-label--declaracion:has(input:checked) { border-color: var(--color-accent); background: #eaf6f2; }
.form-rea__envio { border: 2px solid var(--color-accent); border-radius: var(--radius); padding: 1.75rem; background: #eaf6f2; text-align: center; margin-top: 0.5rem; }
.form-rea__envio.is-disabled-envio { border-color: var(--color-border); background: #f9fafb; }
.form-rea__envio-aviso { color: #92400e; font-size: 0.9rem; margin: 0 0 1rem; }
.form-rea__envio-nota { font-size: 0.83rem; color: var(--color-muted); margin: 0.75rem 0 0; }

/* ============================================================
   Quiénes somos — logo a color
   ============================================================ */
.quienes-section { background: #fff; overflow: hidden; }
.quienes-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
@media (max-width: 860px) { .quienes-inner { grid-template-columns: 1fr; gap: 3rem; } }
.quienes-eyebrow { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-primary); background: rgba(14,122,95,0.08); border: 1px solid rgba(14,122,95,0.16); border-radius: 999px; padding: 0.25rem 0.85rem; margin-bottom: 1rem; }
.quienes-title { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 1.1rem; color: var(--color-text); }
.quienes-lead { font-size: 1.05rem; color: #374151; line-height: 1.7; margin: 0 0 0.75rem; }
.quienes-sub { font-size: 1.05rem; font-style: italic; color: var(--color-navy); margin: 0 0 2rem; border-left: 3px solid var(--color-accent); padding-left: 1rem; }
.quienes-tagline { margin: 1.75rem 0 0; font-size: 0.95rem; font-weight: 600; color: var(--color-primary-dark, var(--color-primary)); }
.quienes-valores { display: flex; flex-direction: column; gap: 1.1rem; }
.quienes-valor { display: flex; align-items: flex-start; gap: 0.9rem; }
.quienes-valor__ico { font-size: 1.5rem; flex-shrink: 0; width: 44px; height: 44px; background: rgba(0,200,150,0.10); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.quienes-valor div { display: flex; flex-direction: column; gap: 0.15rem; padding-top: 0.2rem; }
.quienes-valor strong { font-size: 0.92rem; font-weight: 700; color: var(--color-text); }
.quienes-valor span { font-size: 0.85rem; color: var(--color-muted); }
.quienes-visual { display: flex; justify-content: center; align-items: center; }
.quienes-card-wrap { position: relative; width: 100%; max-width: 400px; }
/* Card con degradado usando los colores del logo */
.quienes-card--main {
    background: linear-gradient(135deg, #e8f4ff 0%, #eaf6f2 50%, #d0f5e8 100%);
    border: 1px solid rgba(0,200,150,0.20);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -2px rgba(14,122,95,0.08), 0 24px 48px -12px rgba(0,200,150,0.22);
    aspect-ratio: 4/3;
}
/* Logo a color — sin filtro de blanqueado */
.quienes-logo { width: 100%; max-width: 280px; height: auto; display: block; }
.quienes-float { position: absolute; background: #fff; border: 1px solid var(--color-border); border-radius: 14px; padding: 0.7rem 1rem; box-shadow: 0 8px 24px -8px rgba(14,122,95,0.18); display: flex; flex-direction: column; gap: 0.1rem; }
.quienes-float--tl { top: -20px; left: -20px; }
.quienes-float--br { bottom: -20px; right: -20px; flex-direction: row; align-items: center; gap: 0.5rem; }
.quienes-float__num { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--color-primary); line-height: 1; }
.quienes-float__label { font-size: 0.75rem; color: var(--color-muted); white-space: nowrap; }
.quienes-float__ico { font-size: 1.1rem; }

/* ============================================================
   Contacto
   ============================================================ */
.contacto-section {
    background: linear-gradient(135deg, #122b5c 0%, #0e7a5f 100%);
    position: relative;
    overflow: hidden;
}
.contacto-section::before { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: rgba(0,200,150,0.12); top: -200px; right: -200px; pointer-events: none; }
.contacto-section::after  { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: rgba(26,58,122,0.30); bottom: -150px; left: -100px; pointer-events: none; }
.contacto-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; position: relative; z-index: 1; }
@media (max-width: 860px) { .contacto-inner { grid-template-columns: 1fr; gap: 3rem; } }
.contacto-title { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; color: #fff; margin: 0 0 1.1rem; }
.contacto-lead { font-size: 1.05rem; color: rgba(255,255,255,0.72); line-height: 1.7; margin: 0 0 2.5rem; }
.contacto-datos { display: flex; flex-direction: column; gap: 1.5rem; }
.contacto-dato { display: flex; align-items: flex-start; gap: 1rem; }
.contacto-dato__ico { font-size: 1.3rem; width: 44px; height: 44px; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contacto-dato div { display: flex; flex-direction: column; gap: 0.2rem; padding-top: 0.2rem; }
.contacto-dato strong { font-size: 0.88rem; font-weight: 700; color: rgba(255,255,255,0.9); }
.contacto-dato span, .contacto-dato a { font-size: 0.92rem; color: rgba(255,255,255,0.6); }
.contacto-dato a:hover { color: #fff; }
.contacto-form-wrap { display: flex; justify-content: center; }
.contacto-form-card { background: #fff; border-radius: 24px; padding: 2.5rem 2.25rem; width: 100%; max-width: 460px; box-shadow: 0 4px 6px -2px rgba(0,0,0,0.08), 0 24px 48px -12px rgba(0,0,0,0.28); }
.contacto-form-card__title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; margin: 0 0 1.5rem; color: var(--color-text); letter-spacing: -0.01em; }
.contacto-form-fields .field label { font-size: 0.88rem; font-weight: 600; color: #374151; }
.contacto-form-fields .field input, .contacto-form-fields .field textarea { border-radius: 10px; border-color: #e5e7eb; font-size: 0.95rem; transition: border-color .18s, box-shadow .18s; }
.contacto-form-fields .field input:focus, .contacto-form-fields .field textarea:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(0,200,150,0.15); outline: none; }
.contacto-btn { background: var(--grad-brand); border-radius: 10px; font-size: 1rem; padding: 0.85rem; letter-spacing: 0.01em; box-shadow: 0 4px 14px -4px rgba(14,122,95,0.45); }
.contacto-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -4px rgba(14,122,95,0.50); background: var(--grad-brand-h); }

/* ============================================================
   Módulo 03 — Contratación: progress bar y tarjetas
   ============================================================ */
.contrat-progress { margin-bottom: 2.5rem; }
.contrat-progress__bar { display: flex; align-items: center; justify-content: center; }
.contrat-progress__step { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.contrat-progress__dot { width: 16px; height: 16px; border-radius: 50%; background: var(--color-border); border: 2px solid var(--color-border); transition: background .2s, border-color .2s; }
.contrat-progress__label { font-size: 0.72rem; font-weight: 600; color: var(--color-muted); text-align: center; white-space: nowrap; }
.contrat-progress__line { flex: 1; height: 2px; background: var(--color-border); min-width: 2rem; max-width: 5rem; margin-bottom: 1.2rem; }
.contrat-progress__step.is-current .contrat-progress__dot { background: var(--color-accent); border-color: var(--color-accent); box-shadow: 0 0 0 4px rgba(0,200,150,0.20); }
.contrat-progress__step.is-current .contrat-progress__label { color: var(--color-primary); }
.contrat-progress__step.is-done .contrat-progress__dot { background: #16a34a; border-color: #16a34a; }
.contrat-progress__line--done { background: #16a34a; }
@media (max-width: 560px) { .contrat-progress__label { display: none; } .contrat-progress__line { min-width: 1rem; } }

.tramite-opciones { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.5rem; }
.tramite-card { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border: 2px solid var(--color-border); border-radius: 12px; color: var(--color-text); transition: border-color .2s, box-shadow .2s, transform .2s; text-decoration: none; }
.tramite-card:hover { border-color: var(--color-accent); box-shadow: 0 8px 24px -12px rgba(0,200,150,0.25); transform: translateY(-2px); text-decoration: none; color: var(--color-text); }
.tramite-card__icon { font-size: 1.8rem; flex-shrink: 0; width: 48px; text-align: center; }
.tramite-card__body { flex: 1; }
.tramite-card__body h3 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.tramite-card__body p { margin: 0; font-size: 0.87rem; color: var(--color-muted); }
.tramite-card__precio { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 0.4rem; }
.tramite-card__precio-num { font-weight: 700; font-size: 1rem; color: var(--color-primary); }
.tramite-card__precio-note { font-size: 0.78rem; color: var(--color-muted); }
.tramite-card__arrow { font-size: 1.2rem; color: var(--color-muted); flex-shrink: 0; transition: color .2s, transform .2s; }
.tramite-card:hover .tramite-card__arrow { color: var(--color-accent); transform: translateX(3px); }

/* ============================================================
   Botones hero REA con icono
   ============================================================ */
.hero-land__cta { flex-wrap: wrap; }
.hero-land__btn,
.hero-land__btn.btn,
.hero-land__btn.btn--ghost,
.hero-land__btn.btn--sm,
.hero-land__btn.btn--lg {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    font-size: 0.88rem !important;
    padding: 0.72rem 1.1rem !important;
    width: 230px;
    white-space: nowrap;
    border: 1.5px solid rgba(255,255,255,0.55) !important;
    box-sizing: border-box;
    letter-spacing: 0;
}
.hero-land__btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: 0.88;
}
/* Botón FAQ — verde acento */
.hero-land__btn--faq,
.hero-land__btn--faq.btn {
    background: var(--grad-accent) !important;
    box-shadow: 0 4px 14px -4px rgba(0,200,150,0.40);
    border-color: rgba(255,255,255,0.55) !important;
}
.hero-land__btn--faq:hover,
.hero-land__btn--faq.btn:hover {
    background: var(--color-accent-dark) !important;
    box-shadow: 0 6px 18px -4px rgba(0,200,150,0.50);
}
/* Botones "ghost" (Cómo funciona / Documentación) sobre fondo claro */
.hero-land__btn.btn--ghost {
    background: rgba(26,58,122,0.06) !important;
    color: var(--color-navy) !important;
    border-color: rgba(26,58,122,0.35) !important;
}
.hero-land__btn.btn--ghost:hover {
    background: rgba(26,58,122,0.12) !important;
    color: var(--color-navy) !important;
}

/* ============================================================
   Sección documentación necesaria
   ============================================================ */
.doc-section { background: #fff; }

.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.doc-bloque {
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    position: relative;
    overflow: hidden;
}
.doc-bloque::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-brand);
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity .2s;
}
.doc-bloque:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px -20px rgba(14,122,95,0.25);
    border-color: rgba(0,200,150,0.30);
}
.doc-bloque:hover::before { opacity: 1; }

.doc-bloque__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--grad-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
    flex-shrink: 0;
}
.doc-bloque__icon svg {
    width: 30px;
    height: 30px;
    color: var(--color-navy);
}
.doc-bloque__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-text);
}
.doc-bloque__desc {
    font-size: 0.88rem;
    color: var(--color-muted);
    margin: 0;
    line-height: 1.55;
}
.doc-bloque__list {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.doc-bloque__list li {
    font-size: 0.88rem;
    color: #374151;
    padding-left: 1.3rem;
    position: relative;
    line-height: 1.45;
}
.doc-bloque__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.52em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
}

.doc-tabs { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; margin: 0 0 2.25rem; }
.doc-tab { font-family: inherit; font-size: 0.92rem; font-weight: 600; color: var(--color-muted); background: #fff; border: 1.5px solid var(--color-border); border-radius: 999px; padding: 0.65rem 1.5rem; cursor: pointer; transition: background .18s, color .18s, border-color .18s; }
.doc-tab:hover { border-color: var(--color-primary); color: var(--color-primary); }
.doc-tab.is-active { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: 0 6px 18px -8px rgba(14,122,95,0.45); }
.doc-panel[hidden] { display: none; }

.doc-nota {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--grad-soft);
    border: 1px solid rgba(0,200,150,0.20);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    max-width: 640px;
    margin: 0 auto;
}
.doc-nota svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--color-primary); margin-top: 0.1rem; }
.doc-nota p { margin: 0; font-size: 0.92rem; color: #374151; line-height: 1.6; }
.doc-nota a { color: var(--color-primary); font-weight: 600; }

/* Bloque pago TPV */
.pago-tpv__logos {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}
.pago-tpv__logo {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    padding: 0.25rem 0.65rem;
    border: 1.5px solid var(--color-border);
    border-radius: 6px;
    background: #fff;
    color: var(--color-text);
}
.pago-tpv__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-left: auto;
}

/* Comparativa fondo blanco (diferencia del FAQ section--alt) */
.section--comparativa { background: #fff; }

/* ============================================================
   Hero principal — sección de bienvenida centrada y minimalista
   ============================================================ */
.hero-main {
    position: relative;
    /* Fondo diferente al hero REA: más oscuro, con mesh gradient */
    background:
        radial-gradient(ellipse 80% 60% at 10% 110%, rgba(0,200,150,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 90%  -10%, rgba(0,200,150,0.14) 0%, transparent 55%),
        linear-gradient(160deg, #0a1628 0%, #122b5c 45%, #0b4d3a 100%);
    overflow: hidden;
    color: #fff;
    text-align: center;
}

/* Puntos: más grandes y más visibles que en el hero REA */
.hero-main__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-main__dots {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.09) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
}

/* Blobs */
.hero-main__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}
.hero-main__blob--1 {
    width: 550px; height: 550px;
    background: rgba(0,200,150,0.16);
    top: -220px; right: -140px;
}
.hero-main__blob--2 {
    width: 400px; height: 400px;
    background: rgba(26,58,122,0.55);
    bottom: -160px; left: -90px;
}
.hero-main__blob--3 {
    width: 280px; height: 280px;
    background: rgba(0,200,150,0.10);
    top: 40px; left: 28%;
}

/* Iconos decorativos flotantes */
.hero-main__deco {
    position: absolute;
    color: rgba(255,255,255,0.10);
    pointer-events: none;
}
.hero-main__deco--1 { width: 72px; top: 12%;  left: 5%;   transform: rotate(-12deg); animation: deco-drift 9s ease-in-out infinite; }
.hero-main__deco--2 { width: 54px; top: 55%;  left: 8%;   transform: rotate(8deg);   animation: deco-drift 11s ease-in-out infinite reverse; }
.hero-main__deco--3 { width: 60px; top: 8%;   right: 7%;  transform: rotate(15deg);  animation: deco-drift 10s ease-in-out infinite; animation-delay: 1.5s; }
.hero-main__deco--4 { width: 58px; bottom: 22%; right: 5%; transform: rotate(-8deg);  animation: deco-drift 8s ease-in-out infinite reverse; animation-delay: 0.8s; }
.hero-main__deco--5 { width: 50px; bottom: 30%; left: 18%; transform: rotate(5deg);   animation: deco-drift 12s ease-in-out infinite; animation-delay: 2s; }
@keyframes deco-drift {
    0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
    33%       { transform: translateY(-10px) rotate(var(--r, 0deg)); }
    66%       { transform: translateY(6px)  rotate(var(--r, 0deg)); }
}
/* Ocultar en móvil para no saturar */
@media (max-width: 760px) { .hero-main__deco { display: none; } }

/* Layout centrado */
.hero-main__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 2rem 0 0;
    max-width: 920px;
    margin: 0 auto;
}

/* Logo con fondo blanco pill */
.hero-main__logo {
    display: block;
    height: 50px;
    width: auto;
    background: rgba(255,255,255,0.95);
    border-radius: 14px;
    padding: 0.5rem 1.25rem;
    box-shadow: 0 4px 24px -8px rgba(0,0,0,0.22);
    margin-bottom: 2rem;
}

/* Titular */
.hero-main__headline {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 1.18;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
    color: #fff;
    padding-bottom: 0.05em;
}
.hero-main__highlight {
    display: block;
    background: linear-gradient(90deg, #a8ffdf, #00c896);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Lead */
.hero-main__lead {
    font-size: 1.18rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.75;
    margin: 0 0 2rem;
    max-width: 860px;
}
.hero-main__lead strong { color: #fff; }

/* Pills con iconos SVG */
.hero-main__pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.25rem;
}
.hero-main__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.83rem;
    font-weight: 600;
    color: rgba(255,255,255,0.90);
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    padding: 0.35rem 0.9rem 0.35rem 0.7rem;
    backdrop-filter: blur(8px);
    transition: background .18s, border-color .18s;
}
.hero-main__pill:hover {
    background: rgba(0,200,150,0.18);
    border-color: rgba(0,200,150,0.40);
}
.hero-main__pill svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.85;
}

/* CTAs */
.hero-main__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.hero-main__link {
    color: rgba(255,255,255,0.75);
    font-size: 0.97rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.28);
    padding-bottom: 1px;
    transition: color .18s, border-color .18s;
}
.hero-main__link:hover {
    color: #fff;
    border-color: var(--color-accent);
    text-decoration: none;
}

/* Badge especialistas REA */
.hero-main__spec {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, rgba(0,200,150,0.22), rgba(0,200,150,0.10));
    border: 1px solid rgba(0,200,150,0.45);
    border-radius: 999px;
    padding: 0.55rem 1.25rem;
    box-shadow: 0 0 0 4px rgba(0,200,150,0.08), 0 4px 16px -6px rgba(0,200,150,0.30);
    backdrop-filter: blur(8px);
}
.hero-main__spec svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    color: #00c896;
    stroke: #00c896;
}

/* Ola de transición — distinta al hero REA (dos capas) */
.hero-main__wave {
    position: relative;
    line-height: 0;
    z-index: 1;
}
.hero-main__wave svg {
    display: block;
    width: 100%;
    height: 64px;
}

/* Responsive */
@media (max-width: 760px) {
    .hero-main__headline { font-size: 1.9rem; }
    .hero-main__inner { padding: 2.5rem 0 2rem; }
}
@media (max-width: 480px) {
    .hero-main__headline { font-size: 1.65rem; }
    .hero-main__lead { font-size: 1.05rem; }
}

/* Fix botón Salir: sobreescribe regla de color blanco en nav.css de producción */
.site-header .nav__logout-btn {
    color: var(--color-muted) !important;
}

/* Bloque de aceptación CGC en el flujo de pago */
.cgc-bloque {
    background: #f0f9ff;
    border: 1.5px solid #bae6fd;
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.5rem;
}
.cgc-bloque__head {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: .85rem;
}
.cgc-bloque__ico { font-size: 1.4rem; flex-shrink: 0; margin-top: .1rem; }
.cgc-bloque__head strong { display: block; font-size: .95rem; }
.cgc-bloque__head p { margin: .1rem 0 0; font-size: .84rem; color: var(--color-muted); }
.cgc-bloque__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.cgc-check {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .88rem;
    cursor: not-allowed;
    opacity: .5;
    transition: opacity .2s;
}
.cgc-check.is-ready { cursor: pointer; opacity: 1; }
.cgc-check input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--color-primary); }
.cgc-bloque__hint {
    font-size: .78rem;
    color: var(--color-muted);
    margin: .35rem 0 0;
    width: 100%;
    font-style: italic;
}
.cgc-aviso {
    width: 100%;
    margin: .4rem 0 0;
    padding: .5rem .75rem;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    font-size: .83rem;
    color: #92400e;
    animation: cgc-fadein .2s ease;
}
@keyframes cgc-fadein {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Formulario REA: tabla personal (S5) ─────────────────────────── */
.tabla-personal--grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem 1.25rem;
    margin-top: 0.75rem;
}
.tabla-personal__fila {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.tabla-personal__fila label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-navy);
}
.tabla-personal__fila input[type=number] {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    text-align: center;
}
.tabla-personal__fila--total label { color: var(--color-primary); }
.tabla-personal__fila--total input[type=number] {
    border-color: var(--color-primary);
    font-weight: 700;
}
@media (max-width: 600px) {
    .tabla-personal--grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 380px) {
    .tabla-personal--grid { grid-template-columns: 1fr; }
}

/* ── Formulario REA: texto informativo S2 ────────────────────────── */
.s2-info {
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
    line-height: 1.55;
}

/* ── Bloque documento gestor (tasa/resolución) en vista cliente ── */
.sol-item--gestor {
    background: #f8fafc;
    border-left: 4px solid var(--color-accent);
}
.sol-item--gestor .sol-item__concepto { color: var(--color-navy); font-weight: 700; }

/* Resolución destacada en modo tramitación */
.doc-tramitacion-item--resolucion {
    background: #dcfce7 !important;
    border: 1.5px solid #86efac !important;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: .25rem;
    box-shadow: 0 1px 6px rgba(22,101,52,.08);
}

/* ── Formulario REA: checkboxes bloqueados S7 ──────────────────── */
.s7-chk--bloqueado {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}
.s7-chk--bloqueado input {
    cursor: not-allowed;
}
.s7-docs-fijos {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--color-muted);
}

/* ── Sección documentación: bloque Test REA ───────────────── */
.doc-bloque--test {
    background: linear-gradient(160deg, #eaf6f2 0%, #e8f0fe 100%);
    border-color: rgba(0,200,150,.3);
}
.doc-bloque--test .doc-bloque__icon svg { color: #fff; }
.doc-bloque--test .doc-bloque__title { color: var(--color-navy); }
.doc-bloque--test .btn { margin-top: 1rem; }

/* ── Sección documentación: CTA Test REA (banner) ─────────── */
.doc-test-cta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, #eaf6f2 0%, #e8f0fe 100%);
    border: 1.5px solid rgba(0,200,150,.25);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-top: 1.25rem;
    margin-left: auto;
    margin-right: auto;
}
.doc-test-cta__ico {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--grad-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
}
.doc-test-cta__body {
    flex: 1;
}
.doc-test-cta__body strong {
    display: block;
    font-size: .97rem;
    color: var(--color-navy);
    margin-bottom: .2rem;
}
.doc-test-cta__body p {
    margin: 0;
    font-size: .88rem;
    color: var(--color-muted);
}
@media (max-width: 560px) {
    .doc-test-cta { flex-wrap: wrap; }
    .doc-test-cta .btn { width: 100%; text-align: center; }
}

