/* ============================================================
   ConsultaDominio — sistema de diseño compartido
   ------------------------------------------------------------
   Extraído tal cual de infracciones.html / index.html (rediseño
   julio 2026) para poder unificar el resto del sitio sin volver
   a copiar el CSS a mano en cada archivo.

   Las landings de venta (index, infracciones, informes) siguen
   con su CSS inline: no se tocan para no arriesgar la conversión.
   Este archivo es la fuente de verdad para todas las demás.
   ============================================================ */

:root {
    --brand: #0e5fd8;
    --brand-dark: #0b4cb0;
    --navy: #0a1733;
    --green: #16a34a;
    --green-soft: #e8f7ee;
    --bg: #f5f7fb;
    --white: #ffffff;
    --ink: #0f172a;
    --muted: #51607a;
    --line: rgba(15, 23, 42, 0.09);
    --shadow-card: 0 8px 28px rgba(10, 23, 51, 0.10);
    --shadow-btn: 0 6px 16px rgba(14, 95, 216, 0.32);
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 18px;
    --container: 1120px;
    --content: 920px;
    --header-top: 0px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: clip;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
}

img,
svg {
    max-width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

a {
    color: inherit;
}

/* ---------- Aviso superior ---------- */
.top-disclaimer {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--navy);
    color: #e7edf8;
    padding: 8px 14px;
    font-size: 12.5px;
    line-height: 1.35;
    text-align: center;
}

.top-disclaimer .row {
    max-width: var(--content);
    margin: 0 auto;
}

.top-disclaimer strong {
    color: #fff;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: var(--header-top);
    z-index: 999;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.nav-wrap {
    position: relative;
    max-width: var(--container);
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 800;
    min-width: max-content;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand), #1d4ed8);
    color: #fff;
    font-size: 0.9rem;
}

.brand-text {
    font-size: 1rem;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-left: auto;
}

.site-nav a {
    text-decoration: none;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 9px 13px;
    border-radius: var(--r-sm);
    transition: background 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active:not(.nav-contact) {
    background: #eaf1fd;
    color: var(--brand);
}

.site-nav a.nav-contact {
    background: var(--brand);
    color: #fff;
}

.site-nav a.nav-contact:hover {
    background: var(--brand-dark);
}

.menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: #fff;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    -webkit-appearance: none;
    appearance: none;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    transform-origin: center;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Submenú del nav ----------
   .nav-group envuelve al link padre + .nav-sub. En desktop el submenú es un
   desplegable por hover/foco; en mobile queda siempre visible e indentado
   dentro del panel del menú (ver la media query de 939px). */
.nav-group {
    position: relative;
}

.nav-group>a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.nav-caret {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.18s ease;
    flex: 0 0 auto;
}

.nav-sub {
    display: flex;
    flex-direction: column;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    isolation: isolate;
    padding: 34px 16px 44px;
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(30, 100, 220, 0.45), transparent 60%),
        radial-gradient(700px 380px at -10% 100%, rgba(22, 163, 74, 0.18), transparent 55%),
        linear-gradient(155deg, #0b1c3f 0%, #0d2f6e 55%, #1156c9 100%);
    background-color: #0b1c3f;
    color: #fff;
}

.hero-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    gap: 28px;
    align-items: center;
}

.hero-copy {
    text-align: center;
}

/* Hero de página interior: una sola columna, sin formulario al lado. */
.hero.hero-simple {
    padding: 30px 16px 36px;
}

.hero.hero-simple .hero-grid {
    max-width: var(--content);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    margin-bottom: 14px;
}

.hero-eyebrow .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
}

h1 {
    font-size: clamp(1.75rem, 5.5vw, 2.6rem);
    margin: 0 0 10px;
    line-height: 1.12;
    letter-spacing: -0.5px;
}

.hero-sub {
    font-size: clamp(1rem, 2.6vw, 1.15rem);
    font-weight: 400;
    margin: 0 auto 18px;
    color: rgba(255, 255, 255, 0.88);
    max-width: 34em;
    line-height: 1.5;
}

.hero-points {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: grid;
    gap: 9px;
    max-width: 420px;
    text-align: left;
    font-size: 0.95rem;
}

.hero-points li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.92);
}

.hero-points .tick {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    background: rgba(74, 222, 128, 0.18);
    color: #4ade80;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
}

/* Botonera dentro del hero */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.hero-actions .btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.98rem;
    padding: 13px 22px;
    border-radius: var(--r-sm);
    background: #fff;
    color: var(--navy);
    box-shadow: 0 6px 18px rgba(3, 12, 32, 0.28);
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-actions .btn-hero:hover {
    transform: translateY(-1px);
}

.hero-actions .btn-hero.ghost {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    box-shadow: none;
}

.hero-actions .btn-hero.ghost:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* ---------- Formulario ---------- */
.form-box {
    background: #fff;
    padding: 20px 18px;
    border-radius: var(--r-lg);
    width: 100%;
    max-width: 440px;
    margin: 26px auto 0;
    text-align: left;
    box-shadow: var(--shadow-card);
    color: var(--ink);
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.price-label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 600;
}

.price-value {
    display: block;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: var(--ink);
}

.price-pill {
    background: var(--green-soft);
    color: #15803d;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 5px 11px;
    border-radius: 999px;
    white-space: nowrap;
}

.form-box .divider {
    height: 1px;
    background: var(--line);
    margin: 14px 0;
}

.form-box label:not(.inline-check) {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 0.92rem;
    color: var(--ink);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"] {
    width: 100%;
    padding: 13px 14px;
    border-radius: var(--r-sm);
    border: 1.5px solid #d6ddea;
    margin-bottom: 12px;
    font-size: 1rem;
    background: #fff;
    color: var(--ink);
    min-height: 50px;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(14, 95, 216, 0.14);
}

input[type="checkbox"] {
    width: 17px;
    min-width: 17px;
    height: 17px;
    margin: 2px 0 0;
    padding: 0;
    accent-color: var(--brand);
    flex: 0 0 auto;
}

input[type="hidden"] {
    display: none;
}

.error-msg {
    color: #b91c1c;
    font-size: 0.85rem;
    margin: -6px 0 10px;
    display: none;
}

.field-group {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.field-group.visible {
    /* 900px y no 500: #cuitGroup ahora también contiene el bloque de precio,
       y con overflow:hidden un max-height corto recortaría el botón en mobile. */
    max-height: 900px;
    opacity: 1;
    pointer-events: auto;
}

.cta-btn,
.btn-main,
.btn-sec {
    border: 0;
    border-radius: var(--r-sm);
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.cta-btn {
    width: 100%;
    padding: 15px;
    background: var(--brand);
    color: #fff;
    font-size: 1.08rem;
    box-shadow: var(--shadow-btn);
    margin-top: 4px;
}

.cta-btn:hover:not(:disabled),
.btn-main:hover:not(:disabled) {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

.cta-btn:disabled {
    opacity: 0.75;
    cursor: wait;
    transform: none;
}

/* Bloqueado hasta completar patente, email y consentimiento: se distingue del
   estado "Procesando…" (cursor wait) para que se lea como "falta algo". */
.cta-btn.is-locked:disabled {
    background: #94a3b8;
    box-shadow: none;
    opacity: 1;
    cursor: not-allowed;
}

.subtext {
    text-align: center;
    margin: 10px 0 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: #15803d;
}

.form-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 0.78rem;
    color: var(--muted);
}

.form-trust span,
.form-trust a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.form-trust a {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-trust a:hover {
    color: var(--brand);
}

/* En las landings de infracciones la fila vive dentro de #legalGroup (aparece
   junto con el checkbox legal) y el botón queda debajo, siempre visible. */
.field-group .form-trust {
    margin: 0 0 12px;
    padding-top: 0;
    border-top: 0;
}

.legal-text {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.45;
}

.legal-text a {
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
}

.legal-text a:hover {
    text-decoration: underline;
}

/* Consentimiento único: cubre términos, privacidad y conformidad de
   ejecución inmediata (art. 1116 inc. b CCyC). Nunca premarcado. */
.inline-check {
    margin: 2px 0 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
}

.inline-check input[type="checkbox"] {
    margin-top: 2px;
    flex: none;
}

/* ---------- Franja de confianza ---------- */
.trust-strip {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px;
}

.trust-strip .inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Alineado arriba: si un texto ocupa más renglones que los otros —pasa con los
   nombres de jurisdicción largos— centrarlo deja los tres íconos y los tres
   títulos a alturas distintas. */
.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.trust-item .ico {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    background: #eaf1fd;
    color: var(--brand);
    display: grid;
    place-items: center;
}

.trust-item b {
    display: block;
    font-size: 0.95rem;
}

.trust-item small {
    color: var(--muted);
    font-size: 0.82rem;
}

/* ---------- Contenido ---------- */
main.content {
    background: var(--bg);
    padding: 36px 16px 56px;
}

.content-inner {
    max-width: var(--content);
    margin: 0 auto;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 22px 18px;
    margin-bottom: 18px;
    overflow-wrap: anywhere;
}

.card h2 {
    margin: 0 0 10px;
    font-size: 1.28rem;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

.card h3 {
    margin: 18px 0 8px;
    font-size: 1.05rem;
    line-height: 1.3;
}

.card p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
}

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

/* Ficha de datos oficiales de una jurisdicción (/multas/). Es una definición,
   no una lista de beneficios: por eso no lleva el ✓ verde de .list. En mobile
   apila etiqueta sobre valor; desde 620px pasa a dos columnas. */
.datos {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.datos dt {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--ink);
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.datos dt:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.datos dd {
    margin: 4px 0 12px;
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
}

.datos dd:last-child {
    margin-bottom: 0;
}

.datos dd a {
    color: var(--brand);
    overflow-wrap: anywhere;
}

@media (min-width:620px) {
    .datos {
        grid-template-columns: minmax(140px, 200px) 1fr;
        column-gap: 22px;
    }

    .datos dt {
        padding-top: 14px;
    }

    .datos dd {
        margin: 0 0 0;
        padding-top: 14px;
        border-top: 1px solid var(--line);
    }

    .datos dt:first-of-type+dd {
        border-top: 0;
        padding-top: 0;
    }
}

.datos dd ul {
    margin: 0;
    padding-left: 18px;
}

.datos dd li {
    margin-bottom: 4px;
}

/* Particularidades de la jurisdicción. Lleva viñeta neutra y no el ✓ de .list:
   son advertencias tanto como ventajas, y el tilde verde les daría un tono
   celebratorio equivocado. */
.notas {
    margin: 0;
    padding-left: 18px;
}

.notas li {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 9px;
}

.notas li:last-child {
    margin-bottom: 0;
}

/* Pie de verificación: de dónde salieron los datos y cuándo se chequearon. */
.verif {
    margin: 14px 0 0;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.55;
}

.list li,
.sub,
.note {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
}

.list li {
    margin-bottom: 7px;
    padding-left: 26px;
    position: relative;
}

.list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--green-soft);
    color: #15803d;
    font-size: 11px;
    font-weight: 800;
    display: grid;
    place-items: center;
    margin-top: 3px;
}

.sub {
    margin: 0 0 10px;
}

.note {
    margin: 10px 0 0;
    padding: 10px 12px;
    background: #fff8eb;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--r-sm);
    font-size: 0.88rem;
}

/* Pasos */
.steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
}

.steps li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.step-num {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    display: grid;
    place-items: center;
}

.steps b {
    display: block;
    font-size: 0.98rem;
    margin-bottom: 2px;
}

.steps p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

/* Dentro del hero las píldoras siguen la alineación del texto del hero.
   Sin esto quedan pegadas a la izquierda mientras el título, la bajada y el
   botón están centrados. Fuera del hero (tarjeta "Medios de pago") se
   mantienen a la izquierda, que es lo correcto ahí. */
.hero-copy .badge-row {
    justify-content: center;
}

.badge {
    font-size: 0.85rem;
    background: #eaf1fd;
    color: #1e3a8a;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 999px;
}

/* Bloque de cierre con llamada a la acción */
.cta-card {
    background: linear-gradient(155deg, #0b1c3f 0%, #0d2f6e 60%, #1156c9 100%);
    color: #fff;
    border: 0;
    text-align: center;
}

.cta-card h2 {
    color: #fff;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.88);
    margin: 0 auto 16px;
    max-width: 46ch;
}

.cta-card .hero-actions {
    margin-top: 0;
}

/* Enlaces relacionados al pie del contenido */
.related {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
}

.related a {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 13px 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.94rem;
    color: var(--ink);
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.related a:hover {
    border-color: var(--brand);
    transform: translateY(-1px);
}

.related a span {
    display: block;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 3px;
}

/* Franja destacada dentro de una tarjeta. */
.strip {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: var(--r-sm);
    background: var(--green-soft);
    border: 1px solid rgba(22, 163, 74, 0.28);
    color: #14532d;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ---------- Grilla de tarjetas (3 columnas en desktop) ---------- */
.cards-3 {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
}

.mini-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 18px 16px;
}

.mini-card .icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: var(--r-sm);
    background: #eaf1fd;
    color: var(--brand);
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.mini-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.3;
}

.mini-card p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.6;
}

/* FAQ */
details {
    border-bottom: 1px solid var(--line);
    padding: 4px 0;
}

details:last-child {
    border-bottom: 0;
}

summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 0.96rem;
    padding: 10px 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "+";
    font-size: 1.2rem;
    color: var(--brand);
    font-weight: 800;
    flex: 0 0 auto;
}

details[open] summary::after {
    content: "–";
}

details p {
    margin: 0 0 12px;
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ---------- Modal ---------- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 23, 51, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

.modal-backdrop.show {
    display: flex;
}

.modal {
    background: #fff;
    width: min(100%, 430px);
    max-height: min(90vh, 700px);
    overflow-y: auto;
    border-radius: var(--r-lg);
    padding: 22px 20px;
    box-shadow: 0 20px 60px rgba(10, 23, 51, 0.35);
    transform: translateY(8px);
    opacity: 0;
    transition: 0.25s ease-out;
}

.modal-backdrop.show .modal {
    transform: translateY(0);
    opacity: 1;
}

.modal h3 {
    margin: 0 0 14px;
    font-size: 1.2rem;
    letter-spacing: -0.3px;
}

.modal-summary {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 6px 14px;
}

.modal-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 9px 0;
    font-size: 14.5px;
    border-bottom: 1px solid var(--line);
}

.modal-summary .modal-row:last-child {
    border-bottom: 0;
}

.modal-row span:first-child {
    color: var(--muted);
}

.modal-row span:last-child {
    text-align: right;
    overflow-wrap: anywhere;
    font-weight: 600;
}

.modal-row.total-row {
    font-size: 16px;
}

.modal-row.total-row span:last-child {
    color: var(--ink);
    font-size: 1.15rem;
}

.modal-assurances {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: grid;
    gap: 6px;
    font-size: 12.5px;
    color: var(--muted);
}

.modal-assurances li {
    display: flex;
    gap: 7px;
    align-items: flex-start;
}

.btn-main {
    background: var(--brand);
    color: #fff;
    padding: 14px;
    font-size: 1.02rem;
    width: 100%;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-btn);
}

.btn-main:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-sec {
    margin-top: 10px;
    width: 100%;
    background: #fff;
    padding: 11px 14px;
    border: 1px solid #cfd8e6;
    color: var(--muted);
}

.btn-sec:hover {
    background: var(--bg);
}

.btn-main.loading {
    opacity: 0.85;
    cursor: wait;
}

.spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    animation: spin 0.6s linear infinite;
    display: none;
}

.btn-main.loading .spinner {
    display: inline-block;
}

.btn-main.loading .btn-text {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Footer ---------- */
.site-footer {
    padding: 30px 16px;
    background: var(--navy);
    color: rgba(248, 250, 252, 0.92);
}

.site-footer a {
    color: rgba(147, 197, 253, 0.95);
    text-decoration: none;
}

/* Botón de Arrepentimiento — Res. SCI 424/2020: visible y destacado */
.btn-arrepentimiento {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--navy) !important;
    border: 2px solid #fff;
    border-radius: 999px;
    padding: 9px 18px;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none !important;
}

.btn-arrepentimiento:hover {
    background: transparent;
    color: #fff !important;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer .inner {
    max-width: 980px;
    margin: 0 auto;
}

.site-footer .grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
    align-items: start;
}

.site-footer .brand {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.site-footer .logo {
    width: 42px;
    height: 42px;
    border-radius: var(--r-sm);
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(147, 197, 253, 0.25);
    display: grid;
    place-items: center;
    font-weight: 800;
    letter-spacing: 0.5px;
    flex: 0 0 auto;
}

.site-footer h3 {
    font-size: 14px;
    margin: 0 0 10px;
    letter-spacing: 0.2px;
}

.site-footer p,
.site-footer li {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.site-footer .meta {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 12px;
    opacity: 0.9;
}

.site-footer .kvs {
    display: grid;
    gap: 6px;
}

.site-footer .kvs span {
    display: block;
    opacity: 0.95;
}

/* ---------- Desktop ---------- */
@media (min-width: 720px) {
    .trust-strip .inner {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .cards-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .card {
        padding: 26px 26px;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .related {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Con una cantidad impar de enlaces la última tarjeta ocupa la fila entera
       en vez de dejar media fila vacía al lado. */
    .related>a:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

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

@media (min-width: 940px) {
    .hero {
        padding: 56px 24px 64px;
    }

    .hero-grid {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 48px;
    }

    .hero-copy {
        text-align: left;
    }

    /* El hero de dos columnas alinea a la izquierda; las píldoras lo acompañan. */
    .hero:not(.hero-simple) .hero-copy .badge-row {
        justify-content: flex-start;
    }

    .hero-sub,
    .hero-points {
        margin-left: 0;
    }

    .form-box {
        margin: 0 0 0 auto;
        padding: 24px 24px;
    }

    /* El hero simple no se parte en dos columnas. */
    .hero.hero-simple .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero.hero-simple .hero-copy {
        text-align: center;
    }

    .hero.hero-simple .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 939px) {
    .site-nav {
        position: absolute;
        top: calc(100% + 8px);
        left: 12px;
        right: 12px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        background: #ffffff;
        border: 1px solid var(--line);
        border-radius: var(--r-md);
        padding: 12px;
        box-shadow: var(--shadow-card);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    .site-nav.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .site-nav a {
        width: 100%;
        padding: 12px 14px;
        background: #f8fafc;
    }

    .site-nav a.nav-contact {
        background: var(--brand);
        color: #fff;
    }

    .nav-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .nav-caret {
        display: none;
    }

    .nav-sub {
        gap: 6px;
        margin-left: 6px;
        padding-left: 10px;
        border-left: 2px solid var(--line);
    }

    .nav-sub a {
        font-size: 0.86rem;
        font-weight: 600;
        white-space: normal;
        background: #fff;
        border: 1px solid var(--line);
    }
}

@media (min-width: 940px) {
    .menu-toggle {
        display: none;
    }

    /* Puente invisible: evita que el submenú se cierre al cruzar el hueco. */
    .nav-group::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 8px;
    }

    .nav-sub {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        z-index: 10;
        min-width: 264px;
        gap: 2px;
        padding: 6px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: var(--r-md);
        box-shadow: var(--shadow-card);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-6px);
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    }

    .nav-group:hover .nav-sub,
    .nav-group:focus-within .nav-sub {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-group:hover .nav-caret,
    .nav-group:focus-within .nav-caret {
        transform: translateY(1px) rotate(-135deg);
    }

    .nav-sub a {
        white-space: normal;
        font-size: 0.88rem;
        line-height: 1.35;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   Ejemplo de informe de infracciones
   Se usa en infracciones.html, infracciones-suats.html e
   infracciones-cenat.html. Es HTML y no una captura real: el
   documento original contiene datos del titular que no pueden
   publicarse, así que todos los valores son ficticios.
   El prefijo .rep- evita colisionar con el .sample- que
   informes.html define inline para el informe de dominio.
   ============================================================ */
.rep-sample {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    padding: clamp(16px, 3vw, 26px);
    margin-top: 16px;
}

.rep-head {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
}

.rep-brand {
    color: var(--brand);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.rep-tag {
    background: var(--bg);
    color: var(--brand);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 700;
}

.rep-title {
    margin: 18px 0 4px;
    color: var(--ink);
    font-size: clamp(1.02rem, 2vw, 1.2rem);
    line-height: 1.3;
    text-align: center;
}

.rep-block {
    margin: 22px 0 12px;
    background: var(--bg);
    border-left: 3px solid var(--brand);
    border-radius: var(--r-sm);
    padding: 8px 12px;
    color: var(--ink);
    font-size: 0.83rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rep-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
}

.rep-grid div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px dashed var(--line);
    padding-bottom: 7px;
    font-size: 0.92rem;
}

.rep-grid span {
    color: var(--muted);
}

.rep-grid strong {
    color: var(--ink);
    text-align: right;
}

/* Listado de infracciones: cada ítem es una tarjeta chica para que
   en mobile no haya que hacer scroll horizontal como en una tabla. */
.rep-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.rep-list li {
    border: 1px solid var(--line);
    border-left: 3px solid var(--muted);
    border-radius: var(--r-sm);
    padding: 11px 13px;
}

.rep-list li.warn {
    border-left-color: #d97706;
    background: rgba(217, 119, 6, 0.06);
}

.rep-list li.ok {
    border-left-color: var(--green);
    background: var(--green-soft);
}

.rep-item-head {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    color: var(--ink);
    font-size: 0.95rem;
}

.rep-state {
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.rep-state.warn {
    background: #d97706;
    color: var(--white);
}

.rep-state.ok {
    background: var(--green);
    color: var(--white);
}

.rep-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.84rem;
}

.rep-item-meta .rep-amount {
    color: var(--ink);
    font-weight: 700;
}

.rep-flags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.rep-flags li {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--r-sm);
    padding: 9px 12px;
    font-size: 0.92rem;
    color: var(--ink);
}

.rep-flags li span {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border-radius: 50%;
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
}

.rep-flags .ok {
    background: var(--green-soft);
}

.rep-flags .ok span {
    background: var(--green);
}

.rep-flags .warn {
    background: rgba(217, 119, 6, 0.10);
}

.rep-flags .warn span {
    background: #d97706;
}

.rep-note {
    margin: 20px 0 0;
    border-top: 1px solid var(--line);
    padding-top: 14px;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.55;
}

.rep-legal {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.55;
}

/* Imagen ilustrativa del informe (sección #ejemplo) */
.rep-figure {
    margin: 16px 0 0;
}

.rep-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    background: #f4f6f9;
}

.rep-figure figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
    text-align: center;
}

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

    .rep-grid div {
        flex-direction: column;
        gap: 2px;
    }

    .rep-grid strong {
        text-align: left;
    }
}

/* ============================================================
   Autocompletado de dominio de email (assets/email-suggest.js)
   La lista cuelga de <body> con position:fixed, así que no puede
   quedar recortada por el overflow:hidden de .field-group. El
   z-index queda por encima del header sticky (1000) y del modal
   #puente (9999). Prefijo .es- para no pisar el .email-suggest
   inline de informes.html.
   ============================================================ */
.es-list {
    position: fixed;
    margin: 0;
    padding: 4px;
    list-style: none;
    background: #fff;
    border: 1px solid #cfd8e6;
    border-radius: var(--r-sm, 10px);
    box-shadow: var(--shadow-card, 0 8px 28px rgba(10, 23, 51, 0.10));
    z-index: 100000;
    max-height: 240px;
    overflow-y: auto;
}

.es-list[hidden] {
    display: none;
}

.es-list li {
    padding: 10px;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    color: var(--ink, #0f172a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.es-list li[aria-selected="true"] {
    background: var(--bg, #f5f7fb);
}

.es-list .es-typed {
    color: var(--muted, #51607a);
}

.es-list .es-match {
    font-weight: 700;
}
