:root {
    --vino: #8f234b;
    --vino-oscuro: #60142f;
    --naranja: #f08a24;
    --naranja-claro: #ffc25e;
    --tinta: #16212f;
    --azul: #20364d;
    --humo: #edf1f5;
    --blanco: #ffffff;
    --texto: #314052;
    --muted: #657386;
    --borde: #d9e0e7;
    --sombra: 0 18px 42px rgba(22, 33, 47, .12);
    --radio: 1.25rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--blanco);
    color: var(--texto);
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

button, input { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; text-decoration: none; }

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

.contenedor { width: min(1160px, calc(100% - 2rem)); margin: 0 auto; }

.skip-link {
    position: fixed;
    z-index: 100;
    top: .75rem;
    left: .75rem;
    padding: .7rem 1rem;
    background: var(--blanco);
    color: var(--tinta);
    border-radius: .55rem;
    box-shadow: var(--sombra);
    transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(22, 33, 47, .09);
    backdrop-filter: blur(12px);
}

.barra-superior {
    min-height: 4.9rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.marca { display: inline-flex; align-items: center; gap: .7rem; flex-shrink: 0; }

.marca-sello {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    color: white;
    background: var(--vino);
    border-radius: 50%;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.marca strong, .marca small { display: block; line-height: 1.08; }
.marca strong { color: var(--tinta); font-size: .95rem; }
.marca small { color: var(--muted); font-size: .73rem; margin-top: .15rem; }

.navegacion { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-left: auto; }
.navegacion a { color: #4c5a6b; font-size: .88rem; font-weight: 700; }
.navegacion a:hover, .navegacion a:focus-visible { color: var(--vino); }

.boton-911 {
    display: inline-flex;
    align-items: baseline;
    gap: .35rem;
    padding: .55rem .8rem;
    background: #fff2f0;
    color: #a5261e;
    border: 1px solid #ffc8c2;
    border-radius: .65rem;
    font-size: .75rem;
    font-weight: 700;
}

.boton-911 strong { font-size: 1rem; }

.hero {
    color: var(--blanco);
    overflow: hidden;
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(circle at 87% 13%, rgba(240, 138, 36, .33), transparent 23rem),
        radial-gradient(circle at 90% 95%, rgba(143, 35, 75, .56), transparent 27rem),
        linear-gradient(115deg, #111d2b 0%, #20364d 55%, #273e56 100%);
}

.hero::before, .hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .11);
}

.hero::before { width: 31rem; height: 31rem; right: -12rem; top: -13rem; }
.hero::after { width: 18rem; height: 18rem; right: 9rem; bottom: -12rem; }

.hero-contenido { padding: 5.35rem 0 5.1rem; max-width: 850px; }

.etiquetas { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.45rem; }
.etiquetas span {
    padding: .36rem .68rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50rem;
    background: rgba(255, 255, 255, .11);
    color: #eff6ff;
    font-size: .78rem;
    font-weight: 700;
}

.sobrelinea {
    margin: 0 0 .65rem;
    color: var(--vino);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1.2;
    text-transform: uppercase;
}

.hero .sobrelinea { color: var(--naranja-claro); }

h1, h2, h3 { color: var(--tinta); margin-top: 0; }
h1, h2 { font-family: "Barlow Condensed", Impact, sans-serif; letter-spacing: -.015em; line-height: .98; }

h1 { max-width: 800px; margin-bottom: 1.15rem; color: white; font-size: clamp(3.15rem, 7vw, 5.9rem); font-weight: 800; }
h1 em { color: var(--naranja-claro); font-style: normal; }

.hero-texto { max-width: 700px; margin: 0; color: #e3ebf3; font-size: clamp(1.05rem, 2vw, 1.2rem); }

.hero-acciones { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.85rem; }

.boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 3rem;
    padding: .72rem 1.05rem;
    border: 1px solid transparent;
    border-radius: .7rem;
    font-weight: 800;
    font-size: .9rem;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.boton:hover { transform: translateY(-2px); }
.boton-principal { background: var(--naranja); color: #26190e; box-shadow: 0 10px 25px rgba(0,0,0,.16); }
.boton-principal:hover { background: #ff9c39; }
.boton-secundario { border-color: rgba(255, 255, 255, .32); color: white; background: rgba(255,255,255,.06); }
.boton-secundario:hover { background: rgba(255,255,255,.14); }
.boton-oscuro { margin-top: 1.2rem; background: var(--tinta); color: white; }
.boton-oscuro:hover { background: var(--vino); }

.nota-hero { margin: 1.25rem 0 0; color: #b9c9d7; font-size: .79rem; }

.franja-rapida { background: var(--vino); color: white; }
.acciones-rapidas { display: grid; grid-template-columns: repeat(4, 1fr); }
.acciones-rapidas > div { min-height: 6.6rem; padding: 1.1rem 1rem 1.1rem 3.2rem; position: relative; border-right: 1px solid rgba(255,255,255,.2); }
.acciones-rapidas > div:first-child { border-left: 1px solid rgba(255,255,255,.2); }
.acciones-rapidas span { position: absolute; top: 1.18rem; left: .85rem; color: var(--naranja-claro); font-family: "Barlow Condensed", sans-serif; font-size: 1.85rem; font-weight: 800; line-height: 1; }
.acciones-rapidas strong, .acciones-rapidas small { display: block; }
.acciones-rapidas strong { font-size: .9rem; }
.acciones-rapidas small { margin-top: .15rem; color: #f3d9e5; font-size: .74rem; line-height: 1.32; }

.seccion { padding: 5.25rem 0; }
.seccion-protocolos { background: #f8fafc; }

.encabezado-seccion { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 1.65rem; }
.encabezado-seccion > div { max-width: 700px; }
h2 { margin-bottom: .75rem; font-size: clamp(2.2rem, 4.3vw, 3.45rem); font-weight: 800; }
.encabezado-seccion p:not(.sobrelinea), .bloque-informativo > p, .calendario-contenido > div > p { margin: 0; color: var(--muted); }

.buscador { display: flex; align-items: center; width: min(100%, 17.5rem); min-height: 3rem; padding: 0 .8rem; color: var(--muted); background: white; border: 1px solid var(--borde); border-radius: .75rem; box-shadow: 0 5px 18px rgba(23, 35, 50, .05); }
.buscador span { margin-right: .45rem; font-size: 1.4rem; }
.buscador input { width: 100%; outline: 0; border: 0; background: transparent; color: var(--tinta); font-size: .88rem; }
.buscador:focus-within { border-color: var(--vino); box-shadow: 0 0 0 3px rgba(143,35,75,.12); }

.filtros { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.25rem; }
.filtro { padding: .58rem .82rem; cursor: pointer; border: 1px solid var(--borde); border-radius: 50rem; background: white; color: #526173; font-size: .8rem; font-weight: 700; transition: all .15s ease; }
.filtro:hover, .filtro:focus-visible { border-color: var(--vino); color: var(--vino); }
.filtro.activo { border-color: var(--vino); background: var(--vino); color: white; }

.rejilla-protocolos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tarjeta-protocolo { display: flex; flex-direction: column; min-height: 16.4rem; padding: 1.3rem; background: white; border: 1px solid #e0e6ec; border-radius: var(--radio); box-shadow: 0 5px 14px rgba(22,33,47,.035); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.tarjeta-protocolo:hover { transform: translateY(-4px); border-color: rgba(143,35,75,.35); box-shadow: var(--sombra); }
.tarjeta-icono { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; margin-bottom: .85rem; background: #f4e7ec; border-radius: .8rem; font-size: 1.4rem; }
.categoria { margin: 0 0 .42rem; color: var(--vino); font-size: .67rem; font-weight: 800; letter-spacing: .08em; line-height: 1.2; text-transform: uppercase; }
.tarjeta-protocolo h3 { margin-bottom: .46rem; font-size: 1.05rem; line-height: 1.22; }
.tarjeta-protocolo p:not(.categoria) { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.42; }
.enlace-tarjeta { width: fit-content; margin-top: auto; padding: .85rem 0 0; cursor: pointer; border: 0; background: transparent; color: var(--vino); font-size: .83rem; font-weight: 800; text-align: left; }
.enlace-tarjeta span { margin-left: .25rem; transition: transform .15s ease; display: inline-block; }
.enlace-tarjeta:hover span { transform: translateX(4px); }
.sin-resultados { margin: 1rem 0 0; color: var(--muted); }

.seccion-proteccion { background: var(--tinta); color: white; }
.dos-columnas { display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: 4.25rem; }
.bloque-informativo { position: sticky; top: 6.5rem; }
.bloque-informativo .sobrelinea { color: var(--naranja-claro); }
.bloque-informativo h2 { color: white; }
.bloque-informativo > p { color: #c4d0dc; }
.enlace-simple { display: inline-flex; gap: .4rem; margin-top: 1.3rem; color: var(--naranja-claro); font-size: .9rem; font-weight: 800; }
.enlace-simple:hover span { transform: translateX(4px); }
.enlace-simple span { transition: transform .15s ease; }

.rejilla-proteccion { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; }
.tarjeta-proteccion { display: flex; gap: .9rem; min-height: 9.8rem; padding: 1.15rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 1rem; }
.tarjeta-proteccion > span { flex: 0 0 auto; font-size: 1.55rem; }
.tarjeta-proteccion h3 { margin-bottom: .32rem; color: white; font-size: 1rem; line-height: 1.18; }
.tarjeta-proteccion p { margin: 0; color: #c3ceda; font-size: .8rem; line-height: 1.4; }

.seccion-calendario { background: #fbf7f8; }
.calendario-contenido { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 3.7rem; }
.lista-calendario { display: grid; gap: .5rem; margin: 1.4rem 0 0; padding: 0; list-style: none; color: #536174; font-size: .9rem; }
.lista-calendario span { display: inline-block; width: 1.45rem; color: var(--vino); font-weight: 800; }
.imagen-calendario { overflow: hidden; border-radius: 1.25rem; background: white; box-shadow: var(--sombra); }
.imagen-calendario img { width: 100%; aspect-ratio: 1 / 1.38; object-fit: cover; object-position: top; transition: transform .35s ease; }
.imagen-calendario:hover img { transform: scale(1.025); }

.seccion-documentos { background: white; }
.encabezado-documentos { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 1.6rem; }
.encabezado-documentos > div { max-width: 500px; }
.encabezado-documentos > p { max-width: 480px; margin: 0; color: var(--muted); font-size: .92rem; }
.rejilla-documentos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.rejilla-documentos article { min-height: 14.25rem; padding: 1.45rem; border: 1px solid var(--borde); border-radius: var(--radio); }
.rejilla-documentos article > span:first-child { display: block; margin-bottom: .75rem; font-size: 1.55rem; }
.rejilla-documentos h3 { margin-bottom: .45rem; font-size: 1.08rem; line-height: 1.18; }
.rejilla-documentos p { min-height: 3.9rem; margin: 0 0 .85rem; color: var(--muted); font-size: .84rem; line-height: 1.42; }
.estado-documento { color: var(--vino); font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }

.aviso-legal { padding: 1.3rem 0; background: #f6ede5; border-top: 1px solid #eedccc; border-bottom: 1px solid #eedccc; }
.aviso-legal .contenedor { display: flex; align-items: flex-start; gap: .75rem; max-width: 1000px; }
.aviso-legal span { font-size: 1.25rem; }
.aviso-legal p { margin: 0; color: #5d5046; font-size: .82rem; }

.site-footer { padding: 2.25rem 0; background: #111c29; color: #cad4df; }
.footer-contenido { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.footer-contenido strong { color: white; }
.footer-contenido p { margin: .2rem 0 0; color: #93a3b4; font-size: .77rem; }

.modal-protocolo { width: min(39rem, calc(100% - 2rem)); padding: 0; overflow: hidden; color: var(--texto); border: 0; border-radius: 1.15rem; box-shadow: 0 24px 70px rgba(9,16,26,.35); }
.modal-protocolo::backdrop { background: rgba(10,19,31,.68); backdrop-filter: blur(3px); }
.modal-contenido { position: relative; padding: 2rem; }
.cerrar-modal { position: absolute; top: .75rem; right: .75rem; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; cursor: pointer; border: 0; border-radius: 50%; background: var(--humo); color: var(--tinta); font-size: 1.5rem; line-height: 1; }
.cerrar-modal:hover { background: #dce4ec; }
.modal-icono { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; margin-bottom: 1rem; background: #f4e7ec; border-radius: .85rem; font-size: 1.65rem; }
.modal-contenido h2 { margin-bottom: .75rem; font-size: clamp(2rem, 5vw, 3rem); }
.modal-resumen { margin: 0; color: var(--muted); }
.modal-contenido h3 { margin: 1.5rem 0 .55rem; font-size: 1.02rem; }
.modal-contenido ol { display: grid; gap: .7rem; margin: 0; padding: 0; counter-reset: pasos; list-style: none; }
.modal-contenido li { position: relative; min-height: 2.2rem; padding: .42rem 0 .42rem 2.75rem; counter-increment: pasos; border-bottom: 1px solid #edf0f3; font-size: .91rem; }
.modal-contenido li::before { content: counter(pasos); position: absolute; top: .33rem; left: 0; display: grid; place-items: center; width: 1.85rem; height: 1.85rem; border-radius: 50%; background: var(--vino); color: white; font-size: .75rem; font-weight: 800; }
.modal-aviso { margin: 1.2rem 0 0; padding: .8rem .9rem; background: #fbf4e6; color: #705b3a; border-left: 4px solid var(--naranja); font-size: .79rem; }

button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(240,138,36,.7); outline-offset: 3px; }

@media (max-width: 900px) {
    .navegacion { display: none; }
    .boton-911 { margin-left: auto; }
    .acciones-rapidas { grid-template-columns: repeat(2, 1fr); }
    .acciones-rapidas > div:nth-child(3) { border-left: 1px solid rgba(255,255,255,.2); }
    .rejilla-protocolos { grid-template-columns: repeat(2, 1fr); }
    .dos-columnas, .calendario-contenido { grid-template-columns: 1fr; gap: 2.2rem; }
    .bloque-informativo { position: static; }
    .calendario-contenido .imagen-calendario { max-width: 630px; }
}

@media (max-width: 640px) {
    .contenedor { width: min(100% - 1.25rem, 1160px); }
    .barra-superior { min-height: 4.25rem; gap: .7rem; }
    .marca-sello { width: 2rem; height: 2rem; font-size: .59rem; }
    .marca strong { font-size: .79rem; }
    .marca small { font-size: .63rem; }
    .boton-911 { padding: .42rem .55rem; font-size: .65rem; }
    .boton-911 strong { font-size: .9rem; }
    .hero-contenido { padding: 3.8rem 0 3.55rem; }
    h1 { font-size: clamp(3rem, 15vw, 4.3rem); }
    .hero-texto { font-size: 1rem; }
    .hero-acciones .boton { width: 100%; }
    .acciones-rapidas > div { min-height: 6.95rem; padding: 1rem .55rem 1rem 2.75rem; }
    .acciones-rapidas span { left: .65rem; font-size: 1.55rem; }
    .acciones-rapidas strong { font-size: .79rem; }
    .acciones-rapidas small { font-size: .68rem; }
    .seccion { padding: 3.5rem 0; }
    .encabezado-seccion, .encabezado-documentos { display: block; }
    .buscador { width: 100%; margin-top: 1.15rem; }
    .rejilla-protocolos, .rejilla-proteccion, .rejilla-documentos { grid-template-columns: 1fr; }
    .tarjeta-protocolo { min-height: 0; }
    .tarjeta-proteccion { min-height: 0; }
    .encabezado-documentos > p { margin-top: .75rem; }
    .rejilla-documentos article { min-height: 0; }
    .rejilla-documentos p { min-height: 0; }
    .footer-contenido { display: block; }
    .footer-contenido > p { margin-top: .9rem; }
    .modal-contenido { padding: 1.6rem 1.2rem; }
}
