/* ── Canal de Denuncias · página pública ─────────────────────
   Diseño basado en canal-denuncias-gardena.html.
   --brand se sobrescribe por compañía desde el layout público. */

   :root {
    --navy:      #0F2D52;
    --navy-dark: #0A1F3D;
    --blue:      #1E5BB8;
    --brand:     #00A39E;
    --brand-soft: #FFFFFF;
    --brand-soft: color-mix(in srgb, var(--brand) 10%, white);
    --brand-dark: var(--brand);
    --brand-dark: color-mix(in srgb, var(--brand) 75%, black);
    /* Relleno de las superficies con texto blanco: el tono pleno de la marca
       no llega a 4.5:1 con blanco encima; este sí, y sigue siendo su color. */
    --brand-accion: var(--brand);
    --brand-accion: color-mix(in srgb, var(--brand) 85%, black);
    --anillo:    rgba(15, 45, 82, .15);
    --anillo:    color-mix(in srgb, var(--brand) 15%, transparent);
    --bg:        #F5F7FA;
    --surface:   #FFFFFF;
    --border:    #E1E7EF;
    --text:      #1A2332;
    --muted:     #5A6B7C;
    --danger:    #DC2626;
    --shadow-sm: 0 1px 2px rgba(15,45,82,.05);
    --shadow-md: 0 4px 12px rgba(15,45,82,.08);
    --shadow-lg: 0 12px 32px rgba(15,45,82,.10);
    --radius:    10px;
    --radius-lg: 16px;
    color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    accent-color: var(--brand);
    caret-color: var(--brand);
}

::selection { background: color-mix(in srgb, var(--brand) 22%, white); color: var(--navy); }

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

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ── Header ── */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: sticky; top: 0; z-index: 50;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
}
.brand {
    display: flex; align-items: center; gap: 14px;
    font-weight: 700; font-size: 20px;
    color: var(--navy); text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-logo { height: 72px; width: auto; }
.brand-sub {
    display: block;
    font-size: 11px; font-weight: 500;
    color: var(--muted);
    letter-spacing: 1.2px; text-transform: uppercase;
    margin-top: 2px;
}
.header-nav { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.secure-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    background: var(--brand-soft); color: var(--brand-dark);
    font-size: 12px; font-weight: 600;
}
.secure-badge svg { color: var(--brand); }

.selector-idioma { display: inline-flex; gap: 2px; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.idioma {
    font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .05em;
    padding: 4px 12px; border: 0; background: none; color: var(--muted);
    cursor: pointer; border-radius: 999px;
    transition: all .2s;
}
.idioma:hover { color: var(--navy); }
.idioma-activo { color: #fff; background: var(--brand-accion); box-shadow: var(--shadow-sm); }

/* Cabecera: proveedor · título · compañía · navegación */
.header-tres { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 20px; }
.header-proveedor { display: flex; flex-direction: column; gap: 2px; justify-self: start; }
.titulo-canal {
    justify-self: center;
    text-decoration: none;
    font-size: 22px; font-weight: 700; letter-spacing: -.4px;
    color: var(--navy);          /* el navy del hero */
    white-space: nowrap;
}
.proveedor-logo { height: 72px; width: auto; display: block; }   /* misma altura que .brand-logo */
.proveedor-nombre { font-weight: 700; font-size: 15px; color: var(--navy); }
.proveedor-enlace { display: inline-block; line-height: 0; text-decoration: none; }
.proveedor-enlace:hover { text-decoration: none; opacity: .85; }
.brand-centro { justify-self: center; text-align: center; gap: 12px; }
.header-tres .header-nav { justify-self: end; }

a.titulo-canal:hover { color: var(--brand-accion); text-decoration: none; }

@media (max-width: 1040px) { .titulo-canal { font-size: 18px; } }
/* Por debajo de 900 la rejilla de cuatro columnas no cabe: se pasa a filas
   apiladas para que el idioma y el sello no se salgan del contenedor. */
@media (max-width: 900px) {
    .header-tres {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px 16px;
    }
    .header-proveedor { order: 1; }
    .brand-centro { order: 2; margin-left: auto; }
    .titulo-canal { order: 3; flex: 1 0 100%; justify-self: start; font-size: 17px; }
    .header-tres .header-nav { order: 4; flex: 1 0 100%; flex-wrap: wrap; justify-content: flex-start; }
    .brand-centro .brand-logo, .proveedor-logo { height: 52px; }
}
@media (max-width: 560px) {
    .header-inner { padding: 12px 16px; }
    .brand-centro .brand-logo, .proveedor-logo { height: 42px; }
    .titulo-canal { font-size: 16px; }
}
@media (max-width: 720px) {
    .secure-badge span { display: none; }
    .brand-logo, .proveedor-logo { height: 46px; }
}

/* ── Hero ── */
.hero {
    background:
        radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(30,91,184,.15), transparent 50%),
        linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: #fff;
    padding: 56px 24px 72px;
    overflow: hidden;
}
.hero-inner { max-width: 1200px; margin: 0 auto; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px;
    background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
    font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
    color: color-mix(in srgb, var(--brand) 45%, white);
}
.hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800; letter-spacing: -1.5px; line-height: 1.1;
    margin: 18px 0 16px; max-width: 820px;
}
.hero h1 span { color: color-mix(in srgb, var(--brand) 80%, white); }
.hero p.lead {
    font-size: clamp(16px, 1.6vw, 18px);
    color: rgba(255,255,255,.85);
    max-width: 700px; margin: 0 0 8px;
}
.hero-meta {
    display: flex; flex-wrap: wrap; gap: 24px;
    margin-top: 32px; padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: 13px; color: rgba(255,255,255,.7);
}
.hero-meta strong { color: #fff; display: block; font-size: 14px; margin-bottom: 2px; }

/* ── Landing ── */
.hero-landing { padding: 72px 24px 84px; }
.hero-acciones { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.btn-hero-primario {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 28px; border-radius: var(--radius);
    background: var(--brand-accion); color: #fff;
    font-weight: 700; font-size: 16px; text-decoration: none;
    transition: all .2s;
    box-shadow: 0 6px 20px -6px color-mix(in srgb, var(--brand) 65%, transparent);
}
.btn-hero-primario:hover {
    background: color-mix(in srgb, var(--brand) 85%, white);
    transform: translateY(-2px); text-decoration: none;
    box-shadow: 0 10px 28px -6px color-mix(in srgb, var(--brand) 70%, transparent);
}
.btn-hero-secundario {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 28px; border-radius: var(--radius);
    background: rgba(255,255,255,.08); color: #fff;
    border: 1.5px solid rgba(255,255,255,.35);
    font-weight: 600; font-size: 16px; text-decoration: none;
    transition: all .2s;
}
.btn-hero-secundario:hover {
    background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.6);
    transform: translateY(-2px); text-decoration: none;
}

.accesos {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
@media (max-width: 720px) { .accesos { grid-template-columns: 1fr; } }
.acceso {
    display: flex; align-items: center; gap: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 24px 26px;
    text-decoration: none; color: var(--text);
    transition: all .2s;
}
.acceso:hover {
    text-decoration: none;
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
    box-shadow: var(--shadow-lg);
}
.acceso-icono {
    flex: none; width: 52px; height: 52px;
    display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand);
    border-radius: 14px;
}
.acceso-icono svg { width: 26px; height: 26px; }
.acceso-texto { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.acceso-texto strong { font-size: 17px; font-weight: 700; color: var(--navy); letter-spacing: -.2px; }
.acceso-texto span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.acceso-flecha { flex: none; color: var(--muted); transition: all .2s; }
.acceso:hover .acceso-flecha { color: var(--brand); transform: translateX(3px); }

.como-funciona { margin-top: 52px; }
.como-funciona h2 {
    margin: 0 0 22px; font-size: 24px; font-weight: 800;
    color: var(--navy); letter-spacing: -.5px;
}
.pasos-landing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .pasos-landing { grid-template-columns: 1fr; } }
.paso-landing {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex; flex-direction: column; gap: 8px;
}
.paso-num {
    width: 32px; height: 32px;
    display: grid; place-items: center;
    background: var(--navy); color: #fff;
    border-radius: 50%;
    font-weight: 800; font-size: 15px;
    margin-bottom: 4px;
}
.paso-landing strong { font-size: 16px; color: var(--navy); font-weight: 700; }
.paso-landing p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }

.landing-inferior { margin-top: 52px; grid-template-columns: 1fr 1fr; align-items: stretch; }
@media (max-width: 860px) { .landing-inferior { grid-template-columns: 1fr; } }
.landing-inferior .legal-box { display: flex; flex-direction: column; justify-content: center; }

/* Cabecera compacta del formulario */
.hero-compacto { padding: 30px 24px 34px; }
.hero-volver {
    display: inline-flex; align-items: center; gap: 2px;
    min-height: 44px;
    color: rgba(255,255,255,.85); font-size: 13.5px; font-weight: 600;
    text-decoration: none;
}
.hero-volver::before, .btn-volver::before, [data-prev]::before {
    content: "«";
    font-size: 1.25em; line-height: 1;
    margin-right: .4rem; position: relative; top: -.05em;
    display: inline-block;
    transition: transform .2s;
}
.hero-volver:hover::before, .btn-volver:hover::before, [data-prev]:hover::before { transform: translateX(-3px); }
.hero-volver:hover { color: #fff; text-decoration: underline; }
.hero-titulo-compacto {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800; letter-spacing: -.8px;
    margin: 8px 0 0;
}

/* ── Texto informativo configurable (página "nueva") ── */
.info-canal { display: grid; gap: 10px; margin-bottom: 28px; }
.info-seccion {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.info-seccion[open] { border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); box-shadow: var(--shadow-sm); }
.info-seccion summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; gap: 14px;
    padding: 16px 22px;
    font-weight: 700; font-size: 16px; color: var(--navy);
    transition: background .2s;
}
.info-seccion summary::-webkit-details-marker { display: none; }
.info-seccion summary:hover { background: #fafbfd; }
.info-seccion-num {
    flex: none; width: 28px; height: 28px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--brand-soft); color: var(--brand-dark);
    font-size: 13px; font-weight: 800;
}
.info-seccion-titulo { flex: 1; }
.info-seccion-chevron { flex: none; color: var(--muted); transition: transform .25s; }
.info-seccion[open] .info-seccion-chevron { transform: rotate(180deg); }
.info-seccion-cuerpo { padding: 2px 22px 20px 64px; }
.info-seccion-cuerpo p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.65; color: var(--text); }
.info-seccion-cuerpo p:last-child { margin-bottom: 0; }
.info-seccion-cuerpo strong { color: var(--navy); font-weight: 700; }
@media (max-width: 600px) {
    .info-seccion summary { padding: 14px 16px; font-size: 15px; }
    .info-seccion-cuerpo { padding: 0 16px 16px 16px; }
}

/* ── Enlaces a documentos de política ── */
.lista-politicas { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.lista-politicas li { padding: 0; }
.lista-politicas li::before { display: none; }
.enlace-politica {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; margin: 0 -12px;
    border-radius: var(--radius);
    color: var(--text); font-size: 13.5px; font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.enlace-politica:hover { background: var(--brand-soft); color: var(--brand-dark); text-decoration: none; }
.politica-icono {
    flex: none; width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: var(--brand-soft); color: var(--brand);
}
.enlace-politica:hover .politica-icono { background: var(--brand); color: #fff; }


/* ── Filas de documentos (acordeón "Documentos de interés") ── */
.documentos-lista { display: grid; gap: 10px; padding-top: 6px; }
.documento-fila {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text); text-decoration: none;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.documento-fila:hover {
    text-decoration: none;
    border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.documento-icono {
    flex: none; width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--brand-soft); color: var(--brand);
    transition: background .2s, color .2s;
}
.documento-fila:hover .documento-icono { background: var(--brand); color: #fff; }
.documento-texto { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.documento-texto strong { font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.35; }
.documento-texto span { font-size: 12.5px; color: var(--muted); }
.documento-accion {
    flex: none; display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 700; color: var(--brand-dark);
    padding: 7px 12px; border-radius: 8px;
    background: var(--brand-soft);
    transition: background .2s, color .2s;
}
.documento-fila:hover .documento-accion { background: var(--brand-dark); color: #fff; }
@media (max-width: 600px) {
    .documento-accion span, .documento-accion { display: none; }
}

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 48px 24px; }
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}
@media (max-width: 960px) { .grid-2 { grid-template-columns: 1fr; } }

/* ── Card ── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.card-header {
    padding: 28px 32px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #fff, #fafbfd);
}
.card-header h2 {
    margin: 0 0 4px; font-size: 22px; font-weight: 700;
    color: var(--navy); letter-spacing: -.4px;
}
.card-header p { margin: 0; color: var(--muted); font-size: 14px; }
.card-body { padding: 32px; }
@media (max-width: 600px) {
    .card-header, .card-body { padding: 24px 20px; }
}

/* ── Aviso de error del servidor ── */
.form-error {
    margin: 20px 32px 0;
    padding: 12px 16px;
    background: #FDECEC; border: 1px solid #F6C9C9;
    color: var(--danger); border-radius: var(--radius);
    font-size: 14px; font-weight: 600;
}
@media (max-width: 600px) { .form-error { margin: 16px 20px 0; } }

/* ── Stepper ── */
.stepper {
    display: flex; gap: 4px;
    padding: 16px 32px;
    background: #fafbfd;
    border-bottom: 1px solid var(--border);
}
.step {
    flex: 1;
    display: flex; flex-direction: column; gap: 6px;
    font-size: 11px; font-weight: 600; letter-spacing: .5px;
    color: var(--muted); text-transform: uppercase;
}
.step-bar {
    height: 3px; border-radius: 2px; background: var(--border);
    transition: background .3s;
}
.step.is-active { color: var(--navy); }
.step.is-active .step-bar { background: var(--brand); }
.step.is-done   .step-bar { background: var(--navy); }
@media (max-width: 600px) {
    .stepper { padding: 12px 16px; }
    .step span { display: none; }
    .step::before { content: attr(data-num); font-size: 13px; color: inherit; }
}

/* ── Form ── */
.field { margin-bottom: 22px; }
.field label {
    display: block; font-weight: 600; font-size: 14px;
    color: var(--text); margin-bottom: 8px;
}
.field label .req { color: var(--danger); }
.modo-voz .field label .req { display: none; }   /* relato verbal: campos opcionales */
.field .hint { font-size: 13px; color: var(--muted); margin: 4px 0 8px; display: block; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit; font-size: 15px;
    background: #fff; color: var(--text);
    transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--anillo);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.field select {
    appearance: none; -webkit-appearance: none;
    padding-right: 2.4rem; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%235A6B7C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.field select option { background: #fff; color: var(--text); }
@supports selector(::picker(select)) {
    .field select, .field select::picker(select) { appearance: base-select; }
    .field select::picker-icon { display: none; }
    .field select::picker(select) {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
        padding: 4px;
        margin-top: 5px;
    }
    .field select option { padding: 9px 12px; border-radius: 7px; font-size: 14px; }
    .field select option:hover, .field select option:focus { background: var(--brand-soft); }
    .field select option:checked { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
    .field select option::checkmark { color: var(--brand); }
}

.fact-desc {
    margin-top: 8px;
    padding: 10px 14px;
    background: var(--brand-soft);
    border: 1px solid color-mix(in srgb, var(--brand) 25%, white);
    border-radius: var(--radius);
    font-size: 13px; color: var(--brand-dark); line-height: 1.5;
}

.declaraciones { display: grid; gap: 6px; }
.declaraciones .check-line + .campo-error { margin: -2px 0 6px 26px; }
.check-error span { color: var(--danger); }
.check-error input { outline: 2px solid var(--danger); outline-offset: 2px; border-radius: 3px; }
.check-line {
    display: flex; gap: 10px; align-items: flex-start;
    font-weight: 500; cursor: pointer;
    /* Son obligatorias para enviar la denuncia: la fila entera es pulsable
       y la casilla llega al mínimo de objetivo táctil. */
    padding: 6px 0;
}
.check-line input { margin-top: 4px; width: 16px; height: 16px; flex: none; cursor: pointer; }
.check-line span { font-size: 13.5px; color: var(--muted); }

/* ── Tarjetas de elección (radio) ── */
.choice-group { display: grid; gap: 14px; }
@media (min-width: 560px) { .choice-group { grid-template-columns: 1fr 1fr; } }
.choice {
    position: relative; display: block;
    padding: 18px 20px 18px 56px;
    border: 1.5px solid var(--border); border-radius: var(--radius);
    cursor: pointer; transition: all .2s;
    background: #fff;
}
.choice:hover { border-color: var(--brand); transform: translateY(-1px); }
.choice input { position: absolute; opacity: 0; }
.choice::before {
    content: ''; position: absolute; left: 20px; top: 22px;
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid var(--border); background: #fff;
    transition: all .2s;
}
.choice:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-soft);
    box-shadow: 0 0 0 4px var(--anillo);
}
.choice:has(input:checked)::before { border-color: var(--brand); }
.choice:has(input:checked)::after {
    content: ''; position: absolute; left: 26px; top: 28px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--brand);
}
.choice-title {
    display: block; font-weight: 700; color: var(--navy);
    font-size: 15px; margin-bottom: 4px;
}
.choice-desc { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ── Dropzone ── */
.dropzone {
    display: block;
    border: 2px dashed var(--border);
    background: #fafbfd;
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--brand-soft); }
.dropzone svg { width: 36px; height: 36px; color: var(--brand); }
.dropzone strong { display: block; margin-top: 10px; color: var(--navy); }
.dropzone span { font-size: 13px; color: var(--muted); }
.dropzone input { display: none; }
.file-avisos {
    margin-top: 12px;
    background: #FDECEC; border: 1px solid #F6C9C9;
    border-radius: var(--radius);
    padding: 10px 14px;
}
.file-avisos p { margin: 0; font-size: 13px; color: var(--danger); line-height: 1.5; }
.file-avisos p:only-child:empty { display: none; }
.file-avisos p + p { margin-top: 5px; }
.file-list { margin-top: 14px; display: grid; gap: 8px; }
.file-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; background: #fff;
    border: 1px solid var(--border); border-radius: 8px;
    font-size: 13px;
}
.file-item .name { flex: 1; font-weight: 500; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* El nombre del documento actúa como enlace de descarga
   (especificidad > ".file-item button", que es el botón de quitar) */
button.doc-link,
.file-item button.doc-link {
    background: none; border: none; padding: 0;
    font: inherit; font-weight: 600; font-size: 13px;
    color: var(--brand-dark); cursor: pointer;
    max-width: 100%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    text-align: left; display: block;
}
.doc-link:hover { text-decoration: underline; }
.doc-desc {
    display: block; margin-top: 2px;
    font-size: 12px; font-weight: 400; color: var(--muted);
    white-space: normal; line-height: 1.4;
}

/* Item de fichero con campo de descripción (formulario de denuncia) */
.file-item-desc { display: block; }
.file-item-fila { display: flex; align-items: center; gap: 10px; }
.file-item-desc input[type="text"] {
    width: 100%; margin-top: 8px;
    padding: 7px 10px;
    border: 1px solid var(--border); border-radius: 7px;
    font-family: inherit; font-size: 13px; color: var(--text);
    background: var(--bg);
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.file-item-desc input[type="text"]:focus {
    outline: none; border-color: var(--brand); background: #fff;
    box-shadow: 0 0 0 3px var(--anillo);
}
.file-item-desc input[type="text"]::placeholder { color: var(--muted); }
.file-item .size { color: var(--muted); font-size: 12px; }
.file-item button {
    background: none; border: none; color: var(--danger);
    cursor: pointer; font-size: 18px; padding: 0 4px; line-height: 1;
}

/* ── Grabadora de audio ── */
.audio-rec {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px; border: 1.5px solid var(--border);
    border-radius: var(--radius); background: #fff;
}
.audio-btn {
    width: 44px; height: 44px; border-radius: 50%; flex: none;
    background: var(--danger); color: #fff;
    border: none; cursor: pointer;
    display: grid; place-items: center;
    transition: all .2s;
}
.audio-btn:hover { transform: scale(1.05); }
.audio-btn.recording { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(220,38,38,.4); }
    50%     { box-shadow: 0 0 0 12px rgba(220,38,38,0); }
}
.audio-info { flex: 1; }
.audio-info strong { display: block; font-size: 14px; color: var(--navy); }
.audio-info span { font-size: 12px; color: var(--muted); }

/* ── Botones ── */
.btn-row {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 0 32px 28px;
}
@media (max-width: 600px) { .btn-row { padding: 0 20px 24px; } }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px; border-radius: var(--radius);
    font-family: inherit; font-size: 15px; font-weight: 600;
    cursor: pointer; transition: all .2s;
    border: 1.5px solid transparent;
    text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--navy) 82%, white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--navy); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ── Sidebar ── */
.sidebar { display: grid; gap: 20px; position: sticky; top: 100px; }
@media (max-width: 960px) { .sidebar { position: static; } }
.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.info-card h3 {
    margin: 0 0 14px; font-size: 16px; font-weight: 700;
    color: var(--navy); display: flex; align-items: center; gap: 8px;
}
.info-card h3 svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.info-card ul { margin: 0; padding: 0; list-style: none; }
.info-card li {
    position: relative; padding: 8px 0 8px 24px;
    font-size: 13.5px; color: var(--muted); line-height: 1.55;
}
.info-card li::before {
    content: ''; position: absolute; left: 0; top: 14px;
    width: 12px; height: 12px;
    background: var(--brand-soft);
    border: 2px solid var(--brand);
    border-radius: 50%;
}
.info-card li strong { color: var(--text); font-weight: 600; }

.legal-box {
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 22px 24px;
}
.legal-box h4 {
    margin: 0 0 8px; font-size: 14px; font-weight: 700;
    color: color-mix(in srgb, var(--brand) 75%, white);
    text-transform: uppercase; letter-spacing: 1px;
}
.legal-box p { margin: 0; font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.85); }

/* ── Documento legal (política de privacidad) ── */
.documento-legal { max-width: 860px; margin: 0 auto; }
.documento-legal .card-body { padding: 40px 44px; }
@media (max-width: 600px) { .documento-legal .card-body { padding: 26px 20px; } }
.legal-seccion + .legal-seccion { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--border); }
.legal-seccion h2 {
    display: flex; align-items: baseline; gap: 12px;
    margin: 0 0 14px; font-size: 19px; font-weight: 700;
    color: var(--navy); letter-spacing: -.3px;
}
.legal-num {
    flex: none; width: 28px; height: 28px;
    display: inline-grid; place-items: center;
    border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark);
    font-size: 13px; font-weight: 800;
}
.legal-seccion p { margin: 0 0 12px; font-size: 15px; line-height: 1.7; color: var(--text); }
.legal-seccion p:last-child { margin-bottom: 0; }
.legal-seccion strong { color: var(--navy); font-weight: 700; }
.legal-actualizacion {
    margin: 34px 0 0; padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 13px; color: var(--muted);
}

/* ── Confirmación ── */
.confirm { text-align: center; padding: 16px 0; }
.confirm-icon {
    width: 80px; height: 80px; margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--brand-soft);
    display: grid; place-items: center;
    color: var(--brand);
}
.confirm-icon svg { width: 40px; height: 40px; }
.confirm h2 {
    font-size: 26px; color: var(--navy); margin: 0 0 10px;
    font-weight: 800; letter-spacing: -.5px;
}
.confirm p { color: var(--muted); margin: 0 auto 24px; max-width: 480px; }
.tracking-code {
    background: var(--bg);
    border: 1.5px dashed var(--border);
    border-radius: var(--radius);
    padding: 20px; margin: 24px auto;
    max-width: 460px;
}
.tracking-code label {
    display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
    color: var(--muted); text-transform: uppercase; margin-bottom: 8px;
}
.tracking-code code {
    display: block; font-family: 'SFMono-Regular', Menlo, monospace;
    font-size: 22px; font-weight: 700; color: var(--navy);
    letter-spacing: 2px; word-break: break-all;
}
.warning-box {
    margin-top: 20px;
    background: #FFF8E1; border: 1px solid #FFE082;
    border-radius: var(--radius); padding: 14px 18px;
    font-size: 13px; color: #6B4F00; line-height: 1.5;
    text-align: left;
}
/* Variante con icono: el símbolo tiene que pesar tanto como el texto */
.warning-box-icono {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
}
.warning-icono {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #FFF3C4;
    border: 1px solid #F5D77F;
    color: #A6761D;
}

/* ── Footer ── */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,.7);
    padding: 32px 24px 24px;
    margin-top: 60px;
}
.footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px;
    font-size: 13px;
}
.footer-inner .f-brand { color: #fff; font-weight: 700; font-size: 15px; }
.footer-legal {
    max-width: 1200px; margin: 16px auto 0; padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: 12px; color: rgba(255,255,255,.5);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ── Seguimiento ── */
.nav-enlace {
    color: var(--muted); padding: 8px 14px; border-radius: 8px;
    font-weight: 600; font-size: 14px; transition: all .2s;
}
.nav-enlace:hover { background: var(--bg); color: var(--navy); text-decoration: none; }

.seguimiento-caja { max-width: 560px; margin: 0 auto; }
.codigo-input { font-family: 'SFMono-Regular', Menlo, monospace; letter-spacing: 1px; text-transform: uppercase; }
.captcha-fila { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.captcha-img {
    border: 1.5px solid var(--border); border-radius: var(--radius);
    overflow: hidden; line-height: 0; flex: none; background: var(--bg);
}
.captcha-img svg { display: block; }
.captcha-fila input { flex: 1; min-width: 140px; }
.captcha-otra { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand-dark); }

.form-ok {
    margin: 20px 32px 0;
    padding: 12px 16px;
    background: #E5F7EC; border: 1px solid #C4EDD2;
    color: #17813C; border-radius: var(--radius);
    font-size: 14px; font-weight: 600;
}
@media (max-width: 600px) { .form-ok { margin: 16px 20px 0; } }

.cabecera-expediente { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.codigo-mini {
    font-family: 'SFMono-Regular', Menlo, monospace;
    font-size: 14px; font-weight: 700; color: var(--navy); letter-spacing: 1px;
}
.estado-pill {
    padding: 8px 16px; border-radius: 999px;
    background: var(--brand-soft); color: var(--brand-dark);
    font-size: 13px; font-weight: 700; white-space: nowrap;
}

.ficha-seg { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.ficha-seg dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.ficha-seg dd { margin: 0; font-size: 14px; }

.seccion-titulo {
    font-size: 15px; font-weight: 700; color: var(--navy);
    margin: 28px 0 12px; padding-top: 20px;
    border-top: 1px solid var(--border);
}

.linea-tiempo { list-style: none; margin: 0; padding: 0; }
.linea-tiempo li {
    position: relative; padding: 0 0 14px 20px;
    border-left: 2px solid var(--border);
    display: flex; flex-direction: column;
}
.linea-tiempo li:last-child { padding-bottom: 2px; }
.linea-tiempo li::before {
    content: ""; position: absolute; left: -6px; top: 4px;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.lt-fecha { font-size: 12px; color: var(--muted); }
.lt-estado { font-weight: 700; font-size: 14px; color: var(--navy); }

.hilo { display: flex; flex-direction: column; gap: 10px; }
.mensaje {
    max-width: 85%; padding: 10px 14px;
    border-radius: 14px; font-size: 14px;
    box-shadow: var(--shadow-sm);
}
.mensaje p { margin: 4px 0 0; white-space: pre-wrap; }
.mensaje-meta {
    display: flex; justify-content: space-between; gap: 16px;
    font-size: 12px; color: var(--muted);
}
.mensaje-gestor { background: #EEF2F7; align-self: flex-start; border-bottom-left-radius: 5px; }
.mensaje-denunciante { background: var(--brand-soft); align-self: flex-end; border-bottom-right-radius: 5px; }

.descarga-form { margin-top: 6px; }
.enlace-descarga {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: none; padding: 0;
    font: inherit; font-size: 13px; font-weight: 600;
    color: var(--brand-dark); cursor: pointer;
}
.enlace-descarga:hover { text-decoration: underline; }

/* ── Página del expediente (chat protagonista, sin márgenes anchos) ── */
.seg-main { max-width: 1400px; margin: 0 auto; padding: 28px 24px 48px; }
@media (max-width: 600px) { .seg-main { padding: 12px 12px 32px; } }

.seg-resumen {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
    padding: 16px 24px; margin-bottom: 16px;
}
.seg-resumen-datos h2 { margin: 0; font-size: 18px; font-weight: 800; color: var(--navy); letter-spacing: -.3px; }
.seg-meta { display: flex; gap: 28px; margin: 0; }
.seg-meta dt { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.seg-meta dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--text); }
.seg-resumen-acciones { display: flex; align-items: center; gap: 12px; }
.btn-compacto { padding: 8px 14px; font-size: 13px; }

.seg-banner { margin: 0 0 16px; }

.seg-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
    align-items: start;
}
@media (max-width: 960px) { .seg-cols { grid-template-columns: 1fr; } }

.seg-chat { display: flex; flex-direction: column; }
.seg-chat-cabecera {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #fff, #fafbfd);
}
.seg-chat-cabecera h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--navy); }

.seg-hilo {
    padding: 20px 24px;
    display: flex; flex-direction: column; gap: 10px;
    min-height: 220px; max-height: 48vh;
    overflow-y: auto;
    background:
        radial-gradient(40rem 14rem at 90% -4rem, color-mix(in srgb, var(--brand) 5%, transparent), transparent 70%),
        #FCFDFE;
}
.seg-hilo .mensaje { max-width: 72%; }
.seg-vacio { margin: auto; text-align: center; }

/* Compositor: secciones claramente diferenciadas */
.composer {
    border-top: 1px solid var(--border);
    padding: 16px 24px 20px;
    display: grid; gap: 12px;
    background: #fff;
}
.composer-seccion {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    background: #fafbfd;
    transition: border-color .2s, background .2s;
}
.composer-seccion:focus-within { border-color: var(--brand); background: #fff; }
.composer-titulo {
    display: flex; align-items: center; gap: 7px;
    font-size: 12px; font-weight: 700; letter-spacing: .6px;
    text-transform: uppercase; color: var(--navy);
    margin-bottom: 10px;
}
.composer-titulo svg { color: var(--brand); flex: none; }
.composer-seccion textarea {
    width: 100%; border: none; background: transparent;
    padding: 0; min-height: 72px; resize: vertical;
    font-family: inherit; font-size: 15px; color: var(--text); line-height: 1.55;
}
.composer-seccion textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--anillo);
    border-color: var(--brand);
}
.dropzone-mini { padding: 16px 14px; background: #fff; }
.dropzone-mini strong { margin-top: 0; font-size: 13.5px; }
.dropzone-mini span { display: block; margin-top: 2px; }
.composer-envio { display: flex; justify-content: flex-end; }

.seg-lateral { display: grid; gap: 14px; }
.seg-lateral-caja { margin: 0; }

/* ── Modal "Ver denuncia" ── */
.modal-denuncia {
    border: none; padding: 0;
    width: min(760px, calc(100vw - 32px));
    max-height: min(82vh, 720px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background: var(--surface);
    color: var(--text);
}
/* Columna flex: cabecera y pie fijos, el cuerpo es la única zona con scroll */
.modal-denuncia[open] { display: flex; flex-direction: column; }
.modal-denuncia::backdrop { background: rgba(15, 45, 82, .45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.modal-cabecera {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #fff, #fafbfd);
    flex: none;
}
.modal-cabecera h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--navy); }
.modal-marca { display: flex; align-items: center; gap: 14px; }
.modal-logo { height: 40px; width: auto; }
.modal-pie {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 14px 24px;
    border-top: 1px solid var(--border);
    background: #fafbfd;
    flex: none;
}
.modal-cerrar {
    border: none; background: var(--bg); color: var(--muted);
    width: 32px; height: 32px; border-radius: 8px;
    font-size: 20px; line-height: 1; cursor: pointer;
    transition: all .2s;
}
.modal-cerrar:hover { background: var(--border); color: var(--navy); }
.modal-cuerpo { padding: 20px 24px 24px; overflow-y: auto; flex: 1; min-height: 0; }
.modal-cuerpo h4 {
    margin: 20px 0 8px; font-size: 12px; font-weight: 700;
    letter-spacing: .8px; text-transform: uppercase; color: var(--muted);
}
.ficha-denuncia { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
@media (max-width: 560px) { .ficha-denuncia { grid-template-columns: 1fr; } }
.ficha-denuncia dt {
    font-size: 11px; font-weight: 700; letter-spacing: .7px;
    text-transform: uppercase; color: var(--muted);
}
.ficha-denuncia dd { margin: 3px 0 0; font-size: 14px; line-height: 1.5; }
.texto-denuncia {
    margin: 0; padding: 14px 16px;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px; line-height: 1.6; white-space: pre-wrap;
}

/* Comunicaciones dentro del modal "Ver denuncia" */
.modal-comunicaciones { display: grid; gap: 10px; }
.modal-com {
    border-left: 1px solid var(--border);
    padding: 2px 0 2px 14px;
}
.modal-com-meta { display: block; font-size: 12px; color: var(--muted); }
.modal-com-meta strong { color: var(--navy); font-weight: 700; }
.modal-com p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; }
.modal-com .descarga-form {
    margin-top: 4px;
    display: flex; align-items: flex-start; gap: 8px;
}
.modal-com .descarga-form svg { flex: none; margin-top: 2px; }
.modal-com .descarga-texto { min-width: 0; }

/* Mensajes de error de campo (sustituyen al tooltip nativo) */
.campo-error {
    display: block; margin-top: 6px;
    font-size: 13px; font-weight: 600; color: var(--danger);
}

/* utilidades */
.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
}

/* ── Impresión del comprobante ── */
@media print {
    .site-header, .site-footer, .sidebar, .hero, .no-print { display: none !important; }
    body { background: #fff; }
    .card { border: none; box-shadow: none; }
}

/* Aviso de la confirmación: el acuse por correo no lleva el código */
.confirm-mail {
    /* Es una nota aparte del aviso en ámbar, no su continuación */
    margin: 22px auto 0;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    max-width: 520px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted, #5A6B7C);
}

/* Expediente cerrado: el hilo ya no admite mensajes */
.hilo-cerrado {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    /* Vive dentro de la tarjeta del hilo: necesita el mismo aire lateral
       que el resto de su contenido, y separarse del borde inferior. */
    margin: 16px 24px 20px;
    padding: 18px 20px;
    border: 1px solid #D5DCE9;
    border-radius: 14px;
    background: linear-gradient(180deg, #F7F9FC 0%, #EDF1F7 100%);
}
.hilo-cerrado-icono {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #D5DCE9;
    color: #3E4F73;
}
.hilo-cerrado strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1A2332;
}
.hilo-cerrado p {
    margin: 4px 0 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: #5A6B7C;
}

/* ── Guía del denunciante ────────────────────────────────────
   Documento largo dentro del canal. Se prefija todo con guia-
   para no colisionar con las clases del formulario. */
/* Misma columna de lectura que la página legal: se acota la tarjeta, no el
   párrafo, para que el texto llene el ancho en vez de dejar medio vacío. */
.guia { max-width: 860px; margin: 0 auto; }
.guia .card-body { padding: 36px 44px 44px; }
.guia-seccion + .guia-seccion { margin-top: 46px; }
.guia-seccion h2 {
    font-size: 25px; font-weight: 700; letter-spacing: -.4px;
    color: var(--navy); margin: 0 0 14px;
}
.guia-seccion h3 { font-size: 16px; font-weight: 700; color: var(--text); margin: 26px 0 6px; }
.guia-seccion p { line-height: 1.7; margin: 0 0 14px; }
.guia-lista { padding-left: 20px; margin: 0 0 14px; line-height: 1.7; }
.guia-lista li { margin-bottom: 6px; }
/* Nota legal de cierre: destacada como aviso, pero en gris, para que se lea
   sin competir con los avisos de contenido que hay dentro de la guía. */
.guia-cierre {
    display: flex; gap: 12px; align-items: flex-start;
    margin-top: 46px; padding: 16px 18px;
    background: var(--bg); border: 1px solid var(--border);
    border-left: 3px solid var(--muted); border-radius: var(--radius);
}
.guia-cierre-icono { flex: none; margin-top: 1px; color: var(--muted); }
.guia-cierre p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.65; }

.guia-etiquetas { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 20px; }
.guia-etiquetas li {
    font-size: 13.5px; color: var(--muted);
    border: 1px solid var(--border); border-radius: 999px; padding: 5px 13px;
}

.guia-dos { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 18px; margin: 20px 0; }
.guia-modalidad {
    border: 1px solid var(--border); border-top: 3px solid var(--brand-accion);
    border-radius: var(--radius); padding: 20px 22px; background: var(--surface);
}
.guia-modalidad h3 { margin: 0 0 6px; font-size: 16.5px; }
.guia-modalidad p { font-size: 14.5px; color: var(--muted); margin-bottom: 12px; }
.guia-modalidad ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.guia-modalidad li { margin-bottom: 5px; }

.guia-aviso {
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--bg); padding: 18px 20px; margin: 22px 0; max-width: none;
}
.guia-aviso-grave { background: #FFF8E1; border-color: #FFE082; }
.guia-rotulo {
    display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 7px;
}
.guia-aviso-grave .guia-rotulo { color: #8A5B00; }
.guia-aviso p { margin: 0; font-size: 14.5px; line-height: 1.7; }

.guia-pasos { display: flex; flex-direction: column; gap: 22px; margin-top: 22px; }
.guia-paso { display: grid; grid-template-columns: 2.6rem 1fr; gap: 16px; align-items: start; }
.guia-paso-num {
    width: 2.4rem; height: 2.4rem; display: grid; place-items: center;
    border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
    font-size: 13.5px; font-weight: 700; color: var(--brand-accion);
    font-variant-numeric: tabular-nums;
}
.guia-paso h3 { margin: 3px 0 6px; }
.guia-paso p { margin-bottom: 8px; }

.guia-codigo {
    border: 1.5px dashed var(--border); border-radius: var(--radius);
    background: var(--bg); padding: 22px; text-align: center; margin: 22px 0;
}
.guia-codigo code {
    display: block; font-size: clamp(16px, 3.4vw, 21px); font-weight: 700;
    letter-spacing: 1.2px; color: var(--navy); overflow-wrap: anywhere;
}
.guia-codigo .guia-pie { font-size: 13px; color: var(--muted); margin: 10px 0 0; max-width: none; }

.guia-plazos {
    display: flex; flex-direction: column; gap: 1px; margin: 22px 0;
    background: var(--border); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}
.guia-plazo {
    background: var(--surface); padding: 16px 20px;
    display: grid; grid-template-columns: 8rem 1fr; gap: 18px; align-items: baseline;
}
.guia-cuanto { font-weight: 700; color: var(--brand-accion); font-variant-numeric: tabular-nums; }
.guia-que { font-size: 14.5px; color: var(--muted); line-height: 1.65; }
.guia-que b { color: var(--text); }

.guia-estados { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-direction: column; gap: 9px; }
.guia-estados li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline; }
.guia-estado-nombre {
    font-size: 12.5px; font-weight: 600; white-space: nowrap;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 999px; padding: 4px 12px; color: var(--text);
}
.guia-glosa { font-size: 14.5px; color: var(--muted); }

.guia-faq { border-top: 1px solid var(--border); margin-top: 18px; }
.guia-faq details { border-bottom: 1px solid var(--border); }
.guia-faq summary {
    cursor: pointer; padding: 15px 0; font-weight: 600; font-size: 15.5px;
    list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.guia-faq summary::-webkit-details-marker { display: none; }
.guia-faq summary::after { content: "+"; color: var(--brand-accion); font-size: 20px; flex: none; }
.guia-faq details[open] summary::after { content: "–"; }
.guia-faq details p { padding-bottom: 15px; margin: 0; font-size: 14.5px; color: var(--muted); }

.guia-descarga { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border); }
.guia-descarga .btn { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 600px) {
    .guia .card-body { padding: 26px 20px 32px; }
    .guia-seccion h2 { font-size: 21px; }
    .guia-plazo, .guia-estados li { grid-template-columns: 1fr; gap: 4px; }
    .guia-estado-nombre { justify-self: start; }
}
