/* ISP Lima – Pedagógico de Lima. Hoja de estilos propia (sin Elementor). */
:root {
  --verde: #007845;
  --verde-oscuro: #00733d;
  --verde-profundo: #0b3d26;
  --amarillo: #f5c518;
  --negro: #050606;
  --texto: #333;
  --gris: #6b6b6b;
  --borde: #e3e3e3;
  --fondo-pie: #1a1a1a;
  --ancho: 1200px;
  --radio: 6px;
  --f-texto: "Rubik", system-ui, sans-serif;
  --f-titulo: "Bitter", Georgia, serif;
  --f-redondo: "Quicksand", "Rubik", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.65 var(--f-texto); color: var(--texto); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--verde); }
a:hover { color: var(--verde-oscuro); }
h1, h2, h3, h4 { font-family: var(--f-titulo); line-height: 1.25; color: var(--negro); margin: 0 0 .6em; }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 2px; }
.contenedor { width: min(100% - 2rem, var(--ancho)); margin-inline: auto; }
.contenedor--estrecho { width: min(100% - 2rem, 820px); }
.visualmente-oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: -999px; top: 0; background: var(--verde); color: #fff; padding: .5rem 1rem; z-index: 100; }
.saltar:focus { left: 1rem; }
.al-center { text-align: center; } .al-right { text-align: right; } .al-left { text-align: left; }

/* Barra superior */
.barra-superior { background: var(--verde-oscuro); color: #fff; font-size: 14px; font-weight: 500; position: relative; z-index: 60; }
.barra-superior__fila { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .55rem 0; }
.barra-superior a { color: #fff; text-decoration: none; }
.barra-superior__datos { display: flex; gap: 1.5rem; }
.barra-superior__dir { border-left: 1px solid rgba(255,255,255,.35); padding-left: 1.5rem; }

/* Cabecera y menú */
.cabecera { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.cabecera .contenedor, .barra-superior .contenedor { width: min(100% - 6rem, 1400px); }
.cabecera__fila { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 88px; }
.cabecera__logo img { height: clamp(50px, 4.2vw, 70px); width: auto; max-width: clamp(160px, 12.5vw, 250px); object-fit: contain; }
.menu > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; align-items: center; gap: 0; }
.menu li { position: relative; }
.menu a, .menu__abrir { display: flex; align-items: center; gap: .3rem; padding: .7rem clamp(.45rem, .7vw, .8rem); font: 500 15px var(--f-texto); white-space: nowrap; color: var(--negro); text-decoration: none; background: none; border: 0; cursor: pointer; }
.menu a:hover, .menu__abrir:hover, .menu .activo > a, .menu .activo > .menu__abrir, .menu a[aria-current] { color: var(--verde); }
.menu__flecha { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.menu__sub { list-style: none; margin: 0; padding: .5rem 0; position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border-top: 3px solid var(--verde); box-shadow: 0 10px 30px rgba(0,0,0,.12); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.menu__sub a { padding: .55rem 1.1rem; font-size: 14.5px; }
.menu__con-sub:hover > .menu__sub, .menu__con-sub:focus-within > .menu__sub, .menu__con-sub.abierto > .menu__sub { opacity: 1; visibility: visible; transform: none; }
.cabecera__boton { white-space: nowrap; padding: .6rem 1.2rem; font-size: 14px; }
.cabecera__hamburguesa { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.cabecera__hamburguesa span:not(.visualmente-oculto) { display: block; width: 26px; height: 2px; background: var(--verde); margin: 5px 0; transition: .2s; }

/* Menú secundario (franja superior) */
.menu__movil { display: none; }
.barra-superior:has(.menu--sec) .barra-superior__fila { padding: 0; }
.menu--sec a, .menu--sec .menu__abrir { color: #fff; font-size: 14px; padding: .55rem .7rem; }
.menu--sec > ul > li:last-child > a, .menu--sec > ul > li:last-child > .menu__abrir { padding-right: 0; }
.menu--sec .menu__sub { left: auto; right: 0; }
.menu--sec a:hover, .menu--sec .menu__abrir:hover, .menu--sec .activo > a, .menu--sec .activo > .menu__abrir, .menu--sec > ul > li > a[aria-current] { color: var(--amarillo); }
.menu--sec .menu__sub a { color: var(--negro); }
.menu--sec .menu__sub { min-width: 230px; }
.barra-superior__datos { align-items: center; }

/* Portada de páginas internas */
.portada { position: relative; min-height: 340px; display: grid; place-items: center; text-align: center; color: #fff; background: var(--verde-profundo); overflow: hidden; }
.portada__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portada::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--verde-profundo) 68%, transparent); }
.portada__texto { position: relative; z-index: 1; padding: 4rem 0; }
.portada h1 { color: #fff; font: 600 clamp(30px, 4vw, 44px) var(--f-texto); margin: 0 0 .5rem; }
.migas ol { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; font-size: 15px; font-weight: 500; }
.migas li + li::before { content: "/"; margin-right: .5rem; }
.migas a { color: #fff; text-decoration: none; }

/* Cuerpo y bloques */
.cuerpo { padding: 3.5rem 0; }
.cuerpo--inicio { padding: 0 0 2rem; }
.b + .b { margin-top: 2rem; }
.cuerpo--inicio > .b + .b { margin-top: 3.5rem; }
/* En la portada, todo bloque va centrado con márgenes laterales, salvo los que ocupan el ancho completo */
.cuerpo--inicio > .b:not(.b--carrusel):not(.b--portada):not(.b--banner):not(.b--video_archivo):not(.b--noticias):not(.b--testimonios) { width: min(100% - 2rem, var(--ancho)); margin-inline: auto; }
.introduccion { font-size: 18px; color: var(--gris); }
.titulo { font-weight: 600; }
h2.titulo { font-size: clamp(26px, 3vw, 36px); }
h3.titulo { font-size: 24px; } h4.titulo { font-size: 20px; }
.titulo--verde { color: var(--verde); }
.texto p { margin: 0 0 1em; }
.texto ul, .texto ol { padding-left: 1.3em; }
.texto h2, .texto h3, .texto h4 { color: var(--verde); }
.texto a { word-break: break-word; }
.imagen { margin: 0; }
.imagen img { margin-inline: auto; border-radius: var(--radio); }
.imagen--mediano img { max-width: 640px; } .imagen--pequeno img { max-width: 320px; }
.imagen.al-left img { margin-left: 0; } .imagen.al-right img { margin-right: 0; }
.imagen figcaption { text-align: center; font-size: 14px; color: var(--gris); margin-top: .5rem; }
.imagen-texto { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.imagen-texto--derecha .imagen-texto__img { order: 2; }
.imagen-texto__img img { border-radius: var(--radio); }

.botones { display: flex; flex-wrap: wrap; gap: .8rem; }
.botones.al-center { justify-content: center; } .botones.al-right { justify-content: flex-end; }
.boton { display: inline-block; padding: .85rem 1.8rem; border-radius: 3px; font: 700 16px var(--f-texto); text-decoration: none; text-transform: none; border: 2px solid transparent; cursor: pointer; transition: .2s; }
.boton--verde { background: var(--boton, #069847); color: #fff; }
.boton--verde:hover { background: var(--verde-oscuro); color: #fff; }
.boton--oscuro { background: #000; color: #fff; }
.boton--oscuro:hover { background: var(--verde); color: #fff; }
.boton--borde { border-color: var(--verde); color: var(--verde); }
.boton--borde:hover { background: var(--verde); color: #fff; }
.boton--chico { padding: .45rem 1.1rem; font-size: 13px; font-weight: 500; }
.b--botones .boton { font-size: 18px; padding: 1rem 2.2rem; }

.tarjetas { display: grid; gap: 2rem; }
.tarjetas--2 { grid-template-columns: repeat(2, 1fr); } .tarjetas--3 { grid-template-columns: repeat(3, 1fr); } .tarjetas--4 { grid-template-columns: repeat(4, 1fr); }
.tarjeta { text-align: center; }
.tarjeta__enlace { text-decoration: none; color: inherit; display: block; }
.tarjeta__icono { margin: 0 auto 1rem; max-height: 160px; width: auto; }
.tarjeta__simbolo { display: inline-grid; place-items: center; width: 64px; height: 64px; border: 1px solid var(--verde); color: var(--verde); margin-bottom: 1.2rem; }
.tarjeta__simbolo svg { width: 38px; height: 38px; }
.tarjeta__titulo { font-size: 22px; font-weight: 600; margin-bottom: .5rem; }
.tarjeta__enlace:hover .tarjeta__titulo { color: var(--verde); }
.tarjeta__texto { font-size: 14px; color: var(--gris); }
.tarjetas--caja .tarjeta { padding: 2rem 1.5rem; border-radius: 10px; box-shadow: 0 6px 26px rgba(0,0,0,.08); background: #fff; }
.tarjetas--simple .tarjeta__icono { max-height: 150px; }
.tarjetas--verde .tarjeta__icono { width: 96px; height: 96px; object-fit: contain; padding: 18px; background: var(--verde); border-radius: 8px; }

.banner { position: relative; margin-inline: auto; width: min(100% - 2rem, 1300px); background: var(--verde-profundo); color: #fff; overflow: hidden; }
.banner__fondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.banner__fila { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 4rem clamp(1.5rem, 5vw, 5rem); }
.banner h2 { color: #fff; font: 900 clamp(30px, 3.6vw, 50px)/1.15 var(--f-titulo); text-transform: uppercase; }
.banner__img video { width: 100%; display: block; }
.menu__padre { display: flex; align-items: center; }
.menu__abrir--solo { padding-left: 0; }
.banner .texto { font-family: var(--f-titulo); font-size: 15px; }
.banner .texto a { color: #fff; }

.carrusel { position: relative; overflow: hidden; background: #f3f3f3; }
.carrusel__pista { display: grid; }
.carrusel__slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s, visibility .7s; }
.carrusel__slide.activo { opacity: 1; visibility: visible; }
.carrusel__slide img { width: 100%; aspect-ratio: auto; height: clamp(260px, 36vw, 540px); object-fit: cover; }
@media (max-width: 800px) { .carrusel__slide img { aspect-ratio: 4 / 3; height: auto; } }
.carrusel__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.75); color: var(--verde); cursor: pointer; display: grid; place-items: center; }
.carrusel__btn:hover { background: #fff; }
.carrusel__btn--ant { left: 1rem; } .carrusel__btn--sig { right: 1rem; }
.carrusel__puntos { position: absolute; bottom: 1rem; left: 0; right: 0; display: flex; justify-content: center; gap: .5rem; }
.carrusel__puntos button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.carrusel__puntos button[aria-current] { background: #fff; }

.noticias { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; align-items: start; }
.noticias__titulo { padding-bottom: 1.2rem; border-bottom: 1px solid var(--verde); }
.noticias__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
.noticia { text-align: center; }
.noticia img { margin: 0 auto 1rem; width: 130px; height: 80px; object-fit: cover; }
.noticia h3 { font-size: 18px; font-weight: 600; }
.noticias__form { border: 2px solid #8fcbac; padding: 1rem 1.2rem 1.5rem; }
.noticias__form-titulo { text-align: center; font-size: 32px; font-weight: 600; }

.formulario { display: grid; gap: 1rem; }
.campo label { display: block; font-size: 14px; font-weight: 500; margin-bottom: .3rem; }
.campo input[type=text], .campo input[type=email], .campo input[type=tel], .campo input[type=number], .campo input[type=url], .campo input[type=date], .campo select, .campo textarea {
  width: 100%; padding: .7rem .8rem; border: 1px solid #ccc; border-radius: 4px; font: inherit; background: #fff; }
.campo textarea { min-height: 120px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--verde); outline: 2px solid rgba(0,120,69,.25); }
.campo small { color: var(--gris); font-size: 13px; }
.campo--error input, .campo--error textarea, .campo--error select { border-color: #c62828; }
.campo__error { color: #c62828; font-size: 13px; margin: .3rem 0 0; }
.campo input[type=checkbox], .campo input[type=radio] { margin-right: .4rem; }
.campo ul { list-style: none; padding: 0; margin: 0; }
.req { color: #c62828; }
.formulario__trampa { position: absolute; left: -9999px; }
.formulario .boton { justify-self: start; }

.testimonios__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 3rem; }
.testimonio { position: relative; margin: 0; padding: 2.2rem 2rem; background: var(--verde); color: #fff; border-radius: 28px; text-align: center; font: 500 16px/1.45 var(--f-redondo); }
.testimonio::before, .testimonio::after { content: "\201C"; position: absolute; font: 700 120px/1 Georgia, serif; color: var(--amarillo); }
.testimonio::before { top: -38px; left: -14px; }
.testimonio::after { content: "\201D"; bottom: -86px; right: -10px; }
.testimonio figcaption { font: 700 22px var(--f-redondo); margin-bottom: .5rem; }
.testimonio blockquote { margin: 0; }
.testimonio__foto { border-radius: 50%; margin: 0 auto .8rem; }
.testimonios__titulo { font-family: var(--f-redondo); font-weight: 700; margin-bottom: 3rem; }

.acordeon details { border: 1px solid var(--borde); border-radius: var(--radio); margin-bottom: .6rem; }
.acordeon summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 600; color: var(--verde); list-style-position: inside; }
.acordeon .texto { padding: 0 1.1rem 1rem; }
.documentos { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.documentos a { display: flex; gap: .7rem; align-items: center; padding: .8rem 1rem; border: 1px solid var(--borde); border-radius: var(--radio); text-decoration: none; color: var(--negro); }
.documentos a:hover { border-color: var(--verde); color: var(--verde); }
.documentos svg { color: var(--verde); flex: none; }
.galeria { display: grid; gap: .8rem; }
.galeria--2 { grid-template-columns: repeat(2, 1fr); } .galeria--3 { grid-template-columns: repeat(3, 1fr); } .galeria--4 { grid-template-columns: repeat(4, 1fr); }
.galeria img { border-radius: var(--radio); }
.mapa iframe { width: 100%; border: 0; border-radius: var(--radio); }
.video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.video-archivo { background: center / cover no-repeat; padding: clamp(1rem, 4vw, 3rem) 0; text-align: center; }
.video-archivo video { width: min(100%, 960px); margin-inline: auto; display: block; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.tabla, .b--tabla { overflow-x: auto; }
.b--tabla table { border-collapse: collapse; width: 100%; font-size: 14px; }
.b--tabla th, .b--tabla td { border: 1px solid var(--borde); padding: .55rem .75rem; text-align: left; vertical-align: top; }
.b--tabla thead th, .b--tabla tr:first-child th { background: var(--verde); color: #fff; }
.b--tabla tbody tr:nth-child(even) td { background: #f6faf8; }
.b--tabla caption { caption-side: top; font-weight: 600; padding: .5rem 0; }
.tabla table { border-collapse: collapse; width: 100%; }
.tabla th, .tabla td { border: 1px solid var(--borde); padding: .6rem .8rem; text-align: left; }
.tabla th { background: #f2f8f5; }
.columnas { display: grid; gap: 2rem; align-items: start; }
.columnas--2 { grid-template-columns: repeat(2, 1fr); } .columnas--3 { grid-template-columns: repeat(3, 1fr); } .columnas--4 { grid-template-columns: repeat(4, 1fr); }
.columna > .b + .b { margin-top: 1rem; }

.equipo { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2rem; }
.persona { text-align: center; }
.persona__foto { border-radius: 50%; margin: 0 auto 1rem; width: 160px; }
.persona__nombre { font-size: 20px; margin-bottom: .2rem; }
.persona__cargo { color: var(--verde); font-weight: 500; margin: 0 0 .5rem; }
.persona__desc { font-size: 14px; color: var(--gris); }
.tarjetas--caja .tarjeta img { border-radius: 8px; margin-bottom: 1rem; }
.noticia-tarjeta { text-align: left; }
.noticia-tarjeta h3 a { color: var(--negro); text-decoration: none; }
.noticia-tarjeta h3 a:hover { color: var(--verde); }
.noticia-tarjeta__fecha { font-size: 13px; color: var(--gris); margin: 0 0 .4rem; }
.etiqueta { display: inline-block; background: var(--verde); color: #fff; border-radius: 3px; padding: .05rem .45rem; font-size: 12px; margin-right: .3rem; }
.paginacion { display: flex; justify-content: center; gap: .4rem; margin-top: 2rem; }
.paginacion a { padding: .4rem .8rem; border: 1px solid var(--borde); border-radius: 4px; text-decoration: none; }
.paginacion a[aria-current] { background: var(--verde); color: #fff; border-color: var(--verde); }

/* Aliados y pie */
.aliados { padding: 2.5rem 0; background: #fff; }
.aliados { overflow: hidden; }
.aliados__fila { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.aliados__pista { display: flex; align-items: center; gap: 4rem; width: max-content; animation: aliados-correr 40s linear infinite; }
.aliados__fila:hover .aliados__pista { animation-play-state: paused; }
.aliados__pista > a, .aliados__pista > span { flex: none; }
.aliados__fila img { max-height: 64px; width: auto; filter: none; display: block; }
@keyframes aliados-correr { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .aliados__pista { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } .aliados__pista [aria-hidden] { display: none; } }
.pie { background: var(--fondo-pie); color: var(--texto-pie, #e0e0e0); font-size: 15px; }
.pie__fila { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr 1fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.pie a { color: var(--texto-pie, #e0e0e0); text-decoration: none; }
.pie a:hover { color: var(--texto-pie, #fff); text-decoration: underline; }
.pie__marca img { max-width: 230px; }
.pie__redes { display: flex; gap: .9rem; margin-top: 2rem; }
.pie__titulo { color: var(--texto-pie, #fff); font: 700 20px var(--f-texto); margin: .3rem 0 1.2rem; }
.pie__titulo--linea::after { content: ""; display: block; width: 36px; height: 2px; background: #d9541e; margin-top: .8rem; }
.pie__frase { margin-top: 1.5rem; }
.pie__contacto, .pie__recursos { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.pie__contacto li { display: flex; gap: .8rem; align-items: flex-start; }
.pie__contacto svg { color: #d9541e; flex: none; margin-top: 2px; }
.pie__derechos { border-top: 1px solid color-mix(in srgb, var(--texto-pie, #e0e0e0) 25%, transparent); padding: 1.4rem 0; font-size: 14px; }

.whatsapp-flotante { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.whatsapp-flotante svg { width: 30px; height: 30px; }
.whatsapp-flotante:hover { color: #fff; transform: scale(1.06); }
.gracias { text-align: center; font-size: 18px; }

/* Responsive */
@media (max-width: 1100px) {
  .menu--sec { display: none; }
  .menu__movil { display: block; }
  .barra-superior:has(.menu--sec) .barra-superior__fila { padding: .55rem 0; justify-content: center; }
  .cabecera__hamburguesa { display: block; }
  .cabecera__boton { display: none; }
  .menu { position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw); background: #fff; padding: 5rem 1rem 2rem; overflow-y: auto; transform: translateX(100%); transition: transform .25s; box-shadow: -10px 0 30px rgba(0,0,0,.15); }
  .menu:not(.menu--sec):not(.abierto) { transform: translateX(calc(100% + 40px)); visibility: hidden; transition: transform .25s, visibility 0s .25s; }
  .menu.abierto { transform: none; visibility: visible; transition: transform .25s; }
  .menu > ul { flex-direction: column; align-items: stretch; }
  .menu a, .menu__abrir { width: 100%; justify-content: space-between; border-bottom: 1px solid var(--borde); }
  .menu__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; padding: 0 0 0 1rem; min-width: 0; }
  .menu__con-sub.abierto > .menu__sub { display: block; }
  .menu__padre a { flex: 1; }
  .menu__padre .menu__abrir--solo { width: auto; flex: none; padding: .7rem .9rem; }
  .menu__con-sub:hover > .menu__sub { display: none; }
  .menu__con-sub.abierto:hover > .menu__sub { display: block; }
  .cabecera__hamburguesa { position: relative; z-index: 2; }
  .cabecera__hamburguesa[aria-expanded=true] span:nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
  .cabecera__hamburguesa[aria-expanded=true] span:nth-of-type(3) { opacity: 0; }
  .cabecera__hamburguesa[aria-expanded=true] span:nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }
  .pie__fila { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .barra-superior__dir, .barra-superior__fila > span:not(.barra-superior__datos) { display: none; }
  .barra-superior__fila { justify-content: center; }
  .imagen-texto, .banner__fila, .noticias, .columnas--2, .columnas--3, .columnas--4 { grid-template-columns: 1fr; }
  .imagen-texto--derecha .imagen-texto__img { order: 0; }
  .tarjetas--3, .tarjetas--4, .galeria--3, .galeria--4 { grid-template-columns: repeat(2, 1fr); }
  .cabecera__fila { min-height: 72px; }
  .cabecera__logo img { height: 52px; }
  .portada { min-height: 240px; }
  .carrusel__btn { width: 40px; height: 40px; }
}
@media (max-width: 520px) {
  .tarjetas--2, .tarjetas--3, .tarjetas--4, .noticias__grid, .pie__fila { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Portada principal (foto con título) */
.heroe { width: 100%; }
.heroe__slide { position: relative; }
.heroe .carrusel__slide .heroe__foto { width: 100%; height: clamp(420px, 44vw, 660px); object-fit: cover; }
.heroe__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(8, 22, 16, .78) 0%, rgba(8, 22, 16, .5) 42%, rgba(8, 22, 16, 0) 72%); }
.heroe__slide--left::after { background: linear-gradient(90deg, rgba(8, 22, 16, .78) 0%, rgba(8, 22, 16, .5) 42%, rgba(8, 22, 16, 0) 72%); }
.heroe__texto { position: absolute; z-index: 1; top: 50%; transform: translateY(-50%); right: 6%; width: min(580px, 88%); color: #fff; }
.heroe__slide--left .heroe__texto { right: auto; left: 6%; }
.heroe__etiqueta { display: inline-block; margin: 0 0 1rem; padding: .35rem 1rem; border-radius: 30px; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); font-size: 15px; font-weight: 500; }
.heroe__titulo { color: #fff !important; font: 700 clamp(32px, 4.2vw, 60px)/1.12 var(--f-titulo); margin: 0 0 1rem; }
.heroe__frase { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.6; margin: 0 0 2rem; color: rgba(255,255,255,.92); }
.heroe__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; }
.heroe__dato { margin: 0; display: flex; flex-direction: column; line-height: 1.2; }
.heroe__dato strong { font-size: 28px; font-weight: 700; }
.heroe__dato span { font-size: 15px; opacity: .9; }
@media (max-width: 800px) {
  .heroe .carrusel__slide .heroe__foto { height: 540px; }
  .heroe__slide::after, .heroe__slide--left::after { background: linear-gradient(0deg, rgba(8, 22, 16, .85) 0%, rgba(8, 22, 16, .45) 55%, rgba(8, 22, 16, .05) 100%); }
  .heroe__texto, .heroe__slide--left .heroe__texto { top: auto; bottom: 2rem; transform: none; left: 1.2rem; right: 1.2rem; width: auto; }
}

/* Presentación: texto + foto con video */
.presentacion { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.presentacion--foto-left .presentacion__media { order: -1; }
.presentacion__etiqueta { color: var(--verde); font-weight: 600; font-size: 16px; margin: 0 0 .6rem; }
.presentacion__titulo { font: 700 clamp(30px, 3.4vw, 46px)/1.15 var(--f-titulo); margin: 0 0 1.2rem; }
.presentacion .texto { margin-bottom: 1.6rem; }
.presentacion__puntos { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.presentacion__puntos li { display: flex; align-items: center; gap: .7rem; font-weight: 500; color: var(--negro); }
.presentacion__icono { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: color-mix(in srgb, var(--verde) 9%, #fff); color: var(--verde); }
.presentacion__icono svg { width: 22px; height: 22px; }
.presentacion__media { position: relative; }
.presentacion__foto { width: 100%; border-radius: 8px; aspect-ratio: 5 / 4; object-fit: cover; }
.presentacion__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 86px; height: 86px; border-radius: 50%; border: 0; background: #fff; color: var(--verde); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.presentacion__play::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); animation: pulso 2s ease-out infinite; }
.presentacion__play:hover { transform: translate(-50%, -50%) scale(1.06); }
@keyframes pulso { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .presentacion__play::before { animation: none; } }
@media (max-width: 800px) { .presentacion { grid-template-columns: 1fr; } .presentacion__media { order: -1; } .presentacion__foto { aspect-ratio: 4 / 3; } }

/* Ventana del video */
.ventana-video { border: 0; padding: 0; background: transparent; width: min(92vw, 1100px); max-height: 92vh; }
.ventana-video::backdrop { background: rgba(5, 12, 9, .82); }
.ventana-video video { width: 100%; max-height: 86vh; border-radius: 4px; display: block; background: #000; }
.ventana-video__cerrar { position: absolute; top: -.2rem; right: .2rem; z-index: 1; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #111; font-size: 26px; line-height: 1; cursor: pointer; }
.celda-corta { white-space: nowrap; }
.b--tabla td, .b--tabla th { hyphens: manual; }
.pie__derechos-fila { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; }
.pie__credito, .pie__credito a { font-weight: 400; font-size: 13px; opacity: .6; }
.pie__credito a:hover { opacity: .9; }
@media (max-width: 800px) { .pie__derechos-fila { justify-content: center; text-align: center; } }
.tarjetas:has(> .tarjeta:only-child) { grid-template-columns: minmax(0, 780px); justify-content: center; }
.tarjeta:only-child .tarjeta__texto, .tarjeta:only-child .tarjeta__texto p { font-size: 16.5px; line-height: 1.75; }
