/* Sitio web de AGENCRUZ. Paleta y formas tomadas del brochure (Recursos/Brochur AgenCruz.pdf). */

:root {
    /* "only" evita el oscurecimiento automático de Chrome y Edge, que dejaría sin leer el "AGEN" del logo. */
    color-scheme: only light;
    --rojo: #e30613;
    --rojo-oscuro: #b30510;
    --rojo-suave: #fdecec;
    --tinta: #1d1d1b;
    --texto: #3b3b38;
    --gris: #6b6b66;
    --gris-medio: #8a8a85;
    --gris-claro: #f3f3f1;
    --borde: #e4e4e0;
    --blanco: #ffffff;

    --letra-titulo: "Exo 2", "Segoe UI", system-ui, sans-serif;
    --letra-texto: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
    --letra-etiqueta: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;

    --ancho: 1200px;
    --margen: clamp(1rem, 4vw, 2.5rem);
    --alto-cabecera: 76px;
    --radio: 14px;
    --sombra: 0 10px 30px rgba(29, 29, 27, 0.08);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--alto-cabecera) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--blanco);
    color: var(--texto);
    font-family: var(--letra-texto);
    font-size: 1.0625rem;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    color: var(--tinta);
    font-family: var(--letra-titulo);
    line-height: 1.15;
}

p {
    margin: 0 0 1rem;
}

figure {
    margin: 0;
}

:focus-visible {
    outline: 3px solid var(--rojo);
    outline-offset: 3px;
}

.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icono {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Los íconos de redes combinan trazo y relleno. */
.relleno {
    fill: currentColor;
    stroke: none;
}

.contenedor {
    width: 100%;
    max-width: calc(var(--ancho) + 2 * var(--margen));
    margin-inline: auto;
    padding-inline: var(--margen);
}

.saltar {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    background: var(--tinta);
    color: var(--blanco);
}

.saltar:focus {
    top: 1rem;
}

/* ---------- Piezas comunes ---------- */

.etiqueta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
    color: var(--rojo);
    font-family: var(--letra-etiqueta);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.etiqueta::before {
    content: "";
    width: 28px;
    height: 3px;
    border-radius: 3px;
    background: currentColor;
}

.etiqueta--clara {
    color: #ff6b73;
}

.titulo {
    margin-bottom: 1.25rem;
    font-size: clamp(1.75rem, 3.4vw, 2.6rem);
    font-weight: 300;
    letter-spacing: -0.01em;
}

.titulo strong {
    color: var(--rojo);
    font-weight: 700;
}

.titulo--claro {
    color: var(--blanco);
}

.titulo--claro strong {
    color: #ff4f59;
}

@media (max-width: 480px) {
    .etiqueta {
        font-size: 0.85rem;
        letter-spacing: 0.08em;
    }
}

.subtitulo {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.seccion {
    padding-block: clamp(4rem, 9vw, 7rem);
}

.acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.7rem 1.4rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--letra-etiqueta);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.boton:hover {
    transform: translateY(-1px);
}

.boton--rojo {
    background: var(--rojo);
    color: var(--blanco);
    box-shadow: 0 6px 18px rgba(227, 6, 19, 0.28);
}

.boton--rojo:hover {
    background: var(--rojo-oscuro);
}

.boton--linea {
    border-color: var(--tinta);
    color: var(--tinta);
}

.boton--linea:hover {
    background: var(--tinta);
    color: var(--blanco);
}

.boton--blanco {
    background: var(--blanco);
    color: var(--rojo);
}

.boton--blanco:hover {
    background: var(--tinta);
    color: var(--blanco);
}

.boton--linea-clara {
    border-color: rgba(255, 255, 255, 0.85);
    color: var(--blanco);
}

.boton--linea-clara:hover {
    background: var(--blanco);
    color: var(--rojo);
}

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

.lista li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.6rem;
}

.lista li::before {
    content: "";
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rojo);
}

/* ---------- Cabecera ---------- */

.cabecera {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--blanco);
    border-bottom: 1px solid transparent;
    transition: box-shadow 0.25s, border-color 0.25s;
}

.cabecera.con-sombra {
    border-color: var(--borde);
    box-shadow: 0 6px 20px rgba(29, 29, 27, 0.06);
}

.cabecera__fila {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: var(--alto-cabecera);
}

.cabecera__logo img {
    width: auto;
    height: 46px;
}

.menu {
    display: flex;
    gap: 1.6rem;
    margin-left: auto;
}

.menu a {
    position: relative;
    padding-block: 0.4rem;
    color: var(--tinta);
    font-family: var(--letra-etiqueta);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
}

.menu a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--rojo);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s;
}

.menu a:hover::after,
.menu a.activo::after {
    transform: scaleX(1);
}

.boton--ingresar {
    min-height: 44px;
    padding: 0.55rem 1.15rem;
    font-size: 0.98rem;
}

.solo-angosto {
    display: none;
}

.menu__abrir {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--borde);
    border-radius: 10px;
    background: var(--blanco);
    color: var(--tinta);
    cursor: pointer;
}

.menu__abrir .icono {
    width: 24px;
    height: 24px;
}

.icono--cerrar {
    display: none;
}

.menu-abierto .icono--abrir {
    display: none;
}

.menu-abierto .icono--cerrar {
    display: block;
}

@media (max-width: 1080px) {
    .menu {
        gap: 1.1rem;
    }
}

@media (max-width: 960px) {
    :root {
        --alto-cabecera: 66px;
    }

    .cabecera__logo img {
        height: 38px;
    }

    /* El botón del menú va antes del <nav> en el HTML (orden del foco); aquí se muestra al final. */
    .boton--ingresar {
        order: 1;
        margin-left: auto;
    }

    .menu__abrir {
        display: inline-flex;
        order: 2;
    }

    /* Sin JavaScript el menú queda visible debajo del logo. */
    html:not(.js) .cabecera__fila {
        flex-wrap: wrap;
    }

    html:not(.js) .menu {
        order: 3;
        width: 100%;
        flex-wrap: wrap;
        margin: 0 0 0.75rem;
    }

    html:not(.js) .menu__abrir {
        display: none;
    }

    /* Sin JavaScript la cabecera mide más del doble: deja de ser fija. */
    html:not(.js) {
        scroll-padding-top: 12px;
    }

    html:not(.js) .cabecera {
        position: relative;
    }

    .js .menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0.5rem var(--margen) 1.25rem;
        /* Con poca altura (celular en horizontal o zoom) el menú se desplaza por dentro. */
        max-height: calc(100vh - var(--alto-cabecera));
        max-height: calc(100dvh - var(--alto-cabecera));
        overflow-y: auto;
        overscroll-behavior: contain;
        background: var(--blanco);
        border-bottom: 1px solid var(--borde);
        box-shadow: 0 16px 30px rgba(29, 29, 27, 0.1);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    }

    .js .menu a {
        padding-block: 0.9rem;
        border-bottom: 1px solid var(--borde);
    }

    .js .menu a::after {
        display: none;
    }

    .menu-abierto .menu {
        visibility: visible;
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 480px) {
    .solo-ancho {
        display: none;
    }

    .solo-angosto {
        display: inline;
    }

    .cabecera__fila {
        gap: 0.6rem;
    }

    .cabecera__logo img {
        height: 34px;
    }

    .boton--ingresar {
        padding-inline: 0.9rem;
    }
}

/* ---------- Portada ---------- */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(88vh, 820px);
    padding-block: 4rem clamp(7rem, 14vw, 11rem);
    overflow: hidden;
    background: var(--blanco);
}

.hero__foto {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 58%;
}

.hero__foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 30%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 32%);
    mask-image: linear-gradient(to right, transparent 0%, #000 32%);
}

.hero__cuerpo {
    position: relative;
    z-index: 2;
}

.hero__cuerpo > * {
    max-width: 36rem;
}

.hero__titulo {
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero__fino {
    display: block;
    color: var(--gris);
    font-size: clamp(2.4rem, 5.4vw, 4.6rem);
    white-space: nowrap;
    font-weight: 200;
    line-height: 0.98;
    letter-spacing: -0.01em;
}

.hero__fuerte {
    display: block;
    margin-top: 0.7rem;
    color: var(--tinta);
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.hero__texto {
    max-width: 30rem;
    margin-bottom: 2rem;
    font-size: 1.15rem;
}

/* En escritorio angosto el párrafo no debe entrar en la foto. */
@media (min-width: 961px) {
    .hero__texto {
        max-width: min(30rem, 38vw);
    }
}

.hero__curva {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    z-index: 1;
    width: 100%;
    height: clamp(90px, 15vw, 220px);
}

.curva-gris {
    fill: #c9c9c5;
}

.curva-roja {
    fill: var(--rojo);
}

.curva-blanca {
    fill: var(--gris-claro);
}

/* Mismo punto de quiebre que el menú: por debajo, la foto va arriba del texto. */
@media (max-width: 960px) {
    .hero {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        padding-top: 0;
    }

    .hero__foto {
        position: relative;
        width: 100%;
        height: 46vw;
        min-height: 220px;
        margin-bottom: 1.75rem;
    }

    .hero__foto img {
        -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
    }
}

/* ---------- Cifras ---------- */

.cifras {
    background: var(--gris-claro);
    padding-block: 0 2.5rem;
}

.cifras__grilla {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.cifra {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.2rem 1.25rem;
    border-radius: var(--radio);
    background: var(--blanco);
    box-shadow: var(--sombra);
}

.cifra strong {
    color: var(--rojo);
    font-family: var(--letra-titulo);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
}

.cifra span {
    color: var(--tinta);
    font-family: var(--letra-etiqueta);
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .cifras__grilla {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 420px) {
    .cifra {
        padding: 1rem;
    }

    .cifra strong {
        font-size: 2.1rem;
    }

    .cifra span {
        font-size: 0.92rem;
    }
}

/* En los celulares más angostos el número va sobre el texto para que las dos columnas quepan. */
@media (max-width: 340px) {
    .cifra {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
}

/* ---------- Nosotros ---------- */

.nosotros__grilla {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
}

.nosotros__foto {
    position: relative;
}

.nosotros__foto::before {
    content: "";
    position: absolute;
    right: -18px;
    bottom: -18px;
    width: 55%;
    height: 60%;
    border-radius: 0 0 160px 0;
    background: var(--rojo);
}

.nosotros__foto img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radio) var(--radio) 160px var(--radio);
}

.destacado {
    color: var(--tinta);
    font-size: 1.22rem;
    font-weight: 500;
}

.mv {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: clamp(3rem, 7vw, 5rem);
}

.mv__tarjeta {
    position: relative;
    padding: 2rem 2rem 1.25rem;
    overflow: hidden;
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    background: var(--blanco);
}

.mv__tarjeta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 64px;
    height: 5px;
    background: var(--rojo);
}

.mv__tarjeta h3 {
    margin-bottom: 0.75rem;
    color: var(--rojo);
    font-size: 1.5rem;
    font-weight: 600;
}

.mv__tarjeta--oscura {
    border-color: var(--tinta);
    background: var(--tinta);
    color: #d6d6d2;
}

.mv__tarjeta--oscura h3 {
    color: var(--blanco);
}

@media (max-width: 820px) {
    .nosotros__grilla,
    .mv {
        grid-template-columns: 1fr;
    }

    .nosotros__foto {
        margin-right: 18px;
    }
}

/* ---------- Valores ---------- */

.valores {
    background: var(--gris-claro);
}

/* El rojo de marca no llega a 4,5:1 sobre el gris claro en texto pequeño. */
.valores .etiqueta,
.oficinas .etiqueta {
    color: var(--rojo-oscuro);
}

.valores__grilla {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
}

.valores__lista {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.valor {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.3rem;
    border-radius: var(--radio);
    background: var(--blanco);
    box-shadow: var(--sombra);
}

.valor__icono {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: none;
    border-radius: 50%;
    background: var(--rojo-suave);
    color: var(--rojo);
}

.valor__icono .icono {
    width: 28px;
    height: 28px;
}

.valor h3 {
    margin-bottom: 0.2rem;
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
}

.valor p {
    margin: 0;
}

.valores__foto img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50% 50% var(--radio) 50%;
    box-shadow: 18px 18px 0 var(--rojo);
}

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

    .valores__foto {
        order: -1;
        /* Ancho fijo: centrado con margen automático mediría 0 mientras la foto carga. */
        width: 100%;
        max-width: 360px;
        margin-inline: auto;
        padding-right: 18px;
    }
}

/* ---------- Servicios ---------- */

.servicios {
    position: relative;
    padding-top: 0;
}

.servicios__banda {
    height: clamp(180px, 26vw, 340px);
    margin-bottom: -4rem;
    overflow: hidden;
    border-radius: 0 0 50% 50% / 0 0 22% 22%;
}

.servicios__banda img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.servicios__cabeza {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 900px;
    margin-bottom: 2.5rem;
    padding: 1.75rem 2rem 1rem;
    border-radius: var(--radio);
    background: var(--blanco);
    box-shadow: var(--sombra);
}

.anillo {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    flex: none;
    border-radius: 50%;
    background: conic-gradient(var(--rojo) 0 50%, var(--gris-medio) 50% 100%);
}

.anillo__centro {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border: 2px solid var(--rojo);
    border-radius: 50%;
    background: var(--blanco);
    color: var(--rojo);
}

.anillo__centro .icono {
    width: 34px;
    height: 34px;
    stroke-width: 2.2;
}

.despachos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.despacho {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    background: var(--blanco);
    transition: border-color 0.2s, box-shadow 0.2s, translate 0.2s;
}

/* Se usa translate (y no transform) para no chocar con la animación de entrada. */
.despacho:hover {
    border-color: var(--rojo);
    box-shadow: var(--sombra);
    translate: 0 -2px;
}

/* Importaciones y Donaciones ocupan dos columnas para completar las filas. */
.despacho--ancho,
.despacho:last-child {
    grid-column: span 2;
}

.despacho__numero {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    flex: none;
    border-radius: 50%;
    background: var(--rojo);
    color: var(--blanco);
    font-family: var(--letra-etiqueta);
    font-size: 1.35rem;
    font-weight: 600;
}

.despacho:nth-child(even) .despacho__numero {
    background: var(--gris);
}

.despacho h3 {
    font-family: var(--letra-etiqueta);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.despacho p {
    margin: 0.1rem 0 0;
    color: var(--gris);
    font-size: 0.95rem;
    line-height: 1.35;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
}

.chips li {
    padding: 0.15rem 0.7rem;
    border-radius: 999px;
    background: var(--rojo-suave);
    color: var(--rojo-oscuro);
    font-family: var(--letra-etiqueta);
    font-size: 0.95rem;
    font-weight: 500;
}

@media (max-width: 960px) {
    .despachos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .servicios__banda {
        margin-bottom: -2.5rem;
    }

    .servicios__cabeza {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem 1.25rem 0.5rem;
    }

    .anillo {
        width: 80px;
        height: 80px;
    }

    .anillo__centro {
        width: 60px;
        height: 60px;
    }

    .anillo__centro .icono {
        width: 26px;
        height: 26px;
    }

    .despachos {
        grid-template-columns: 1fr;
    }

    .despacho--ancho,
    .despacho:last-child {
        grid-column: auto;
    }
}

/* ---------- Asesoramiento ---------- */

.asesoria {
    position: relative;
    overflow: hidden;
    background: var(--tinta);
    color: #d6d6d2;
}

.asesoria__fondo {
    position: absolute;
    inset: 0 0 0 42%;
}

.asesoria__fondo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    -webkit-mask-image: linear-gradient(to left, #000 40%, transparent 100%);
    mask-image: linear-gradient(to left, #000 40%, transparent 100%);
}

.asesoria__grilla {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.asesoria__intro {
    grid-column: 1 / -1;
    max-width: 640px;
    margin-bottom: 1rem;
}

.asesoria__tarjeta {
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radio);
    background: rgba(29, 29, 27, 0.78);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.asesoria__tarjeta h3 {
    margin-bottom: 1rem;
    color: var(--blanco);
    font-size: 1.35rem;
    font-weight: 600;
}

.asesoria__icono {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 1.1rem;
    border-radius: 50%;
    background: var(--rojo);
    color: var(--blanco);
}

.asesoria__icono .icono {
    width: 28px;
    height: 28px;
}

@media (max-width: 820px) {
    .asesoria__fondo {
        inset: 0 0 60% 0;
    }

    .asesoria__fondo img {
        /* Más tenue que en escritorio: aquí la foto queda detrás de la etiqueta y del título. */
        opacity: 0.12;
        -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
    }

    .asesoria__grilla {
        grid-template-columns: 1fr;
    }

    .asesoria__tarjeta {
        padding: 1.5rem;
    }
}

/* ---------- Jurisdicciones ---------- */

.jurisdicciones__cabeza {
    max-width: 760px;
    margin-bottom: 2.5rem;
}

.jurisdicciones__grilla {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
    gap: clamp(2rem, 5vw, 4rem);
}

.mapa img {
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
}

.regionales {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.regional {
    overflow: hidden;
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    background: var(--blanco);
}

.regional h4 {
    padding: 0.85rem 1.1rem;
    background: var(--rojo);
    color: var(--blanco);
    font-family: var(--letra-etiqueta);
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
}

.regional h4 span {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.regional ul {
    margin: 0;
    padding: 0.3rem 0;
    list-style: none;
}

.regional li {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    padding: 0.5rem 1.1rem;
    line-height: 1.3;
}

.regional li:nth-child(even) {
    background: var(--gris-claro);
}

.regional b {
    min-width: 2.4em;
    color: var(--rojo);
    font-family: var(--letra-etiqueta);
    font-size: 1.05rem;
    font-weight: 600;
}

.regional li:nth-child(even) b {
    color: var(--rojo-oscuro);
}

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

    .mapa img {
        max-width: 420px;
    }
}

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

/* ---------- Oficinas ---------- */

.oficinas {
    background: var(--gris-claro);
}

.oficinas__grilla {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1rem;
}

.oficina {
    position: relative;
    padding: 1.6rem 1.5rem 1rem;
    border-top: 4px solid var(--gris-medio);
    border-radius: var(--radio);
    background: var(--blanco);
    box-shadow: var(--sombra);
}

.oficina--matriz {
    border-top-color: var(--rojo);
}

.oficina__marca {
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.1rem 0.65rem;
    border-radius: 999px;
    background: var(--rojo);
    color: var(--blanco);
    font-family: var(--letra-etiqueta);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.oficina__marca--gris {
    background: var(--gris-claro);
    color: var(--gris);
}

.oficina h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.oficina__dato {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.7rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.oficina__dato .icono {
    margin-top: 0.1em;
    color: var(--rojo);
}

.oficina__dato a {
    color: var(--tinta);
    font-weight: 500;
    text-decoration: none;
}

.oficina__dato a:hover {
    color: var(--rojo);
    text-decoration: underline;
}

@media (max-width: 960px) {
    .oficinas__grilla {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ---------- Contacto ---------- */

.contacto {
    position: relative;
    padding-block: clamp(3rem, 7vw, 4.5rem);
    overflow: hidden;
    background: linear-gradient(120deg, var(--rojo) 0%, var(--rojo-oscuro) 100%);
    color: var(--blanco);
}

.contacto::before {
    content: "";
    position: absolute;
    top: -60%;
    right: -10%;
    width: 60%;
    height: 220%;
    border: 36px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

.contacto__fila {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 3rem;
}

.contacto h2 {
    margin-bottom: 0.5rem;
    color: var(--blanco);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 600;
}

.contacto p {
    margin: 0;
    font-size: 1.12rem;
}

/* El anillo rojo no se ve sobre el fondo rojo. */
.contacto :focus-visible {
    outline-color: var(--blanco);
}

@media (max-width: 480px) {
    .contacto .boton {
        width: 100%;
        white-space: normal;
    }
}

/* ---------- Pie ---------- */

.pie {
    background: var(--tinta);
    color: #b9b9b4;
    font-size: 0.98rem;
}

.pie__grilla {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1.1fr;
    gap: 2.5rem;
    padding-block: 3.5rem 2.5rem;
}

.pie h2 {
    margin-bottom: 1rem;
    color: var(--blanco);
    font-family: var(--letra-etiqueta);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pie__marca img {
    width: 190px;
    margin-bottom: 1rem;
}

.pie__marca p {
    max-width: 22rem;
}

.pie__menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
}

.pie__menu a {
    text-decoration: none;
}

.pie__menu a:hover {
    color: var(--blanco);
    text-decoration: underline;
}

.pie__acceso p {
    margin-bottom: 1rem;
}

.redes {
    margin-top: 1.75rem;
}

.redes a {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-right: 0.35rem;
    border-radius: 50%;
    background: var(--blanco);
    color: var(--rojo);
    transition: background-color 0.2s, color 0.2s;
}

.redes a:hover {
    background: var(--rojo);
    color: var(--blanco);
}

.pie__linea {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.pie__base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    padding-block: 1.25rem;
    font-size: 0.9rem;
}

.pie__base p {
    margin: 0;
}

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

    .pie__marca {
        grid-column: 1 / -1;
    }
}

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

/* ---------- Animación al desplazarse ---------- */

.js .aparecer {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .aparecer.visible {
    opacity: 1;
    transform: none;
}

/* Los despachos también animan el efecto al pasar el cursor. */
.js .despacho.aparecer {
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.2s, box-shadow 0.2s, translate 0.2s;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }

    .js .aparecer {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Impresión ---------- */

@media print {
    /* Las piezas animadas se imprimen aunque no se hayan visto en pantalla. */
    .js .aparecer {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .cabecera {
        position: static;
        box-shadow: none;
    }

    .saltar,
    .menu__abrir {
        display: none !important;
    }

    /* Fondos de color bajo texto claro: se imprimen aunque "Gráficos de fondo" esté desactivado. */
    .boton,
    .despacho__numero,
    .regional h4,
    .oficina__marca,
    .mv__tarjeta--oscura,
    .asesoria,
    .contacto,
    .pie {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .valor,
    .despacho,
    .mv__tarjeta,
    .asesoria__tarjeta,
    .regional,
    .oficina {
        break-inside: avoid;
    }

    /* Cada título queda en la misma hoja que su etiqueta y que lo que le sigue. */
    .titulo {
        break-before: avoid;
    }

    .titulo,
    .subtitulo {
        break-after: avoid;
    }
}
