/* Diseno "Territorio" (J): portada a pantalla completa, serif con enfasis amarillo, accesos flotantes, mosaico de fotos */
:root {
    --terracota: #2f5d3a;      /* color principal (nombre conservado por compatibilidad) */
    --terracota-osc: #244a2e;
    --oscuro: #1c2a22;
    --amarillo: #e9b95a;
    --ocre: #e9b95a;
    --barro: #b5532a;
    --rio: #3b6bb5;
    --verde: #2f5d3a;
    --arena: #ece8dc;
    --arena-borde: #dcd6c6;
    --crema: #fbfaf6;
    --texto: #1c2a22;
    --texto-suave: #5f6d66;
    --dorado-tenue: #8a6d3b;
    --fondo: #f6f4ee;
    --ancho: 1600px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--texto);
    background: var(--fondo);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracota); }

h1, h2, h3 {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 900;
    color: var(--texto);
    line-height: 1.1;
    text-wrap: balance;
}
h1 em, h2 em { font-style: italic; color: var(--amarillo); }

.contenedor {
    width: 100%;
    max-width: var(--ancho);
    margin-inline: auto;
    padding-inline: 16px;
}

/* ---------- Cabecera ---------- */
.cabecera { background: var(--oscuro); color: #fff; position: relative; z-index: 30; }
.cabecera-marca {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 12px;
}
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; color: #fff; }
.marca img { border-radius: 50%; box-shadow: 0 0 0 2px rgb(255 255 255 / .5); }
.marca strong { display: block; font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.5rem; line-height: 1.1; color: #fff; }
.marca small { display: block; margin-top: 2px; color: rgb(255 255 255 / .92); font-size: .84rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.menu ul { list-style: none; margin: 0; padding: 0; }
.menu > ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 2px; }
.menu li { position: relative; }
.menu a {
    display: block;
    padding: 10px 8px;
    border-radius: 999px;
    color: #fff;
    font-size: 1.06rem;
    font-weight: 700; text-shadow: 0 1px 3px rgb(0 0 0 / .45);
    text-decoration: none;
    transition: background .2s ease;
}
.menu a:hover, .menu a:focus-visible { background: rgb(255 255 255 / .14); }
.menu a.activa { background: rgb(255 255 255 / .2); }
.menu a.pqrs { margin-left: 4px; padding: 10px 16px; background: var(--barro); color: #fff; font-weight: 800; text-shadow: none; }
.menu a.pqrs:hover, .menu a.pqrs.activa { background: #944320; color: #fff; }
.menu a.preguntas { margin-left: 4px; padding: 10px 14px; background: var(--verde); color: #fff; font-weight: 800; text-shadow: none; }
.menu a.preguntas:hover, .menu a.preguntas.activa { background: #24492d; color: #fff; }
.menu a.contacto { margin-left: 4px; padding: 10px 14px; background: var(--amarillo); color: var(--oscuro); font-weight: 800; text-shadow: none; }
.menu a.contacto:hover, .menu a.contacto.activa { background: #f2c979; color: var(--oscuro); }
.con-submenu > a::after { content: " ▾"; font-size: .75em; opacity: .7; }

.con-submenu ul {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 40;
    min-width: 270px;
    padding: 6px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--arena-borde);
}
.con-submenu:hover ul, .con-submenu:focus-within ul, .con-submenu.abierto ul { display: block; }
.con-submenu ul a.ver-todo { font-weight: 800; border-bottom: 1px solid var(--arena-borde); border-radius: 10px 10px 0 0; margin-bottom: 4px; }
.con-submenu ul a { padding: 11px 16px; border-radius: 10px; color: var(--texto); font-size: .98rem; text-shadow: none; }
.con-submenu ul a:hover { background: transparent; color: var(--barro); }

.menu-boton { display: none; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 12px; background: rgb(255 255 255 / .16); cursor: pointer; }
.menu-boton span { display: block; height: 3px; margin: 4px 0; background: #fff; border-radius: 2px; }

/* En Inicio la cabecera va transparente sobre la foto de portada */
.inicio-j .cabecera { position: absolute; left: 0; right: 0; top: 0; background: transparent; }

/* ---------- Portada (Inicio) ---------- */
.portada {
    position: relative;
    min-height: clamp(520px, 86vh, 920px);
    /* la foto se ancla arriba (donde esta el rostro) para que el recorte en pantallas anchas sea por abajo */
    background: var(--oscuro) center 30% / cover;
    display: flex;
    align-items: flex-end;
}
.portada::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(10 30 22 / 0) 0, rgb(10 30 22 / 0) 45%, rgb(10 30 22 / .6) 100%);
}
.portada-texto { position: relative; z-index: 1; max-width: 640px; padding-bottom: 120px; padding-top: 140px; color: #fff; }
.portada-texto small {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgb(255 255 255 / .18);
    backdrop-filter: blur(6px);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.portada-texto h1 { margin: 0 0 12px; color: #fff; font-size: clamp(2.2rem, 5.6vw, 4.4rem); line-height: 1.02; text-shadow: 0 2px 12px rgb(0 0 0 / .45); }
.portada-texto p { margin: 0 0 18px; font-size: 1.08rem; max-width: 520px; color: #fff; text-shadow: 0 1px 8px rgb(0 0 0 / .5); }

.accesos {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: -64px;
}
.acceso {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgb(255 255 255 / .94);
    backdrop-filter: blur(10px);
    box-shadow: 0 14px 34px rgb(10 30 22 / .18);
    color: var(--texto);
    text-decoration: none;
    transition: transform .2s ease;
}
.acceso:hover { transform: translateY(-3px); }
.acceso i { width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0; background: linear-gradient(135deg, var(--verde), #0e5a4a); display: flex; align-items: center; justify-content: center; color: #fff; }
.acceso i svg { width: 22px; height: 22px; }
.acceso b { display: block; font-size: .98rem; }
.acceso span { display: block; font-size: .95rem; font-weight: 500; color: #121c16; }

.boton {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--barro);
    color: #fff;
    font-weight: 800;
    font-size: .95rem;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}
.boton:hover, .boton:focus-visible { background: #944320; transform: translateY(-1px); }
.boton-claro { background: var(--amarillo); border: 0; color: var(--oscuro); margin-left: 8px; }
.boton-claro:hover, .boton-claro:focus-visible { background: #f2c979; }
.boton-verde { background: var(--verde); }
.boton-verde:hover, .boton-verde:focus-visible { background: var(--terracota-osc); }

/* ---------- Secciones ---------- */
.seccion { padding-block: 48px; }
.titulo-seccion { margin: 0 0 6px; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.subtitulo-seccion { margin: 0 0 24px; color: #121c16; font-weight: 500; font-size: 1.15rem; max-width: 720px; }

/* Mosaico de servicios */
.mosaico {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: 160px 160px;
    gap: 10px;
}
.mosaico a { position: relative; display: block; border-radius: 20px; overflow: hidden; background: var(--oscuro) center / cover; text-decoration: none; }
.mosaico a:first-child { grid-row: 1 / 3; }
.mosaico a::before { content: ""; position: absolute; inset: 0; background: inherit; transition: transform .4s ease; }
.mosaico a:hover::before { transform: scale(1.05); }
.mosaico a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(10 30 22 / .88)); }
.mosaico b { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 1; color: #fff; font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.05rem; }
.mosaico b small { display: block; font-family: "Plus Jakarta Sans", Arial, sans-serif; font-weight: 500; font-size: .82rem; color: #cfe0d6; margin-top: 2px; }

/* Cifras */
.cifras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cifras div { padding: 12px 20px 14px; border-radius: 20px; color: #fff; background: var(--oscuro); }
.cifras div:nth-child(2) { background: var(--verde); }
.cifras div:nth-child(3) { background: var(--barro); }
.cifras div:nth-child(4) { background: var(--rio); }
.cifras b { display: block; font-family: "Fraunces", Georgia, serif; font-weight: 900; font-size: 2rem; line-height: 1; color: var(--amarillo); }
.cifras span { font-size: 1.05rem; font-weight: 500; }

/* Destacado (noticia principal) */
.destacado { display: grid; grid-template-columns: 1fr 1.15fr; gap: 36px; align-items: center; }
.destacado img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; box-shadow: 0 20px 50px rgb(10 30 22 / .2); }
.destacado blockquote { margin: 0 0 12px; font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.3; }
.destacado p { margin: 0 0 18px; font-size: 1.08rem; font-weight: 500; color: #121c16; }

/* Carrusel (destacados) */
.destacados { padding-block: 8px 40px; }
.carrusel { position: relative; background: var(--oscuro); border-radius: 24px; overflow: hidden; }
.carrusel-pista { position: relative; height: clamp(220px, 34vw, 440px); overflow: hidden; }
.destacados .carrusel-pista { height: clamp(260px, 42vw, 540px); }
.destacados .diapositiva-texto h2 { font-size: clamp(1.5rem, 3.2vw, 2.5rem); }
.destacados .diapositiva-texto p { font-size: clamp(.95rem, 1.5vw, 1.1rem); }
.diapositiva { position: absolute; inset: 0; display: flex; align-items: center; background-size: cover; background-position: center; transform: translateX(100%); visibility: hidden; transition: transform .75s ease, visibility 0s .75s; }
.diapositiva.visible { transform: translateX(0); visibility: visible; transition: transform .75s ease, visibility 0s; }
.diapositiva.entra-der { transform: translateX(100%); visibility: visible; transition: none; }
.diapositiva.entra-izq { transform: translateX(-100%); visibility: visible; transition: none; }
.diapositiva.saliente-izq { transform: translateX(-100%); visibility: visible; transition: transform .75s ease, visibility 0s .75s; }
.diapositiva.saliente-der { transform: translateX(100%); visibility: visible; transition: transform .75s ease, visibility 0s .75s; }
.diapositiva:not(.afiche)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(10 30 22 / .9) 0, rgb(10 30 22 / .5) 55%, rgb(10 30 22 / .1)); }
.diapositiva.afiche { overflow: hidden; justify-content: center; }
.diapositiva.afiche::before { content: ""; position: absolute; inset: -30px; background: inherit; background-size: cover; filter: blur(22px) brightness(.5); }
.afiche-imagen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.diapositiva-texto { position: relative; z-index: 1; max-width: 600px; margin-left: 56px; padding: 24px 40px 24px 0; color: #fff; }
.diapositiva-texto h2 { margin: 0 0 10px; color: #fff; font-size: clamp(1.4rem, 3vw, 2.2rem); }
.diapositiva-texto p { margin: 0 0 16px; font-size: clamp(.92rem, 1.4vw, 1.02rem); color: #d5ddd8; }
.diapositiva-texto:not(:has(h2)) { margin: 0 auto; padding: 0; align-self: flex-end; margin-bottom: 40px; }
.diapositiva-texto .boton { background: var(--amarillo); color: var(--oscuro); }
.carrusel-flecha { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .22); color: #fff; font-size: 1.1rem; cursor: pointer; }
.carrusel-flecha:hover { background: rgb(255 255 255 / .4); }
.carrusel-flecha.anterior { left: 10px; }
.carrusel-flecha.siguiente { right: 10px; }
.carrusel-puntos { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.carrusel-puntos button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / .45); cursor: pointer; }
.carrusel-puntos button[aria-current="true"] { background: var(--amarillo); }

/* Sedes */
.mosaico-sedes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mosaico-sedes a { position: relative; display: block; height: 200px; border-radius: 18px; overflow: hidden; background: center / cover; text-decoration: none; transition: transform .2s ease; }
.mosaico-sedes a:hover { transform: translateY(-3px); }
.mosaico-sedes a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgb(10 30 22 / .88)); }
.mosaico-sedes b { position: absolute; left: 16px; bottom: 14px; z-index: 1; color: #fff; font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.15rem; }

/* Noticias */
.tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.tarjeta { overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 6px 20px rgb(28 42 34 / .06); }
.tarjeta img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tarjeta-cuerpo { padding: 14px 18px 20px; }
.tarjeta-cuerpo h2 { margin: 6px 0 8px; font-size: 1.1rem; font-weight: 700; }
.tarjeta-cuerpo p { margin: 0; font-size: 1.05rem; font-weight: 500; color: #121c16; }
.etiqueta { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--amarillo); color: var(--oscuro); font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.boton-chico { margin-top: 14px; padding: 8px 16px; font-size: .88rem; }

/* ---------- Paginas de contenido ---------- */
.contenido > h1 { margin: 0 0 24px; font-size: clamp(2rem, 4.4vw, 3rem); }
.contenido > h1::after { content: ""; display: block; width: 72px; height: 6px; margin-top: 14px; border-radius: 3px; background: var(--amarillo); }
.contenido > h1 + p { font-size: 1.2rem; }
.contenido > h2 { margin: 44px 0 14px; font-size: 1.5rem; font-weight: 700; }
.contenido > h3 { margin: 28px 0 10px; font-size: 1.25rem; font-weight: 700; }
/* el texto ocupa el mismo ancho que las tarjetas y bloques */
.contenido > p, .contenido > ul, .contenido > ol { max-width: none; }
.contenido p, .contenido li, .contenido .tarjeta-cuerpo p, .acordeon details > div { font-size: 1.2rem; line-height: 1.7; font-weight: 500; color: #0f1712; }
.contenido > .carrusel { margin-block: 24px; }
.contenido > .carrusel .carrusel-pista { height: clamp(240px, 32vw, 380px); }
.contenido > .carrusel .diapositiva-texto p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.imagen { margin: 24px auto; max-width: 560px; }
.imagen img { width: auto; max-width: 100%; max-height: 400px; margin: 0 auto; border-radius: 20px; box-shadow: 0 14px 34px rgb(28 42 34 / .16); }

/* Tarjetas centradas en la pagina; cuando son pocas (3 o menos) se hacen mas anchas */
.rejilla { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-block: 24px; }
.rejilla > * { flex: 1 1 200px; max-width: 250px; }
.rejilla:not(.rejilla-grande):has(> :nth-child(4)) > .tarjeta:has(img) { flex-basis: 250px; max-width: 288px; }
.rejilla:not(:has(> :nth-child(4))) > * { flex-basis: 300px; max-width: 360px; }
.rejilla:not(:has(> :nth-child(4))) .tarjeta-cuerpo { padding: 16px 20px 22px; }
.rejilla:not(:has(> :nth-child(4))) .tarjeta strong { font-size: 1.08rem; margin-bottom: 8px; }
.rejilla:not(:has(> :nth-child(4))) .tarjeta span span { font-size: 1rem; line-height: 1.6; }
.rejilla .tarjeta { display: flex; flex-direction: column; color: var(--texto); text-decoration: none; }
.rejilla .tarjeta img { aspect-ratio: 16 / 10; object-fit: cover; }
.rejilla .tarjeta-cuerpo { display: block; padding: 12px 14px 14px; text-align: center; }
.rejilla .tarjeta strong { display: block; font-size: 1.05rem; line-height: 1.3; color: var(--texto); }
.rejilla .tarjeta strong::first-letter { text-transform: uppercase; }
.rejilla .tarjeta span span { display: block; margin-top: 6px; font-size: 1rem; font-weight: 500; color: #121c16; text-align: justify; hyphens: auto; }
.rejilla a.tarjeta { transition: transform .2s ease, box-shadow .2s ease; }
.rejilla a.tarjeta:hover, .rejilla a.tarjeta:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 30px rgb(28 42 34 / .14); }
.rejilla .caja { padding: 20px; text-align: center; background: #fff; }
.rejilla .caja > span { display: block; margin-top: 6px; }
.rejilla .caja strong.sub { display: block; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--arena-borde); }
.tarjeta.documento strong::after { content: " PDF"; font-size: .7rem; vertical-align: middle; padding: 2px 7px; margin-left: 6px; border-radius: 999px; background: var(--amarillo); color: var(--oscuro); }

.lista-chulos { list-style: none; padding: 0; }
.lista-chulos li { position: relative; margin: 8px 0; padding-left: 30px; }
.lista-chulos li::before { content: "✓"; position: absolute; left: 4px; color: var(--barro); font-weight: 800; }

.mapa { display: block; width: 100%; height: 380px; margin-block: 24px; border: 0; border-radius: 20px; }

.acordeon { max-width: none; margin: 24px 0; }
.acordeon details { margin-bottom: 10px; border-radius: 16px; background: #fff; }
.acordeon summary { padding: 14px 18px; font-weight: 700; cursor: pointer; }
.acordeon summary:hover { color: var(--barro); }
.acordeon details[open] summary { color: var(--barro); }
.acordeon details > div { padding: 0 18px 14px; }

/* Horarios de atención por sede (pregunta frecuente) */
.horarios-sedes { display: grid; gap: 20px; margin-top: 8px; }
.horario-sede h3 { margin: 0; padding: 10px 16px; background: var(--verde); color: #fff; border-radius: 12px 12px 0 0; font-size: 1.1rem; letter-spacing: .4px; text-transform: uppercase; }
.horario-lista { margin: 0; border: 1px solid var(--arena); border-top: 0; border-radius: 0 0 12px 12px; overflow: hidden; }
.horario-lista > div { display: grid; grid-template-columns: 250px 1fr; gap: 14px; padding: 10px 16px; }
.horario-lista > div:nth-child(odd) { background: var(--crema); }
.horario-lista dt, .horario-lista dd { font-size: 1.1rem; line-height: 1.65; }
.horario-lista dt { font-weight: 700; color: var(--barro); }
.horario-lista dd { margin: 0; }
.horario-lista dd small { display: inline-block; color: #5c6b60; font-weight: 600; font-size: .95rem; }
@media (max-width: 700px) { .horario-lista > div { grid-template-columns: 1fr; gap: 2px; } }

/* Página Contáctenos: una tarjeta por sede */
.rejilla.contacto { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; align-items: stretch; }
.rejilla.contacto > .contacto-sede { flex: 0 1 430px; max-width: none; }
.rejilla.contacto > * { max-width: none; }
.contacto-sede h3 { margin: -20px -20px 14px; padding: 10px 16px; background: var(--verde); border-radius: 16px 16px 0 0; font-size: 1.1rem; letter-spacing: .4px; text-transform: uppercase; }
.contacto-sede h3 a { color: #fff; text-decoration: none; }
.contacto-sede h3 a:hover { text-decoration: underline; }
.contacto-sede { font-size: .95rem; line-height: 1.45; }
.contacto-sede > span { font-weight: 600; }
.contacto-sede strong.sub { margin-top: 12px; padding-top: 10px; }
.tel-lista { list-style: none; margin: 6px 0 0; padding: 0; }
.tel-lista li { padding: 5px 0; border-bottom: 1px dashed var(--arena-borde); }
.tel-lista li:last-child { border-bottom: 0; padding-bottom: 0; }
.tel-lista b { display: block; font-size: .96rem; }
.tel-lista span { display: block; margin-top: 1px; font-weight: 700; }
.tel-lista span a { text-decoration: none; }
@media (max-width: 700px) { .rejilla.contacto > .contacto-sede { flex-basis: 100%; } }

.pagina-error { text-align: center; padding-block: 72px; }

/* Bloques texto + imagen */
.bloque { display: grid; grid-template-columns: 3fr 2fr; gap: 36px; align-items: center; margin: 36px 0; }
.bloque.invertido .bloque-texto { order: 2; }
.bloque.invertido .bloque-imagen { order: 1; }
.bloque-texto > h2, .bloque-texto > h3 { margin: 0 0 12px; font-size: 1.7rem; font-weight: 700; }
.bloque-texto > p, .bloque-texto > ul { margin: 0 0 14px; }
.contenido .bloque-texto p, .contenido .bloque-texto li { font-size: 1.2rem; line-height: 1.7; }
.bloque-imagen .imagen { margin: 0; max-width: none; }
/* la foto del bloque se muestra completa (sin recortes), centrada, hasta 480px de alto */
.bloque-imagen img { width: auto; max-width: 100%; max-height: 480px; margin: 0 auto; object-fit: contain; border-radius: 24px; box-shadow: 0 14px 34px rgb(28 42 34 / .16); }

/* Noticia */
.noticia-fecha, .contenido p.noticia-fecha { color: var(--dorado-tenue); font-weight: 700; margin-top: -8px; }
.contenido:has(> .noticia-fecha) > p:not(.noticia-fecha) { font-size: 1.2rem; line-height: 1.7; font-weight: 500; color: #0f1712; }
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-block: 20px 32px; }
.galeria a { display: block; overflow: hidden; border-radius: 16px; background: var(--arena); }
.galeria img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s ease; }
.galeria a:hover img { transform: scale(1.04); }
.video { display: block; width: 100%; max-width: 900px; margin: 20px auto; border-radius: 16px; background: #000; }
.video-vertical { display: block; width: 100%; max-width: 260px; max-height: 60vh; margin: 0 auto; border-radius: 16px; background: #000; }
.video-centro { text-align: center; margin: 16px 0 32px; }
.collage { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; max-width: 1000px; margin: 20px auto 28px; }
.collage a { display: block; overflow: hidden; border-radius: 16px; background: var(--arena); }
.collage a:first-child { grid-row: 1 / 3; }
.collage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.galeria-video { grid-row: span 2; overflow: hidden; border-radius: 16px; background: #000; }
.galeria-video video { display: block; width: 100%; height: 100%; object-fit: contain; }
.diapositiva.con-video { background: #000; }
.diapositiva-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Texto justificado */
.contenido > p, .bloque-texto p, .acordeon details > div, .tarjeta-cuerpo p, .contenido > ul li, .bloque-texto li { text-align: justify; hyphens: auto; }
.rejilla:not(:has(img)) > * { flex-basis: 300px; max-width: 400px; }
.rejilla:not(:has(img)) > *:only-child { max-width: 420px; }
/* tarjeta unica de datos (direccion/horario/correo): mas compacta */
.rejilla > .caja:only-child { padding: 14px 18px; }
.rejilla > .caja:only-child strong { font-size: 1rem; }
.rejilla > .caja:only-child strong.sub { margin-top: 10px; padding-top: 8px; }
.rejilla > .caja:only-child > span { font-size: .9rem; margin-top: 2px; }
.rejilla .tarjeta:not(:has(img)) .tarjeta-cuerpo { padding: 18px 20px 20px; text-align: left; }
.rejilla .tarjeta:not(:has(img)) strong { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.08rem; margin-bottom: 8px; }
.rejilla .tarjeta:not(:has(img)) span span { text-align: justify; hyphens: auto; font-size: 1rem; line-height: 1.6; }
.rejilla .caja { text-align: left; }

/* ---------- Formulario PQRS ---------- */
.formulario { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; max-width: 820px; margin: 32px 0 0; }
.campo.ancho, .formulario .aviso-error { grid-column: 1 / -1; }
.campo label { display: block; margin-bottom: 6px; font-weight: 700; font-size: .95rem; }
.campo input[type="text"], .campo input[type="email"], .campo input[type="tel"], .campo select, .campo textarea {
    width: 100%; padding: 12px 14px; border: 2px solid var(--arena-borde); border-radius: 12px; font: inherit; color: inherit; background: #fff;
}
.campo :is(input, select, textarea):focus-visible { outline: 0; border-color: var(--verde); }
.campo .casilla { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.campo .casilla input { width: 18px; height: 18px; accent-color: var(--verde); }
.campo .error { display: block; margin-top: 4px; color: #b42318; font-size: .88rem; }
.campo .boton { width: 100%; border: 0; font: inherit; font-weight: 800; cursor: pointer; }
.trampa { position: absolute; left: -9999px; }
.aviso-ok, .aviso-error { max-width: 820px; margin: 24px 0; padding: 14px 18px; border-radius: 12px; }
.aviso-ok { background: #e3efe6; border: 1px solid var(--verde); }
.aviso-error { margin: 0; background: #fdecea; border: 1px solid #b42318; color: #7a1a12; }

/* ---------- Pie ---------- */
.pie {
    margin-top: 56px;
    background: var(--oscuro) repeating-linear-gradient(135deg, transparent 0 14px, rgb(255 255 255 / .018) 14px 28px);
    color: #cfe0d6;
    font-size: .93rem;
}
.pie .tejido { height: 8px; }
.pie-columnas { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 36px; padding-block: 44px 36px; }
.pie h2 { margin: 0 0 12px; font-size: 1rem; font-weight: 700; color: var(--amarillo); letter-spacing: .02em; }
.pie h2.pie-sub { margin-top: 20px; }
.pie p { margin: 0 0 12px; }
.pie a { color: #cfe0d6; text-decoration: none; }
.pie a:hover { color: #fff; text-decoration: underline; }
.pie-marca strong { display: block; margin: 12px 0 8px; font-family: "Fraunces", Georgia, serif; font-size: 1.15rem; color: #fff; }
.pie-marca p { color: #a9bfb2; font-size: .9rem; max-width: 360px; }
.pie-logo { border-radius: 50%; background: #fff; padding: 3px; }
.pie-lista { list-style: none; margin: 0; padding: 0; }
.pie-lista li { margin: 0 0 6px; }
.pie-sedes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.pie-vigilado { margin-top: 14px; border-radius: 6px; }
.pie .boton { background: var(--amarillo); color: var(--oscuro); }
.pie .boton:hover { background: #f2c979; }
.pie-copy { margin: 0; padding: 14px 16px; text-align: center; font-size: .85rem; color: #93a89c; border-top: 1px solid rgb(255 255 255 / .12); }

/* ---------- Tableta y celular ---------- */
@media (max-width: 1080px) {
    .cabecera-marca { flex-wrap: wrap; }
    .menu-boton { display: block; }
    .menu { display: none; width: 100%; padding: 8px; border-radius: 16px; background: var(--oscuro); }
    .menu.abierto { display: block; }
    .menu > ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .menu a { padding: 12px 14px; border-radius: 10px; }
    .menu a.pqrs { margin: 8px 0 0; text-align: center; }
    .con-submenu ul { display: block; position: static; box-shadow: none; padding: 0 0 4px 14px; background: transparent; }
    .con-submenu ul a { color: #cfe0d6; }
    .inicio-j .cabecera { position: relative; background: var(--oscuro); }
    .portada-texto { padding-top: 60px; padding-bottom: 96px; }
    .accesos { grid-template-columns: 1fr 1fr; margin-top: -48px; }
    .mosaico { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 180px 180px; }
    .mosaico a:first-child { grid-row: 1 / 2; grid-column: 1 / 3; }
    .cifras { grid-template-columns: 1fr 1fr; }
    .pie-columnas { grid-template-columns: 1fr 1fr; }
    .mosaico-sedes { grid-template-columns: repeat(3, 1fr); }
    .destacado { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .marca strong { font-size: 1.05rem; }
    .marca small { display: none; }
    .portada { min-height: 0; }
    .portada-texto { padding-top: 40px; padding-bottom: 84px; }
    .portada-texto h1 { font-size: 2.2rem; }
    .accesos { grid-template-columns: 1fr; }
    .mosaico { grid-template-columns: 1fr; grid-template-rows: repeat(5, 160px); }
    .mosaico a:first-child { grid-column: 1; }
    .mosaico-sedes { grid-template-columns: 1fr 1fr; }
    .diapositiva-texto { margin-left: 0; padding: 16px 16px 16px 20px; max-width: none; }
    .diapositiva-texto p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
    .carrusel-flecha { display: none; }
    .pie-columnas { grid-template-columns: 1fr; gap: 24px; }
    .bloque { grid-template-columns: 1fr; gap: 16px; }
    .bloque.invertido .bloque-texto { order: 1; }
    .bloque.invertido .bloque-imagen { order: 2; }
    .bloque-imagen img { max-height: 260px; }
    .collage { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
    .collage a:first-child { grid-column: 1 / 3; grid-row: 1; }
    .formulario { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .diapositiva, .diapositiva.visible, .diapositiva.saliente-izq, .diapositiva.saliente-der { transition: none; }
}

/* Galeria de fotos de una sede: dos fotos grandes lado a lado */
.galeria-sede { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-block: 4px 12px; }
.galeria-sede img { aspect-ratio: 16 / 10; }

/* Tarjetas grandes (fotos de las sedes): tres por fila */
.rejilla.rejilla-grande > * { flex-basis: 340px; max-width: 380px; }
.rejilla.rejilla-grande .tarjeta strong { font-size: 1.1rem; }

/* Tarjeta de lineas de atencion (Ortega): lista ordenada en dos columnas */
.rejilla > .tarjeta.lineas { flex-basis: 640px; max-width: 780px; }
.lineas-lista { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.lineas-lista li { padding: 10px 0; border-bottom: 1px dashed var(--arena-borde); }
.lineas-lista b { display: block; font-size: .95rem; }
.lineas-lista span { display: block; margin-top: 2px; font-weight: 700; }
.lineas-lista span a { text-decoration: none; }
.lineas-lista small { display: block; margin-top: 2px; font-size: .82rem; color: var(--texto-suave); }
@media (max-width: 640px) { .lineas-lista { grid-template-columns: 1fr; } }

/* Carrusel con una sola foto: sin flechas ni puntos */
.carrusel:has(.diapositiva:only-child) .carrusel-flecha, .carrusel:has(.diapositiva:only-child) .carrusel-puntos { display: none; }

/* Tarjeta de redes sociales de cada sede */
.redes-lista { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.red {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 8px 22px 8px 8px;
    border-radius: 999px;
    color: #fff; font-weight: 800; font-size: 1.02rem; text-decoration: none;
    box-shadow: 0 6px 16px rgb(0 0 0 / .15);
    transition: transform .2s ease, box-shadow .2s ease;
}
.red:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgb(0 0 0 / .22); color: #fff; text-decoration: none; }
.red svg { width: 22px; height: 22px; padding: 7px; box-sizing: content-box; border-radius: 50%; background: #fff; }
/* colores propios de cada red */
.red[href*="facebook"] { background: #1877f2; }
.red[href*="facebook"] svg { color: #1877f2; }
.red[href*="instagram"] { background: linear-gradient(45deg, #f58529, #dd2a7b 50%, #8134af); }
.red[href*="instagram"] svg { color: #dd2a7b; }
.red[href*="whatsapp"] { background: #25d366; }
.red[href*="whatsapp"] svg { color: #25d366; }

/* Iconos de las etiquetas de las tarjetas de datos */
.rejilla .caja strong.ico { display: flex; align-items: center; gap: 8px; }
.ico::before { content: ''; display: inline-block; width: 20px; height: 20px; flex-shrink: 0; background: center / contain no-repeat; }
.ico-direccion::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21s-7-6.2-7-11a7 7 0 0 1 14 0c0 4.8-7 11-7 11z'/><circle cx='12' cy='10' r='2.5'/></svg>"); }
.ico-horario::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 7v5l3 2'/></svg>"); }
.ico-correo::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='m3 7 9 6 9-6'/></svg>"); }
.ico-lineas::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/></svg>"); }
.ico-redes::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='18' cy='5' r='3'/><circle cx='6' cy='12' r='3'/><circle cx='18' cy='19' r='3'/><path d='m8.6 13.5 6.8 4M15.4 6.5l-6.8 4'/></svg>"); }

/* "Visitanos": dos tarjetas de la misma altura (datos + lineas de atencion) */
.rejilla.visitanos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.rejilla.visitanos > * { max-width: none; }
.rejilla.visitanos .caja { padding: 13px 18px; font-size: .88rem; line-height: 1.5; }
.rejilla.visitanos .caja strong.ico { font-size: .98rem; }
.rejilla.visitanos .caja strong.sub { margin-top: 8px; padding-top: 7px; }
.rejilla.visitanos .caja > span { color: var(--texto); font-weight: 600; }
.rejilla.visitanos .caja > span { margin-top: 3px; }
/* la lista de lineas ocupa toda la altura de la tarjeta y reparte sus elementos */
.rejilla.visitanos .tarjeta.lineas { display: flex; flex-direction: column; }
.rejilla.visitanos .lineas-lista { display: flex; flex-direction: column; justify-content: space-evenly; flex: 1; gap: 0; }
.rejilla.visitanos .lineas-lista li { padding: 5px 0; }
.rejilla.visitanos .lineas-lista li[class*='l-'] { padding-left: 38px; }
.rejilla.visitanos .lineas-lista li[class*='l-']::before { top: 2px; }
.rejilla.visitanos .lineas-lista li:last-child { border-bottom: 0; }
.rejilla.visitanos .lineas-lista b { font-size: .9rem; }
.rejilla.visitanos .lineas-lista span { font-size: .92rem; margin-top: 1px; }
.rejilla.visitanos .lineas-lista small { font-size: .84rem; color: var(--texto); opacity: 1; font-weight: 600; }
.rejilla.visitanos .red { padding: 5px 14px 5px 5px; font-size: .86rem; }
.rejilla.visitanos .red svg { width: 16px; height: 16px; padding: 5px; }
.rejilla.visitanos .redes-lista { margin-top: 10px; }
@media (max-width: 860px) { .rejilla.visitanos { grid-template-columns: 1fr; } }

/* Iconos de las tarjetas de servicios (segun el nombre del servicio) */
.rejilla .tarjeta[class*='s-'] .tarjeta-cuerpo::before { content: ''; display: block; width: 50px; height: 50px; margin: 0 0 12px; border-radius: 50%; background: var(--arena) center / 26px 26px no-repeat; }
.rejilla .tarjeta.s-estetoscopio .tarjeta-cuerpo::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M6 3v6a5 5 0 0 0 10 0V3'/><path d='M4 3h4M14 3h4'/><path d='M11 14v2a4 4 0 0 0 8 0v-3'/><circle cx='19' cy='10' r='2.2'/></svg>"); }
.rejilla .tarjeta.s-hoja .tarjeta-cuerpo::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21V9'/><path d='M12 13c-4 0-7-2.6-7-7 4 0 7 2.6 7 7z'/><path d='M12 9c0-4 3-6.5 7-6.5 0 4-3 6.5-7 6.5z'/></svg>"); }
.rejilla .tarjeta.s-diente .tarjeta-cuerpo::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M8 3c-3 0-4.5 2.5-4.5 5 0 4 1.8 6 2.3 11 .1 1 .8 2 1.7 2 1.4 0 1.6-2.5 2.4-4.5.5-1.2 1.7-1.2 2.2 0 .8 2 1 4.5 2.4 4.5.9 0 1.6-1 1.7-2 .5-5 2.3-7 2.3-11 0-2.5-1.5-5-4.5-5-1.6 0-2.4.8-4 .8S9.6 3 8 3z'/></svg>"); }
.rejilla .tarjeta.s-cruz .tarjeta-cuerpo::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M9 3h6v6h6v6h-6v6H9v-6H3V9h6z'/></svg>"); }
.rejilla .tarjeta.s-familia .tarjeta-cuerpo::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='6' r='2.5'/><circle cx='16' cy='6' r='2.5'/><path d='M3 20v-5a4 4 0 0 1 4-4h2a4 4 0 0 1 4 4v5M11 20v-5a4 4 0 0 1 4-4h2a4 4 0 0 1 4 4v5'/></svg>"); }
.rejilla .tarjeta.s-jeringa .tarjeta-cuerpo::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='m18 2 4 4M20 4l-8 8M14 6l4 4M4 20l3-3M9 11l4 4-4 4-4-4z'/><path d='m11 9 4 4'/></svg>"); }
.rejilla .tarjeta.s-casa .tarjeta-cuerpo::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3 11 12 3l9 8'/><path d='M5 10v10h14V10'/><path d='M10 20v-6h4v6'/></svg>"); }
.rejilla .tarjeta.s-frasco .tarjeta-cuerpo::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M9 3h6M10 3v6L4 20a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1L14 9V3'/><path d='M7 16h10'/></svg>"); }
.rejilla .tarjeta.s-gestante .tarjeta-cuerpo::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='5' r='2.5'/><path d='M10 8h3a3 3 0 0 1 3 3v2a4 4 0 0 1-2 3.5V21M10 8v13'/><path d='M14 13a3 3 0 0 1 3 3'/></svg>"); }
.rejilla .tarjeta.s-lazo .tarjeta-cuerpo::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3c-3 0-4 2.5-4 4.5 0 3 2 5 4 7.5 2-2.5 4-4.5 4-7.5C16 5.5 15 3 12 3z'/><path d='m9 11-4 10M15 11l4 10'/><path d='m9 17 6-6'/></svg>"); }
.rejilla .tarjeta.s-nino .tarjeta-cuerpo::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='6' r='3'/><path d='M8 21v-6a4 4 0 0 1 8 0v6'/><path d='M5 12h2M17 12h2'/></svg>"); }
.rejilla .tarjeta.s-corazon .tarjeta-cuerpo::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21s-8-5.5-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 5.5-8 11-8 11z'/><path d='M4 12h4l2-3 2 6 2-4h6'/></svg>"); }
.rejilla .tarjeta.s-hueso .tarjeta-cuerpo::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M6 5a2.5 2.5 0 0 1 3.5 2.3L14.7 12l4.7-4.7A2.5 2.5 0 1 1 21 9l-1 1 1 1a2.5 2.5 0 1 1-1.7 3.5L14.7 9.8 10 14.5l4.7 4.7A2.5 2.5 0 1 1 13 21l-1-1-1 1a2.5 2.5 0 1 1-3.5-1.7l4.7-4.7-4.7-4.7A2.5 2.5 0 0 1 6 5z' transform='scale(.85) translate(2 2)'/></svg>"); }
.rejilla .tarjeta.s-cerebro .tarjeta-cuerpo::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M9 4a3 3 0 0 0-3 3v1a3 3 0 0 0 0 6v1a3 3 0 0 0 3 3h1V4z'/><path d='M15 4a3 3 0 0 1 3 3v1a3 3 0 0 1 0 6v1a3 3 0 0 1-3 3h-1V4z'/><path d='M10 4h4'/></svg>"); }
.rejilla .tarjeta.s-manzana .tarjeta-cuerpo::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 7c-2-2-6-2-7 2-1 4 2 10 5 11 1 .4 2-.4 2-.4s1 .8 2 .4c3-1 6-7 5-11-1-4-5-4-7-2z'/><path d='M12 7V3M12 3c2 0 3 1 3 2'/></svg>"); }
.rejilla .tarjeta.s-onda .tarjeta-cuerpo::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12h3l2-6 3 12 3-9 2 3h5'/></svg>"); }
.rejilla .tarjeta.s-ojo .tarjeta-cuerpo::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12z'/><circle cx='12' cy='12' r='3'/></svg>"); }
.rejilla .tarjeta.s-documento .tarjeta-cuerpo::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M6 3h9l4 4v14H6z'/><path d='M15 3v4h4M9 12h6M9 16h6'/></svg>"); }
.rejilla .tarjeta.s-persona .tarjeta-cuerpo::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='7' r='3.5'/><path d='M5 21v-2a5 5 0 0 1 5-5h4a5 5 0 0 1 5 5v2'/></svg>"); }

/* Iconos de cada linea de atencion */
.lineas-lista li[class*='l-'] { position: relative; padding-left: 40px; }
.lineas-lista li[class*='l-']::before { content: ''; position: absolute; left: 0; top: 7px; width: 28px; height: 28px; border-radius: 50%; background: var(--arena) center / 18px 18px no-repeat; }
.lineas-lista li.l-estetoscopio::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M6 3v6a5 5 0 0 0 10 0V3'/><path d='M4 3h4M14 3h4'/><path d='M11 14v2a4 4 0 0 0 8 0v-3'/><circle cx='19' cy='10' r='2.2'/></svg>"); }
.lineas-lista li.l-frasco::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M9 3h6M10 3v6L4 20a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1L14 9V3'/><path d='M7 16h10'/></svg>"); }
.lineas-lista li.l-diente::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M8 3c-3 0-4.5 2.5-4.5 5 0 4 1.8 6 2.3 11 .1 1 .8 2 1.7 2 1.4 0 1.6-2.5 2.4-4.5.5-1.2 1.7-1.2 2.2 0 .8 2 1 4.5 2.4 4.5.9 0 1.6-1 1.7-2 .5-5 2.3-7 2.3-11 0-2.5-1.5-5-4.5-5-1.6 0-2.4.8-4 .8S9.6 3 8 3z'/></svg>"); }
.lineas-lista li.l-persona::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='7' r='3.5'/><path d='M5 21v-2a5 5 0 0 1 5-5h4a5 5 0 0 1 5 5v2'/></svg>"); }
.lineas-lista li.l-documento::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M6 3h9l4 4v14H6z'/><path d='M15 3v4h4M9 12h6M9 16h6'/></svg>"); }

/* Pagina de noticia: portada, galeria + video lado a lado, visor de fotos */
.noticia-portada { margin: 8px 0 28px; }
.noticia-portada a { display: block; border-radius: 24px; overflow: hidden; box-shadow: 0 18px 44px rgb(28 42 34 / .18); background: var(--arena); }
.noticia-portada img { display: block; width: 100%; max-height: 560px; object-fit: cover; object-position: center 35%; transition: transform .4s ease; }
.noticia-portada a:hover img { transform: scale(1.02); }
.noticia-portada figcaption { margin-top: 10px; font-size: .95rem; font-weight: 600; color: var(--texto-suave); text-align: center; }
.noticia-medios { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; margin-top: 44px; }
.noticia-medios h2 { margin: 0 0 14px; font-size: 1.5rem; font-weight: 700; }
.galeria-noticia { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-block: 0; }
.galeria-noticia a { box-shadow: 0 8px 22px rgb(28 42 34 / .12); }
.contenido .galeria-nota { margin: 12px 0 0; font-size: 1.05rem; font-weight: 600; color: #0f1712; }
.noticia-video { position: sticky; top: 88px; }
.video-caja { padding: 14px; border-radius: 22px; background: var(--oscuro); color: #fff; box-shadow: 0 14px 34px rgb(28 42 34 / .2); }
.video-caja .video-vertical { max-width: none; max-height: none; border-radius: 14px; }
.video-caja p { margin: 12px 4px 2px; font-size: 1.05rem; font-weight: 600; color: rgb(255 255 255 / .85); text-align: center; }
.noticia-volver { margin-top: 40px; }
@media (max-width: 900px) {
    .noticia-medios { grid-template-columns: 1fr; }
    .noticia-video { position: static; max-width: 320px; margin: 0 auto; }
    .noticia-portada img { max-height: 380px; }
}
/* visor de fotos (pantalla completa) */
.visor { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgb(10 20 14 / .92); animation: visor-entra .2s ease; }
@keyframes visor-entra { from { opacity: 0; } to { opacity: 1; } }
.visor img { max-width: min(96vw, 1400px); max-height: 84vh; border-radius: 14px; box-shadow: 0 30px 80px rgb(0 0 0 / .5); background: #000; }
.visor figcaption { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: #fff; font-weight: 600; font-size: 1rem; padding: 0 70px; }
.visor button { position: absolute; border: 0; cursor: pointer; color: #fff; background: rgb(255 255 255 / .14); width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background .2s ease; }
.visor button:hover { background: var(--barro); }
.visor .visor-cerrar { top: 18px; right: 18px; }
.visor .visor-ant { left: 18px; top: 50%; transform: translateY(-50%); }
.visor .visor-sig { right: 18px; top: 50%; transform: translateY(-50%); }
.visor .visor-contador { position: absolute; top: 28px; left: 24px; color: rgb(255 255 255 / .8); font-weight: 700; font-size: .95rem; }
body.con-visor { overflow: hidden; }

/* Noticia, diseno "Editorial": tarjeta con foto + titulo, texto a dos columnas, galeria con foto ancha */
.noticia-tarjeta { display: grid; grid-template-columns: 1fr 1fr; margin: 8px 0 0; background: #fff; border-radius: 28px; overflow: hidden; box-shadow: 0 18px 44px rgb(28 42 34 / .14); }
.noticia-tarjeta > a { display: block; height: 100%; min-height: 420px; background: var(--arena); overflow: hidden; }
.noticia-tarjeta img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.noticia-tarjeta > a:hover img { transform: scale(1.03); }
.noticia-tarjeta-texto { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.noticia-tarjeta-texto .cinta { align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: var(--amarillo); color: var(--oscuro); font-weight: 800; font-size: .85rem; margin-bottom: 14px; }
.noticia-tarjeta-texto h1 { margin: 0 0 14px; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.1; }
.contenido .noticia-tarjeta-texto p { margin: 0; color: #0f1712; font-weight: 500; font-size: 1.2rem; line-height: 1.7; text-align: justify; hyphens: auto; }
.noticia-columnas { column-count: 2; column-gap: 44px; margin: 40px 0 0; }
.contenido .noticia-columnas p { break-inside: avoid; margin: 0 0 16px; font-size: 1.2rem; line-height: 1.7; color: #0f1712; text-align: justify; hyphens: auto; }
.galeria-noticia a:first-child { grid-column: span 2; }
.galeria-noticia a:first-child img { aspect-ratio: 2 / 1; }
.video-caja { background: var(--verde); }
@media (max-width: 900px) {
    .noticia-tarjeta { grid-template-columns: 1fr; }
    .noticia-tarjeta > a { min-height: 0; }
    .noticia-tarjeta img { height: auto; aspect-ratio: 4 / 3; }
    .noticia-tarjeta-texto { padding: 26px 22px 30px; }
    .noticia-columnas { column-count: 1; }
}

/* Tarjetas de servicio con foto arriba y el icono montado sobre la foto */
.rejilla .tarjeta[class*='s-'] .tarjeta-foto { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.rejilla .tarjeta[class*='s-']:has(.tarjeta-foto) .tarjeta-cuerpo { text-align: left; padding: 0 20px 20px; }
.rejilla .tarjeta[class*='s-']:has(.tarjeta-foto) .tarjeta-cuerpo::before { position: relative; margin: -28px 0 10px; width: 56px; height: 56px; border: 3px solid #fff; box-shadow: 0 6px 16px rgb(28 42 34 / .18); background-size: 28px 28px; }
.rejilla .tarjeta[class*='s-']:has(.tarjeta-foto) strong { text-align: left; }
.rejilla .tarjeta[class*='s-']:has(.tarjeta-foto) span span { text-align: justify; hyphens: auto; }

/* Tarjetas de servicio mas anchas (4 por fila en pantallas grandes) */
.rejilla > .tarjeta[class*='s-'], .rejilla:not(.rejilla-grande):has(> :nth-child(4)) > .tarjeta[class*='s-']:has(img) { flex-basis: 360px; max-width: 460px; }

/* Imagen ancha (infografia) dentro del contenido */
.imagen.imagen-ancha { max-width: 1100px; }
.imagen.imagen-ancha img { max-height: none; width: 100%; }

/* Bloque con imagen grande (Objetivos de calidad) */
.bloque.bloque-grande { grid-template-columns: 1fr 1.2fr; }
.bloque.bloque-grande .bloque-imagen img { max-height: 760px; }
.contenido .bloque-grande .bloque-texto p, .contenido .bloque-grande .bloque-texto li { font-size: 1.2rem; line-height: 1.7; color: #0f1712; font-weight: 500; }
.bloque-grande .lista-chulos li { margin: 12px 0; }
@media (max-width: 860px) { .bloque.bloque-grande { grid-template-columns: 1fr; } }

/* Menu: en pantallas medianas se compacta para caber en una fila con Contactenos */
@media (max-width: 1320px) and (min-width: 761px) { .menu a { font-size: .98rem; padding: 9px 8px; } .marca strong { font-size: 1.3rem; } .marca small { font-size: .74rem; } }

/* Tarjeta de datos grande (sede administrativa en Contactenos) */
.rejilla > .caja-grande:only-child { max-width: 820px; flex-basis: 820px; padding: 28px 34px; font-size: 1.18rem; line-height: 1.6; }
.rejilla > .caja-grande strong.ico { font-size: 1.25rem; }
.rejilla > .caja-grande strong.ico::before { width: 26px; height: 26px; }
.rejilla > .caja-grande strong.sub { margin-top: 18px; padding-top: 14px; }
.rejilla > .caja-grande > span { color: var(--texto); font-weight: 600; margin-top: 8px; }
.rejilla > .caja-grande > strong:first-child { font-size: 1.5rem; font-family: "Fraunces", Georgia, serif; }

/* PQRS: panel lateral + tarjeta del formulario */
.pqrs-vista { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 32px; }
.pqrs-lateral { position: sticky; top: 90px; padding: 28px 26px; border-radius: 24px; background: var(--oscuro); color: #fff; }
.pqrs-lateral h2 { margin: 0 0 16px; font-size: 1.5rem; color: #fff; }
.pqrs-tipos { list-style: none; margin: 0; padding: 0; }
.pqrs-tipos li { position: relative; padding: 10px 0 10px 52px; border-bottom: 1px solid rgb(255 255 255 / .12); }
.pqrs-tipos li:last-child { border-bottom: 0; }
.pqrs-tipos li::before { content: ''; position: absolute; left: 0; top: 10px; width: 38px; height: 38px; border-radius: 50%; background: var(--verde) center / 20px 20px no-repeat; }
.pqrs-tipos b { display: block; font-size: 1.08rem; color: var(--amarillo); }
.pqrs-tipos span { display: block; font-size: .98rem; color: rgb(255 255 255 / .85); line-height: 1.45; }
.pqrs-tipos li.t-peticion::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 3h9l4 4v14H6z'/><path d='M15 3v4h4M9 12h6M9 16h6'/></svg>"); }
.pqrs-tipos li.t-queja::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 8v5M12 16h.01'/></svg>"); }
.pqrs-tipos li.t-reclamo::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3 2 20h20z'/><path d='M12 10v4M12 17h.01'/></svg>"); }
.pqrs-tipos li.t-sugerencia::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M9 18h6M10 21h4M12 3a6 6 0 0 0-4 10.5c.6.6 1 1.5 1 2.5h6c0-1 .4-1.9 1-2.5A6 6 0 0 0 12 3z'/></svg>"); }
.pqrs-tipos li.t-felicitacion::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21s-8-5.5-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 5.5-8 11-8 11z'/></svg>"); }
.pqrs-tiempo { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: rgb(255 255 255 / .08); border-left: 4px solid var(--amarillo); }
.pqrs-tiempo b { display: block; font-size: 1.02rem; }
.pqrs-tiempo span { display: block; font-size: .95rem; color: rgb(255 255 255 / .85); }
.pqrs-lateral .pqrs-alterno { margin: 18px 0 0; font-size: .98rem; line-height: 1.5; color: rgb(255 255 255 / .85); }
.pqrs-lateral a { color: var(--amarillo); }
.pqrs-tarjeta { padding: 30px 34px 34px; border-radius: 24px; background: #fff; box-shadow: 0 18px 44px rgb(28 42 34 / .12); }
.pqrs-tarjeta .formulario { margin: 0; max-width: none; gap: 16px 22px; }
.formulario-seccion { grid-column: 1 / -1; margin: 6px 0 -4px; padding-bottom: 8px; border-bottom: 2px solid var(--arena); font-size: 1.25rem; font-weight: 700; color: var(--verde); }
.formulario-seccion:not(:first-child) { margin-top: 14px; }
.pqrs-tarjeta .campo label { font-size: 1.02rem; }
.pqrs-tarjeta .campo :is(input, select, textarea) { padding: 13px 16px; border-radius: 12px; border: 2px solid var(--arena-borde); background: var(--fondo); transition: border-color .2s ease, background .2s ease; }
.pqrs-tarjeta .campo :is(input, select, textarea):focus-visible { background: #fff; border-color: var(--verde); box-shadow: 0 0 0 4px rgb(47 93 58 / .15); }
.pqrs-tarjeta .campo textarea { min-height: 150px; resize: vertical; }
.campo .ayuda { display: block; margin: -2px 0 8px; font-size: .92rem; color: var(--texto-suave); }
.campo .boton-enviar { padding: 15px 24px; font-size: 1.08rem; }
.formulario-nota { grid-column: 1 / -1; margin: 10px 0 0; text-align: center; font-size: .95rem; color: var(--texto-suave); }
.formulario .aviso-error { padding: 12px 16px; border-radius: 12px; background: #fdecea; color: #b42318; font-weight: 700; }
.aviso-ok { padding: 20px 24px; border-radius: 16px; background: #e6f1e8; border-left: 5px solid var(--verde); font-weight: 600; }
@media (max-width: 960px) { .pqrs-vista { grid-template-columns: 1fr; } .pqrs-lateral { position: static; } .pqrs-tarjeta { padding: 22px 18px 26px; } }
@media (max-width: 640px) { .formulario { grid-template-columns: 1fr; } }

/* Contactenos: tarjeta unica (sede administrativa) centrada; nombre en blanco */
.contacto-sede h3 { color: #fff; }
.rejilla.contacto.contacto-una { grid-template-columns: minmax(0, 720px); justify-content: center; }
.contacto-una .contacto-sede { font-size: 1.18rem; padding: 26px 30px; }
.contacto-una .contacto-sede h3 { margin: -26px -30px 18px; padding: 14px 22px; font-size: 1.35rem; }
.contacto-una .contacto-sede strong.ico { font-size: 1.25rem; }
.contacto-una .contacto-sede strong.ico::before { width: 26px; height: 26px; }
.contacto-una .contacto-sede strong.sub { margin-top: 18px; padding-top: 14px; }
.rejilla.contacto.contacto-una > .contacto-sede { max-width: none; width: 100%; }

/* Sede administrativa: misma rejilla que las sedes; el contenido se reparte en toda la altura */
.contacto-admin { justify-content: space-between; }
.contacto-admin > span { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }

/* Preguntas frecuentes: acordeon numerado con chevron */
.acordeon { counter-reset: pregunta; }
.acordeon details { margin-bottom: 12px; border: 1px solid var(--arena-borde); border-radius: 18px; background: #fff; box-shadow: 0 6px 18px rgb(28 42 34 / .06); overflow: hidden; transition: box-shadow .2s ease; }
.acordeon details:hover { box-shadow: 0 12px 28px rgb(28 42 34 / .12); }
.acordeon details[open] { border-color: var(--verde); box-shadow: 0 14px 34px rgb(28 42 34 / .14); }
.acordeon summary { display: flex; align-items: center; gap: 16px; padding: 18px 22px; font-size: 1.12rem; font-weight: 700; line-height: 1.35; list-style: none; color: var(--texto); }
.acordeon summary::-webkit-details-marker { display: none; }
.acordeon summary::before { counter-increment: pregunta; content: counter(pregunta); flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--arena); color: var(--verde); font-family: "Fraunces", Georgia, serif; font-weight: 900; font-size: 1.1rem; transition: background .2s ease, color .2s ease; }
.acordeon summary::after { content: ''; flex: 0 0 34px; width: 34px; height: 34px; margin-left: auto; border-radius: 50%; background: var(--fondo) center / 18px 18px no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d3a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); transition: transform .25s ease, background-color .2s ease; }
.acordeon details[open] summary { color: var(--verde); }
.acordeon details[open] summary::before { background: var(--verde); color: #fff; }
.acordeon details[open] summary::after { transform: rotate(180deg); background-color: var(--arena); }
.acordeon details > div { padding: 2px 26px 22px 78px; border-top: 1px dashed var(--arena-borde); margin-top: 0; padding-top: 16px; background: linear-gradient(180deg, #fbfaf6, #fff); }
.acordeon details > div > :first-child { margin-top: 0; }
.acordeon details > div ul { padding-left: 22px; }
@media (max-width: 640px) { .acordeon summary { padding: 14px 16px; gap: 12px; font-size: 1.02rem; } .acordeon details > div { padding: 14px 16px 18px 16px; } }

/* Contactenos: tarjetas de sede mas compactas */
.rejilla.contacto .contacto-sede { font-size: .86rem; line-height: 1.4; padding: 14px 16px 16px; }
.rejilla.contacto .contacto-sede h3 { margin: -14px -16px 10px; padding: 8px 14px; font-size: .98rem; }
.rejilla.contacto .contacto-sede strong.ico { font-size: .95rem; }
.rejilla.contacto .contacto-sede strong.ico::before { width: 17px; height: 17px; }
.rejilla.contacto .contacto-sede strong.sub { margin-top: 9px; padding-top: 8px; }
.rejilla.contacto .contacto-sede > span { margin-top: 3px; }
.rejilla.contacto .tel-lista li { padding: 3px 0; }
.rejilla.contacto .tel-lista b { font-size: .84rem; }
.rejilla.contacto .tel-lista span { font-size: .95rem; }
.rejilla.contacto .redes-lista { margin-top: 6px; gap: 6px; }
.rejilla.contacto .red { padding: 6px 11px; font-size: .82rem; }
.rejilla.contacto .red svg { width: 15px; height: 15px; }
.rejilla.contacto .redes-lista { flex-wrap: nowrap; gap: 5px; }
.rejilla.contacto .red { padding: 3px 9px 3px 4px; font-size: .78rem; gap: 5px; }
.rejilla.contacto .red svg { width: 12px; height: 12px; padding: 3px; }

/* Contactenos: maximo 3 tarjetas por fila (3 arriba, 3 abajo, administrativa centrada) */
.rejilla.contacto { max-width: 1318px; margin-inline: auto; }

/* Sede administrativa: primera, en su propia fila centrada, encima de las sedes */
.rejilla.contacto > .contacto-admin { order: -1; margin-inline: calc((100% - 350px) / 2); }
@media (max-width: 700px) { .rejilla.contacto > .contacto-admin { margin-inline: 0; } }

/* Sede administrativa a lo ancho de las tres tarjetas, con los datos en tres columnas */
.rejilla.contacto > .contacto-admin { flex-basis: 100%; margin-inline: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto auto; grid-auto-flow: column; column-gap: 0; }
.rejilla.contacto > .contacto-admin h3 { grid-row: 1; grid-column: 1 / -1; }
.rejilla.contacto > .contacto-admin strong.sub { margin-top: 0; padding-top: 0; border-top: 0; }
.rejilla.contacto > .contacto-admin > span { justify-content: flex-start; }
.rejilla.contacto > .contacto-admin > :nth-child(n+4) { padding-left: 22px; border-left: 1px solid var(--arena-borde); }
.rejilla.contacto > .contacto-admin > :nth-child(2), .rejilla.contacto > .contacto-admin > :nth-child(3) { padding-right: 22px; }
.rejilla.contacto > .contacto-admin > :nth-child(4), .rejilla.contacto > .contacto-admin > :nth-child(5) { padding-right: 22px; }
@media (max-width: 700px) { .rejilla.contacto > .contacto-admin { display: flex; } .rejilla.contacto > .contacto-admin > :nth-child(n+4) { padding-left: 0; border-left: 0; } .rejilla.contacto > .contacto-admin strong.sub { margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--arena-borde); } }

/* Lo que el filtro de servicios marca como oculto, se oculta de verdad */
[hidden] { display: none !important; }

/* Servicios filtrados: boton para volver a todos */
.volver-servicios { display: inline-flex; align-items: center; gap: 8px; margin: -8px 0 20px; }
.volver-servicios span { font-size: 1.1em; }
.contenido > .volver-servicios:last-child { margin: 28px 0 0; }

/* Tarjetas de servicio: maximo 3 por fila */
.rejilla:has(> .tarjeta[class*='s-']) { max-width: 1412px; margin-inline: auto; }

/* Usuarios: tarjeta Derechos mas grande */
.contenido .rejilla > .caja-grande:only-child { max-width: none; flex-basis: 100%; padding: 34px 40px; font-size: 1.32rem; line-height: 1.65; }
.contenido .rejilla > .caja-grande:only-child > strong:first-child { font-size: 1.9rem; margin-bottom: 12px; }
.contenido .rejilla > .caja-grande:only-child > span { font-size: 1.32rem; line-height: 1.65; }

/* Icono de nefroprevencion (rinones) */
.rejilla .tarjeta.s-rinon .tarjeta-cuerpo::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M9 4C6 4 4 7 4 11s2 8 5 8c1.6 0 2.2-1.2 2.2-2.6V7.6C11.2 5.4 10.4 4 9 4z'/><path d='M15 4c3 0 5 3 5 7s-2 8-5 8c-1.6 0-2.2-1.2-2.2-2.6V7.6C12.8 5.4 13.6 4 15 4z'/><path d='M11.2 12h1.6'/></svg>"); }

/* Redes sociales flotantes de la sede (esquina inferior derecha) */
.redes-flotantes { position: fixed; right: 18px; bottom: 18px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.flotante { display: inline-flex; align-items: center; gap: 0; height: 52px; padding: 0; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem; box-shadow: 0 10px 26px rgb(0 0 0 / .25); transition: transform .2s ease, box-shadow .2s ease; }
.flotante:hover, .flotante:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 32px rgb(0 0 0 / .3); color: #fff; text-decoration: none; }
.flotante-icono { width: 52px; height: 52px; flex: 0 0 52px; display: flex; align-items: center; justify-content: center; }
.flotante-icono svg { width: 26px; height: 26px; }
.flotante-texto { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .3s ease, opacity .2s ease, padding .3s ease; }
.flotante:hover .flotante-texto, .flotante:focus-visible .flotante-texto { max-width: 260px; opacity: 1; padding-right: 20px; }
.flotante-facebook { background: #1877f2; }
.flotante-instagram { background: linear-gradient(45deg, #f58529, #dd2a7b 50%, #8134af); }
@media (max-width: 640px) { .redes-flotantes { right: 12px; bottom: 12px; } .flotante, .flotante-icono { height: 46px; } .flotante-icono { width: 46px; flex-basis: 46px; } }

/* Nota de la sede administrativa en Contactenos */
.contacto-admin .contacto-nota { grid-column: 1 / -1; grid-row: 2; margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: var(--arena); font-size: .9rem; font-weight: 600; color: var(--texto); }
.rejilla.contacto > .contacto-admin { grid-template-rows: auto auto auto auto; }
.rejilla.contacto > .contacto-admin > :nth-child(n+5) { padding-left: 22px; border-left: 1px solid var(--arena-borde); }
.rejilla.contacto > .contacto-admin > :nth-child(3), .rejilla.contacto > .contacto-admin > :nth-child(4) { padding-left: 0; border-left: 0; }
@media (max-width: 700px) { .rejilla.contacto > .contacto-admin > :nth-child(n+5) { padding-left: 0; border-left: 0; } }

/* Carrusel: el video vertical se ve completo, con la portada desenfocada a los lados */
.diapositiva.con-video { overflow: hidden; }
.diapositiva.con-video::before { content: ""; position: absolute; inset: -30px; background: inherit; background-size: cover; filter: blur(22px) brightness(.5); }
.diapositiva.con-video .diapositiva-video { object-fit: contain; z-index: 1; }
.diapositiva.con-video .diapositiva-texto { z-index: 2; }
/* Noticia que solo tiene video: centrado */
.noticia-medios.noticia-solo-video { grid-template-columns: minmax(0, 360px); justify-content: center; }
.noticia-solo-video .noticia-video { position: static; }

/* Boton WhatsApp junto a un numero de citas */
a.wa { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 2px 9px 2px 6px; border-radius: 999px; background: #25d366; color: #fff !important; font-size: .78rem; font-weight: 800; text-decoration: none; vertical-align: middle; line-height: 1.6; }
a.wa::before { content: ""; width: 13px; height: 13px; background: center / contain no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M12 2a10 10 0 0 0-8.7 14.9L2 22l5.3-1.4A10 10 0 1 0 12 2zm5.3 14.2c-.2.6-1.3 1.2-1.8 1.2-.5.1-1 .2-3.3-.7-2.8-1.1-4.6-4-4.7-4.2-.1-.2-1.1-1.5-1.1-2.9s.7-2 1-2.3c.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5l.8 2c.1.2.1.4 0 .5l-.3.5-.4.4c-.1.1-.3.3-.1.6.2.3.8 1.3 1.7 2.1 1.2 1 2.1 1.4 2.4 1.5.3.1.5.1.6-.1l.9-1c.2-.3.4-.2.6-.1l1.9.9c.3.1.5.2.5.3.1.2.1.7-.1 1.3z'/></svg>"); }
a.wa:hover { background: #1ebe5b; }
.lineas-horario { margin: 10px 0 0; font-size: .84rem; font-weight: 600; color: var(--texto); }
.contenido .lineas-horario { margin: 10px 0 0; font-size: .84rem; line-height: 1.45; font-weight: 600; color: var(--texto); }
.contenido .tel-lista small { display: block; margin-top: 1px; font-size: .78rem; line-height: 1.35; font-weight: 600; color: var(--texto-suave); }

/* Noticia con afiche: la imagen se ve completa; galeria de fotos verticales */
.noticia-tarjeta-afiche > a { background: #fff; }
.noticia-tarjeta-afiche img { object-fit: contain; }
.galeria-vertical a:first-child { grid-column: auto; }
.galeria-vertical img, .galeria-vertical a:first-child img { aspect-ratio: 3 / 4; object-position: center 20%; }
