/* Maqueta del rediseño de portada uchile.cl, a partir del Figma de Gonzalo Ramírez
   (archivo "rediseño-portada-uchile-2026", versiones 4 y 5, escritorio y móvil).
   Escritorio: lienzo de 1920 con contenido de 1500. Móvil: lienzo de 390. */

:root {
  --azul: #004b93;
  --azul-texto: #024a93;
  --azul-noche: #00254a;
  --azul-pie: #042849;
  --azul-banda: #004078;
  --azul-boton-pie: #082c59;
  --tinta: #221f20;
  --tinta-2: #1e1e1c;
  --gris-cifras: #333;
  --crema: #f6f8fb;
  --borde-header: #d6e2f0;
  --gris-seccion: #f3f4f5;
  --gris-cartelera: #edeff2;
  --gris-vinculacion: #eaeaea;
  --gris-destacado-movil: #e2e7ee;
  --filete: #b3bfd0;
  --cian: #007fad;
  --amarillo: #f2da7a;
  --rojo: #c4271e;
  --verde: #07693f;
  --naranjo: #f6b041;
  --papel: #faf8f5;
  --sombra-boton: drop-shadow(2px 2px 2px rgba(0, 0, 0, .25));
  --serif: "Crimson Text", Georgia, serif;
  --sans: "Raleway", Arial, sans-serif;
  --pie: "PT Sans", Arial, sans-serif;
  --zoom: cubic-bezier(.22, .7, .2, 1); /* curva del componente hover-zoom del Figma (0,7 s) */
  --sombra-hover: 0 4px 25px rgba(0, 0, 0, .25);
  --ancho: 1500px;
  --margen: 32px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--tinta); font-family: var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.contenedor { width: min(var(--ancho), calc(100% - 2 * var(--margen))); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Títulos de sección */
.titulo-seccion { font-family: var(--serif); font-weight: 400; font-size: 60px; line-height: 1.2; text-align: center; color: var(--tinta); }
.titulo-seccion.claro { color: #fff; }

/* Botones */
/* Como el artefacto de prototipo de Gonzalo: el hover funde un degradado radial oscuro (::before) en 0,2 s */
.boton { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; padding: 18px 32px; border-radius: 4px; font-weight: 600; font-size: 18px; line-height: normal; box-shadow: 2px 2px 2px rgba(0, 0, 0, .25); background: var(--azul); color: #fff; white-space: nowrap; transition: box-shadow .2s ease-out, color .2s ease-out; }
.boton::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(107.3% 348.2% at 50% 50%, var(--azul-pie) 0%, var(--azul) 100%); opacity: 0; transition: opacity .2s ease-out; }
.boton.blanco { background: #fff; color: var(--azul); }
.acciones { display: flex; justify-content: center; }

.boton-sec { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--cian); border-radius: 4px; background: #fff; color: var(--cian); font-weight: 500; font-size: 17px; white-space: nowrap; transition: background-color .5s ease-out, color .5s ease-out; }
.boton-sec img { width: 14px; height: 14px; transition: filter .5s ease-out; }
.barra-botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }

.etiqueta { display: inline-block; padding: 4px 8px; border-radius: 3px; background: #fff; color: #000; font-weight: 500; font-size: 12px; line-height: 1.2; text-transform: uppercase; }

.flecha { width: 40px; height: 40px; flex: none; }
.flecha svg { display: block; width: 100%; height: 100%; }
.flecha rect { fill: #fff; transition: fill .2s ease-out; }
.flecha .borde { stroke: var(--azul-pie); }
.flecha path { fill: var(--azul-pie); transition: fill .2s ease-out; }
.flecha.atras svg { transform: rotate(180deg); }

/* Marco que recorta la foto para el zoom del hover */
.marco { display: block; overflow: hidden; border-radius: 4px; }
.marco img, .noticia-principal > img, .noticias .laterales figure img, .estudia figure img, .investigacion article > img, .internacional figure img { transition: transform .7s var(--zoom); }

/* ---------- Encabezado ---------- */
.cabecera { background: var(--crema); border-bottom: 1px solid var(--borde-header); }
.cabecera .contenedor { display: flex; justify-content: space-between; gap: 32px; height: 130px; }
.cabecera .logo { margin-top: 20px; width: 210px; height: 90px; flex: none; }
.cabecera .logo img { width: 210px; height: 90px; }
.cabecera .derecha { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.utilidades { display: flex; align-items: center; gap: 32px; }
.enlaces-uchile { display: flex; align-items: center; gap: 18px; padding: 18px 0; color: var(--azul); font-size: 14px; white-space: nowrap; }
.enlaces-uchile > a, .enlaces-uchile .desplegable { transition: color .18s ease; }
.enlaces-uchile .desplegable { display: inline-flex; align-items: center; gap: 4px; }
.enlaces-uchile .desplegable img { width: 8px; height: 4px; transition: transform .2s ease-out; }
.enlaces-uchile .desplegable[aria-expanded="true"] img { transform: rotate(180deg); }
.despliega { position: relative; }
.panel { position: absolute; z-index: 30; top: calc(100% + 18px); left: 0; display: none; padding: 16px; border-radius: 4px; background: #fff; box-shadow: 0 4px 12.5px rgba(0, 0, 0, .25); white-space: nowrap; }
.despliega.abierto .panel { display: flex; animation: aparecer .2s ease-out; }
.panel a { display: block; padding: 10px 0; font-size: 14px; line-height: 16px; color: var(--azul); }
.panel a:hover { text-decoration: underline; }
.panel-facultades { gap: 16px; }
.panel-facultades > div { min-width: 236px; }
.panel-facultades > div + div { padding-left: 16px; border-left: 1px solid #d6dbe1; }
.panel-info { flex-direction: column; min-width: 145px; }
@keyframes aparecer { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.enlaces-uchile .sep { width: 1px; height: 16px; background: #282828; }
.buscador { position: relative; width: 220px; height: 36px; border-radius: 4px; background: rgba(179, 191, 208, .3); }
.buscador input { width: 100%; height: 100%; padding: 0 40px 0 12px; border: 0; border-radius: 4px; background: transparent; font: 500 14px var(--sans); color: #333; outline-offset: 2px; }
.buscador input::-webkit-search-cancel-button { display: none; }
.buscador button { position: absolute; right: 2px; top: 2px; width: 32px; height: 32px; padding: 6px; border-radius: 100px; }
.buscador button img { width: 20px; height: 20px; }
.menu-principal { display: flex; gap: 32px; }
/* Subrayado que crece de izquierda a derecha (Figma Make, 0,22 s) */
.menu-principal a { position: relative; display: block; white-space: nowrap; padding-bottom: 20px; color: var(--azul); font-size: 18px; text-transform: uppercase; }
.menu-principal a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 4px; border-radius: 4px 4px 0 0; background: var(--azul); transition: right .22s ease; }
.menu-principal a:hover::after { right: 0; }
.cabecera-movil { display: none; }

/* ---------- Carrusel principal ---------- */
.carrusel { position: relative; height: 540px; overflow: hidden; color: #fff; }
.diapos { position: absolute; inset: 0; }
.diapo { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 0s 1s; }
.diapo.activa { opacity: 1; visibility: visible; z-index: 1; transition: opacity 1s ease, visibility 0s; }
.diapo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.diapo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(30, 30, 28, 0) 50%, rgba(30, 30, 28, .47) 70.19%, rgba(30, 30, 28, .95) 100%); }
.diapo .contenedor { position: relative; z-index: 1; height: 100%; }
.carrusel .controles { position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 100%; pointer-events: none; }
.carrusel .controles > * { pointer-events: auto; }
.carrusel .flecha { position: absolute; top: 250px; }
.carrusel .flecha.atras { left: 0; }
.carrusel .flecha.adelante { right: 0; }
.puntos { position: absolute; top: 40px; right: 0; display: flex; align-items: center; gap: 12px; filter: drop-shadow(0 4px 12.5px #000); }
.puntos .punto { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #fff; transition: background-color .3s ease; }
.puntos .punto.activo { background: #fff; }
.puntos .pausa { width: 12px; height: 14px; background: linear-gradient(to right, #fff 0 4px, transparent 4px 8px, #fff 8px 12px); }
.carrusel.pausado .pausa { background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); }
/* Anclado abajo: con dos líneas queda donde el Figma (top 389px); con tres crece hacia arriba */
.carrusel .titular { position: absolute; left: 0; right: 0; bottom: 40px; margin-inline: auto; max-width: 1260px; font-family: var(--serif); font-weight: 400; font-size: 60px; line-height: 55.3px; }
/* Las fotos se disuelven en 1 s; los titulares no se cruzan: el que sale se apaga en .3 s y el que entra aparece después */
.carrusel .diapo:not(.activa) .titular { opacity: 0; transition: opacity .3s ease; }
.carrusel .diapo.activa .titular { transition: opacity .5s ease .3s; }

/* ---------- Destacados ---------- */
.destacados { padding: 81px 0 90px; }
.v4 .destacados { background: var(--azul); }
.v4 .destacados .titulo-seccion { color: #fff; }
.v5 .destacados { padding: 80px 0 84px; background: #fff; }
.v5 .destacados .titulo-seccion { color: var(--tinta); }
.destacados .encabezado-fila { position: relative; }
.destacados .navegacion { position: absolute; right: 58px; top: 5px; display: flex; gap: 18px; }
.destacados .riel { margin: 41px 0 -30px; padding: 10px 0 30px; overflow: hidden; } /* holgura para la elevación y sombra del hover */
.destacados ul { display: flex; gap: 40px; transition: transform .35s ease; }
.destacados li { flex: 0 0 calc((100% - 80px) / 3); display: flex; border-radius: 4px; background: #fff; transition: background-color .3s ease-out, box-shadow .3s ease-out, transform .25s ease; }
.v5 .destacados li { background: var(--azul); }
.destacados .marco { width: 200px; height: 200px; flex: none; }
.destacados .marco img { width: 100%; height: 100%; object-fit: cover; }
.destacados li p { display: flex; align-items: center; padding: 20px; font-weight: 600; font-size: 18px; color: var(--azul); transition: color .3s ease-out; }
.v5 .destacados li p { color: #fff; }
.destacados .recorte { position: relative; }
.destacados .recorte img { position: absolute; left: -36.9%; top: -24.25%; width: 201.8%; max-width: none; height: 252.25%; transform-origin: 43% 29.4%; }
.destacados .acciones { margin-top: 60px; }
.v5 .destacados .acciones { margin-top: 50px; }

/* ---------- Estudia en la U. de Chile ---------- */
.estudia { background: var(--gris-seccion); padding: 90px 0 106px; }
.v5 .estudia { position: relative; overflow: hidden; background: var(--azul); padding: 116px 0 90px; }
.v5 .estudia::before { content: ""; position: absolute; left: 50%; top: 27px; width: 4868px; height: 1271px; transform: translateX(-50%); background: url(assets/patron-estudia.svg) no-repeat; pointer-events: none; }
.v5 .estudia > * { position: relative; }
.v5 .estudia .titulo-seccion, .v5 .estudia .bajada { color: #fff; }
.estudia .bajada { max-width: 730px; margin: 40px auto 0; text-align: center; font-weight: 500; font-size: 20px; color: var(--tinta); }
.estudia .columnas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; align-items: start; }
.v5 .estudia .columnas { margin-top: 50px; }
.estudia figure { margin: 0; height: 220px; overflow: hidden; border-radius: 4px; }
.v5 .estudia figure { border-radius: 4px 4px 0 0; }
.estudia figure img { width: 100%; height: 100%; object-fit: cover; }
.estudia h3 { padding: 18px 0 12px; font-weight: 600; font-size: 30px; color: var(--tinta-2); }
.estudia .lista a { display: block; padding: 20px 0; border-bottom: 1px solid var(--filete); font-weight: 600; font-size: 18px; color: var(--azul-texto); transition: border-color .3s ease-out; }
.v5 .estudia .tarjeta { padding: 0 24px 24px; border-radius: 0 0 4px 4px; background: var(--crema); }
.estudia .accesos { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.estudia .accesos div { display: flex; gap: 12px; }
.v4 .estudia .accesos div + div .boton-sec { padding-block: 8px; }
.v5 .estudia .accesos { margin-top: 30px; }
.v5 .estudia .accesos div + div .boton-sec { padding-block: 10px; } /* anula la regla .v4 en v1-prueba */

/* ---------- Noticias ---------- */
.noticias { padding: 100px 0; }
.v4 .noticias { position: relative; overflow: hidden; background: var(--amarillo); }
.v4.igual .noticias { background: var(--gris-cartelera); } /* versión acotada publicada (v1/): gris y sin escudo, 27 de octubre */
.v4 .noticias .ornamento { position: absolute; right: 0; top: 357px; width: 427px; height: 922px; pointer-events: none; }
.v4 .noticias > .contenedor { position: relative; }
.noticias .portada { display: grid; grid-template-columns: 858px 1fr; gap: 40px; margin-top: 50px; }
.noticia-principal { position: relative; height: 566px; overflow: hidden; border-radius: 4px; filter: drop-shadow(0 4px 12.5px rgba(0, 0, 0, .25)); color: #f6f8fb; }
.noticia-principal img { width: 100%; height: 100%; object-fit: cover; }
.noticia-principal::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(30, 30, 28, 0) 60.78%, rgba(30, 30, 28, .9) 98.06%); }
.noticia-principal .texto { position: absolute; z-index: 1; left: 32px; right: 37px; bottom: 37px; }
.noticia-principal h3 { margin-top: 20px; max-width: 789px; font-weight: 500; font-size: 30px; line-height: normal; }
.noticias .laterales { display: flex; flex-direction: column; gap: 40px; }
.noticias .laterales li { display: flex; gap: 18px; align-items: center; }
.noticias .laterales figure { position: relative; margin: 0; width: 257px; height: 162px; flex: none; overflow: hidden; border-radius: 4px; }
.noticias .laterales figure img { width: 100%; height: 100%; object-fit: cover; }
.noticias .laterales .etiqueta { position: absolute; left: 12px; top: 12px; }
.noticias .laterales p, .noticias .fila p { font-weight: 500; font-size: 20px; line-height: 1.2; color: var(--azul-texto); }
.noticias .fila { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 55px; }
.noticias .fila li { position: relative; }
.noticias .fila li + li::before { content: ""; position: absolute; left: -20px; top: 5px; width: 1px; height: 135px; background: var(--filete); }
.noticias .fila p { margin-top: 20px; }
.noticias .acciones { margin-top: 60px; }
.noticias .barra-botones { margin-top: 60px; }
.v5 .noticias, .igual .noticias { padding: 110px 0 100px; } /* .igual: versiones igualadas v5/ y v6/, medidas de la v2 en las dos */
.noticias .cuatro { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 50px; }
.noticias .cuatro .marco { height: 240px; transition: box-shadow .3s ease-in; }
.noticias .cuatro img { width: 100%; height: 100%; object-fit: cover; }
.noticias .cuatro p { transition: color .3s ease-in; }
.noticias .cuatro li, .vinculacion li { transition: transform .25s ease; }
.noticias .cuatro p { padding: 24px 0; font-weight: 600; font-size: 18px; color: var(--azul-texto); }
.v5 .noticias .acciones { margin-top: 41px; }

/* ---------- Facultades ---------- */
.facultades { position: relative; height: 740px; background: url(assets/facultades.jpg) center / cover no-repeat; }
.facultades .fondo-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.facultades .contenedor { position: relative; height: 100%; }
.facultades .caja { position: absolute; left: 41px; top: 539px; z-index: 2; width: 479px; height: 241px; padding: 40px; border-radius: 4px; background: var(--azul); color: #fff; }
.v5 .facultades .caja { background: rgba(250, 248, 245, .95); color: var(--tinta-2); }
.facultades .caja p { font-weight: 600; font-size: 30px; line-height: normal; max-width: 399px; }
.facultades .caja a { position: absolute; right: 40px; bottom: 40px; display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 18px; }
.v5 .facultades .caja a { color: var(--azul); }
.facultades .caja a img { width: 24px; height: 24px; }

/* ---------- Cartelera cultural ---------- */
.cartelera { padding: 100px 0; background: var(--gris-cartelera); }
.v5 .cartelera { position: relative; overflow: hidden; background: var(--amarillo); }
.v5 .cartelera .ornamento { position: absolute; left: calc(83.33% - 68px); top: 0; width: 388px; height: 732px; pointer-events: none; }
.v5 .cartelera > .contenedor { position: relative; }
.cartelera ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 52px; padding-left: 13px; }
.evento { position: relative; height: 304px; transition: transform .25s ease; }
.evento > .marco { height: 100%; transition: box-shadow .3s ease-in; }
.evento > .marco img { width: 100%; height: 100%; object-fit: cover; transition-duration: .3s; transition-timing-function: ease-in; }
.evento .etiqueta { position: absolute; left: 20px; top: 20px; }
.evento .calendario { position: absolute; left: -12px; top: 164px; display: flex; width: min(392px, calc(100% - 8px)); border-radius: 4px; }
.evento .fecha { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 120px; height: 120px; flex: none; border-radius: 4px 0 0 4px; background: var(--azul); color: #fff; font-family: var(--serif); text-align: center; }
.evento .fecha .mes { font-size: 32px; line-height: 32px; margin-bottom: -3px; }
.evento .fecha .dia { font-size: 70px; line-height: 68px; }
.evento .nombre { display: flex; align-items: center; flex: 1; padding: 20px; border-radius: 0 4px 4px 0; background: var(--crema); font-weight: 600; font-size: 18px; color: var(--azul-texto); }
.cartelera .barra-botones { margin-top: 60px; }

/* ---------- Comunidad universitaria ---------- */
.comunidad { position: relative; overflow: hidden; padding: 100px 0; color: #f6f8fb; }
.comunidad .fondo { position: absolute; inset: 0; z-index: 0; }
.comunidad .fondo img { width: 100%; height: 100%; object-fit: cover; }
.v4 .comunidad .fondo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(106.5deg, rgba(39, 126, 88, .9) 8.81%, rgba(24, 85, 89, .7) 75.77%, rgba(8, 44, 89, .4) 106.65%); }
.v5 .comunidad .fondo { inset: -27px -94px; }
.v5 .comunidad .fondo img { filter: blur(7.5px); }
.v5 .comunidad .fondo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .55) 3.77%, rgba(0, 0, 0, 0) 50%), rgba(8, 44, 89, .15); }
.comunidad > .contenedor { position: relative; z-index: 1; }
.comunidad .titulo-seccion { color: #f6f8fb; }
.testimonio { display: flex; align-items: center; gap: 41px; width: 986px; max-width: 100%; margin: 66px auto 0; }
.testimonio .marco { width: 344px; height: 344px; flex: none; box-shadow: 2px 2px 4px rgba(0, 0, 0, .25); }
.testimonio .marco img { width: 100%; height: 100%; object-fit: cover; object-position: bottom; transition-duration: .3s; transition-timing-function: ease-out; }
.testimonio blockquote p { transition: color .3s ease-out; }
.testimonio blockquote { margin: 0; align-self: stretch; padding-top: 79px; }
.testimonio blockquote p { font-weight: 600; font-size: 30px; line-height: 42px; }
.testimonio cite { display: block; margin-top: 30px; font-style: normal; font-weight: 700; font-size: 18px; line-height: 1.5; }
.testimonio cite span { font-weight: 400; }
.v5 .testimonio, .igual .testimonio { gap: 40px; width: 986px; margin-top: 56px; }
.v5 .testimonio .marco, .igual .testimonio .marco { width: 345px; height: 345px; }
.v5 .testimonio .marco { box-shadow: none; }
.v5 .testimonio blockquote { align-self: center; padding: 40px; border-radius: 4px; background: #fff; width: 601px; flex: none; }
@media (min-width: 1001px) { .igual .testimonio blockquote { flex: 0 1 601px; min-width: 0; } } /* .igual: entre 1001 y 1049 px la tarjeta de 601 px se salía del contenedor */
.v5 .testimonio blockquote p { color: var(--azul); }
.v5 .testimonio cite { margin-top: 22px; color: var(--tinta-2); }
.comunidad .barra-botones { margin-top: 40px; gap: 18px; }
.v5 .comunidad .barra-botones, .igual .comunidad .barra-botones { margin-top: 60px; }

/* ---------- Investigación (V5) ---------- */
.investigacion { padding: 140px 0 100px; background: var(--rojo); }
.investigacion .rejilla { display: grid; grid-template-columns: 890px 1fr; grid-template-rows: 298px 298px; gap: 24px; margin-top: 56px; }
.investigacion article { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 24px 24px 32px; border-radius: 4px; color: #fff; }
.investigacion article:first-child { grid-row: 1 / 3; padding-left: 32px; }
.investigacion article > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.investigacion article::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(30, 30, 28, 0) var(--corte, 40%), rgba(30, 30, 28, .8) 100%); }
.investigacion article:first-child { --corte: 64%; }
.investigacion article:last-child { --corte: 26.5%; }
.investigacion h3 { position: relative; z-index: 1; font-weight: 600; font-size: 26px; line-height: normal; }
.investigacion article:first-child h3 { font-size: 30px; }
.investigacion .acciones { margin-top: 60px; }

/* ---------- Vinculación (V5) ---------- */
.vinculacion { padding: 100px 0; background: var(--gris-vinculacion); }
.vinculacion ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; }
.vinculacion .marco { height: 300px; transition: box-shadow .5s ease-out; }
.vinculacion img { width: 100%; height: 100%; object-fit: cover; }
.vinculacion p { min-height: 110px; padding: 20px 0; font-weight: 600; font-size: 18px; color: var(--azul); }
.vinculacion .acciones { margin-top: 50px; }

/* ---------- Internacionalización (V5) ---------- */
.internacional { padding: 100px 0; background: var(--verde); }
.internacional article { display: flex; margin-top: 56px; border-radius: 4px; transition: box-shadow .3s ease-in-out; }
.internacional figure { margin: 0; width: 770px; height: 504px; flex: none; overflow: hidden; border-radius: 4px 0 0 4px; }
.internacional figure img { width: 100%; height: 100%; object-fit: cover; }
.internacional .texto { flex: 1; padding: 80px 40px 40px; border-radius: 0 4px 4px 0; background: var(--papel); box-shadow: 2px 2px 4px rgba(0, 0, 0, .25); }
.internacional h3 { font-weight: 600; font-size: 30px; line-height: 42px; color: var(--azul); }
.internacional .texto p { margin-top: 32px; font-weight: 500; font-size: 18px; line-height: 1.5; color: var(--tinta-2); }
.internacional .barra-botones { margin-top: 60px; }

/* ---------- Tradición y liderazgo ---------- */
.cifras { padding: 80px 0 100px; }
.v5 .cifras, .igual .cifras { padding-top: 100px; }
.cifras .riel { position: relative; margin-top: 54px; }
.v5 .cifras .riel { margin-top: 54px; }
.cifras ul { display: flex; justify-content: center; gap: 36px; }
.cifras li { width: 217px; text-align: center; }
.cifras strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 70px; line-height: normal; color: var(--azul-banda); }
.cifras span { display: block; font-weight: 500; font-size: 20px; color: var(--gris-cifras); }
.cifras .flecha { position: absolute; top: 60px; }
.cifras .flecha.atras { left: 1px; }
.cifras .flecha.adelante { right: 0; }
.cifras .acciones { margin-top: 60px; }

/* ---------- Pie ---------- */
.pie { background: var(--azul-pie); color: #fff; }
.pie .banda { background: var(--azul-banda); }
.pie .banda .contenedor { position: relative; display: grid; grid-template-columns: 284px 287px 232px 232px 1fr 52px; height: 52px; width: min(1350px, calc(100% - 2 * var(--margen))); padding-left: 30px; }
.pie .banda h3 { padding-top: 19px; font-weight: 500; font-size: 15px; line-height: 17.25px; text-transform: uppercase; color: var(--naranjo); }
.pie .banda h4 { padding-top: 19px; font-weight: 700; font-size: 15px; line-height: 17.25px; }
.pie .banda button { grid-column: 6; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; background: var(--azul-boton-pie); margin-right: 30px; }
.pie .banda button img { width: 24px; height: 25px; transform: scaleY(-1); }
.pie .cuerpo { width: min(1350px, calc(100% - 2 * var(--margen))); margin-inline: auto; padding: 0 30px; }
.pie .columnas { display: grid; grid-template-columns: repeat(5, 1fr); padding-top: 80px; }
.pie .columnas h4 { font-weight: 700; font-size: 16px; line-height: 18.4px; text-transform: uppercase; }
.pie .columnas ul { margin-top: 3px; max-width: 202px; }
.pie .columnas li { padding: 12px 0 0; margin-bottom: -5px; padding-bottom: 6.5px; font-family: var(--pie); font-size: 14px; line-height: 14px; color: var(--filete); }
.pie .columnas li a { display: inline-block; transition: color .18s ease, transform .18s ease; }
.pie .columnas li a:hover { color: #fff; }
.pie .columnas .barra { color: #fff; font-size: 17px; }
.pie .redes { display: flex; justify-content: center; gap: 4px; margin-top: 40px; }
.pie .redes a { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; }
.pie .redes img { transform: scaleY(-1); }
.pie .final { display: flex; justify-content: space-between; align-items: stretch; min-height: 177px; margin-top: 40px; padding-bottom: 20px; font-family: var(--pie); }
.pie .transparente { width: 262.5px; text-align: center; font-size: 14px; line-height: 21px; }
.pie .transparente strong { display: block; font-weight: 400; text-transform: uppercase; padding-bottom: 4px; }
.pie address { width: 516px; padding-top: 12px; font-style: normal; text-align: center; font-size: 13px; line-height: 14.95px; color: #ccd3da; }
.pie address p + p { margin-top: 12px; }
.pie address .b { color: #fff; }
.pie .acreditacion { width: 387px; display: flex; flex-direction: column; align-items: flex-end; }
.pie .acreditacion img { width: 335px; height: 118.32px; max-width: none; flex: none; }
.pie .acreditacion a { flex: none; }
.pie .acreditacion a { padding-top: 10px; font-size: 13px; color: #ccd3da; }

/* ---------- Pantallas medianas ---------- */
@media (max-width: 1500px) {
  .noticias .portada { grid-template-columns: 1.6fr 1fr; }
  .noticias .laterales figure { width: 46%; height: auto; aspect-ratio: 257 / 162; }
  .investigacion .rejilla { grid-template-columns: 1.52fr 1fr; }
  .internacional figure { width: 51%; }
  .destacados .marco { width: 42%; height: auto; aspect-ratio: 1; }
}
@media (max-width: 1500px) {
  .menu-principal { gap: 20px; }
  .menu-principal a { font-size: 16px; }
}
@media (max-width: 1320px) {
  .menu-principal { gap: 14px; }
  .menu-principal a { font-size: 15px; }
  .utilidades { gap: 20px; }
  .enlaces-uchile { gap: 14px; }
  .buscador { width: 180px; }
}
@media (max-width: 1280px) {
  .cifras ul { flex-wrap: wrap; }
  .pie .banda .contenedor { grid-template-columns: repeat(5, auto) 52px; justify-content: space-between; column-gap: 24px; }
  .pie .banda h3, .pie .banda h4 { font-size: 14px; white-space: nowrap; }
  .pie .final { gap: 24px; }
  .pie address { flex: 1; width: auto; }
  .carrusel .titular { max-width: 80%; font-size: 52px; line-height: 1; top: auto; bottom: 46px; }
  .cifras ul { gap: 16px; }
  .cifras strong { font-size: 60px; }
  /* Entre tablet y escritorio las cifras pasan a dos filas (3 + 2); las flechas quedan fuera del texto */
  .cifras .riel, .v5 .cifras .riel { padding: 0 64px; }
  .cifras ul { row-gap: 32px; }
}

/* ---------- Tablet y móvil: encabezado móvil ---------- */
@media (max-width: 1180px) {
  .cabecera { display: none; }
  .cabecera-movil { position: relative; display: flex; align-items: center; justify-content: space-between; height: 82px; padding: 0 16px; background: var(--crema); border-bottom: 1px solid var(--borde-header); }
  .cabecera-movil .logo img { width: 135px; height: 58px; }
  .cabecera-movil { z-index: 40; }
  .cabecera-movil .botones { display: flex; align-items: flex-start; gap: 32px; padding-top: 10px; }
  .cabecera-movil .botones button { position: relative; display: flex; justify-content: center; min-width: 31px; height: 34px; }
  .abrir-buscador img { width: 24px; height: 24px; }
  .cabecera-movil .cerrar { position: absolute; top: 0; left: 50%; width: 24px; height: 24px; margin-left: -12px; opacity: 0; transform: rotate(-90deg); transition: opacity .2s ease-out, transform .2s ease-out; }
  .cabecera-movil .botones img, .hamburguesa { transition: opacity .2s ease-out; }
  .cabecera-movil .activo .cerrar { opacity: 1; transform: none; }
  .cabecera-movil .activo > img, .cabecera-movil .activo .hamburguesa { opacity: 0; }
  .hamburguesa { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 31px; color: #004c94; font-weight: 500; font-size: 10px; }
  .hamburguesa img { width: 30px; height: 20px; }

  /* Buscador móvil (componente buscador-movil del Figma, 390x74 bajo el encabezado) */
  .buscador-movil { position: absolute; left: 0; right: 0; top: 82px; z-index: 21; padding: 16px; background: var(--crema); box-shadow: 0 2px 4px rgba(0, 0, 0, .25); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease-out, transform .2s ease-out, visibility 0s .2s; }
  .buscador-movil.abierto { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease-out, transform .2s ease-out, visibility 0s; }
  .buscador-movil .caja { position: relative; height: 42px; border-radius: 4px; background: rgba(179, 191, 208, .3); }
  .buscador-movil input { width: 100%; height: 100%; padding: 0 48px 0 12px; border: 0; border-radius: 4px; background: transparent; font: 500 14px var(--sans); color: #333; }
  .buscador-movil input::placeholder { color: #333; opacity: 1; }
  .buscador-movil input::-webkit-search-cancel-button { display: none; }
  .buscador-movil button { position: absolute; right: 0; top: 3px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 100px; }
  .buscador-movil button img { width: 20px; height: 20px; }

  /* Menú móvil (componente menu-principal-movil del Figma): ocupa la pantalla bajo el encabezado */
  .menu-movil { position: absolute; left: 0; right: 0; top: 82px; z-index: 20; height: calc(100vh - 82px); height: calc(100dvh - 82px); overflow-y: auto; overscroll-behavior: contain; background: var(--crema); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s ease-out, transform .25s ease-out, visibility 0s .25s; }
  .menu-movil.abierto { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease-out, transform .25s ease-out, visibility 0s; }
  .menu-movil a { display: block; padding: 18px 16px; border-bottom: 1px solid var(--gris-destacado-movil); text-align: center; font-size: 16px; line-height: 19px; color: var(--azul); }
  .menu-movil .principal a { font-weight: 600; text-transform: uppercase; }
  .menu-movil .canales { background: var(--gris-destacado-movil); }
  .menu-movil .canales a { border-bottom-color: var(--crema); color: var(--azul-texto); }
  .menu-movil a:active { background: rgba(0, 75, 147, .08); }
  .sin-scroll, .sin-scroll body { overflow: hidden; }
}

/* ---------- Móvil (lienzo Figma de 390) y tablet ---------- */
@media (max-width: 1000px) {
  :root { --margen: 16px; }
  .titulo-seccion { font-size: 30px; line-height: 1.2; }
  .boton { padding: 18px 32px; font-size: 18px; }
  .boton-sec { font-size: 15px; padding: 9px 14px; }
  .barra-botones { gap: 12px; }

  .carrusel { height: auto; overflow: visible; }
  .v4 .carrusel { background: var(--azul-texto); }
  .prueba .carrusel { background: none; } /* v1-prueba: Destacados blanco, como la v2 */
  .diapos { position: relative; display: grid; }
  .diapo { position: relative; inset: auto; grid-area: 1 / 1; }
  .diapo > img { position: relative; height: auto; aspect-ratio: 390 / 200; max-height: 440px; }
  .diapo::after { display: none; }
  .diapo .contenedor { height: auto; }
  .carrusel .controles { width: 100%; height: auto; bottom: 0; }
  .carrusel .flecha { top: 85px; width: 30px; height: 30px; z-index: 2; }
  .carrusel .flecha path { fill: var(--azul-noche); }
  .carrusel .flecha.atras { left: 16px; }
  .carrusel .flecha.adelante { right: 16px; }
  .puntos { top: 16px; left: 0; right: 0; justify-content: center; gap: 20px; z-index: 2; }
  .puntos .punto { width: 12px; height: 12px; }
  .puntos .pausa { width: 10px; height: 12px; background: linear-gradient(to right, #fff 0 4px, transparent 4px 6px, #fff 6px 10px); }
  .carrusel .titular { position: relative; z-index: 2; top: auto; bottom: auto; max-width: none; margin-top: -48px; padding: 16px; border-radius: 4px; background: var(--azul-noche); font-size: 24px; line-height: normal; }
  .v5 .carrusel .titular, .prueba .carrusel .titular { background: var(--azul); } /* versión 2 y v1-prueba: azul U. de Chile (pedido del 21 de octubre) */

  .destacados, .v5 .destacados { padding: 39px 0 41px; }
  .v4 .destacados { background: var(--azul-texto); }
  .v5 .destacados { background: #fff; }
  .v5 .estudia .accesos div + div .boton-sec { padding-block: 9px; }
  .destacados .titulo-seccion { text-align: left; }
  .destacados .navegacion { display: none; }
  .destacados .riel { margin: 16px 0 0; padding: 0; overflow: visible; }

  .destacados ul { flex-direction: column; gap: 16px; transform: none !important; }
  .destacados li, .v5 .destacados li { flex: none; gap: 18px; align-items: center; padding-right: 18px; background: var(--gris-destacado-movil); }
  .destacados .marco { width: 100px; height: 100px; aspect-ratio: auto; }
  .destacados li p, .v5 .destacados li p { padding: 0; font-size: 14px; color: var(--azul-texto); }
  .destacados .acciones, .v5 .destacados .acciones { margin-top: 30px; }

  .estudia, .v5 .estudia { padding: 48px 0 56px; }
  .estudia .bajada { margin-top: 16px; font-size: 16px; }
  .estudia .columnas { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; margin-top: 28px; }
  .estudia figure { height: 180px; }
  .estudia h3 { font-size: 24px; }
  .estudia .lista a { padding: 16px 0; font-size: 16px; }
  .v5 .estudia .tarjeta { padding: 0 16px 16px; }
  .estudia .accesos { gap: 12px; margin-top: 20px; }
  .estudia .accesos div { flex-wrap: wrap; }

  .noticias, .v5 .noticias, .igual .noticias { padding: 48px 0 56px; }
  .v4 .noticias .ornamento { display: none; }
  .noticias .portada { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; }
  .noticia-principal { height: 320px; }
  .noticia-principal .texto { left: 16px; right: 16px; bottom: 20px; }
  .noticia-principal h3 { margin-top: 12px; font-size: 20px; }
  .noticias .laterales { gap: 16px; }
  .noticias .laterales li { gap: 14px; }
  .noticias .laterales figure { width: 140px; aspect-ratio: 257 / 162; }
  .noticias .laterales .etiqueta { display: none; }
  /* Versión acotada publicada (v1/): etiquetas de Noticias visibles y más chicas (pedido de Gonzalo, 27 de octubre) */
  .v4.igual .noticias .laterales .etiqueta { display: inline-block; left: 8px; top: 8px; padding: 3px 6px; }
  .v4.igual .noticias .etiqueta { font-size: 10px; }
  .noticias .laterales p, .noticias .fila p { font-size: 16px; }
  .noticias .fila { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 28px; }
  .noticias .fila li + li::before { display: none; }
  .noticias .fila p { margin-top: 10px; }
  .noticias .cuatro { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px 24px; margin-top: 28px; }
  .noticias .cuatro .marco { height: 200px; }
  .noticias .cuatro p { padding: 16px 0; font-size: 16px; }
  .noticias .acciones, .v5 .noticias .acciones { margin-top: 32px; }
  .noticias .barra-botones { margin-top: 32px; }

  .facultades { height: 300px; margin-bottom: 150px; }
  .facultades .caja { left: 0; right: 0; top: 220px; width: auto; height: auto; padding: 24px 24px 64px; }
  .facultades .caja p { font-size: 22px; }
  .facultades .caja a { right: 24px; bottom: 24px; font-size: 16px; }

  .cartelera, .v5 .cartelera { padding: 48px 0 56px; }
  .v5 .cartelera .ornamento { display: none; }
  .cartelera ul { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px 36px; margin-top: 28px; padding-left: 12px; }
  .evento { height: 240px; }
  .evento .calendario { top: 130px; width: calc(100% - 20px); }
  .evento .fecha { width: 96px; height: 96px; }
  .evento .fecha .mes { font-size: 26px; line-height: 26px; }
  .evento .fecha .dia { font-size: 56px; line-height: 56px; }
  .evento .nombre { padding: 14px; font-size: 16px; }
  .cartelera .barra-botones { margin-top: 32px; }

  .comunidad { padding: 48px 0 56px; }
  .testimonio, .v5 .testimonio, .igual .testimonio { flex-direction: column; gap: 24px; margin-top: 28px; }
  .testimonio .marco, .v5 .testimonio .marco, .igual .testimonio .marco { width: 100%; max-width: 420px; height: auto; aspect-ratio: 1; }
  .testimonio blockquote { padding-top: 0; }
  .v5 .testimonio blockquote { width: 100%; padding: 24px; }
  .testimonio blockquote p { font-size: 22px; line-height: 1.4; }
  .testimonio cite, .igual .testimonio cite { margin-top: 16px; font-size: 16px; } /* .igual: sin el margen de escritorio de la v2 */
  .comunidad .barra-botones, .v5 .comunidad .barra-botones, .igual .comunidad .barra-botones { margin-top: 32px; }

  .investigacion { padding: 48px 0 56px; }
  .investigacion .rejilla { grid-template-columns: 1fr; grid-template-rows: none; gap: 16px; margin-top: 28px; }
  .investigacion article, .investigacion article:first-child { grid-row: auto; min-height: 240px; padding: 16px 16px 20px; }
  .investigacion h3, .investigacion article:first-child h3 { font-size: 20px; }
  .investigacion .acciones { margin-top: 32px; }

  .vinculacion { padding: 48px 0 56px; }
  .vinculacion ul { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px 24px; margin-top: 28px; }
  .vinculacion .marco { height: 200px; }
  .vinculacion p { min-height: 0; padding: 16px 0; font-size: 16px; }
  .vinculacion .acciones { margin-top: 24px; }

  .internacional { padding: 48px 0 56px; }
  .internacional article { flex-direction: column; margin-top: 28px; }
  .internacional figure { width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 420px; border-radius: 4px 4px 0 0; }
  .internacional .texto { padding: 24px; border-radius: 0 0 4px 4px; }
  .internacional h3 { font-size: 22px; line-height: 1.35; }
  .internacional .texto p { margin-top: 16px; font-size: 16px; }
  .internacional .barra-botones { margin-top: 32px; }

  .cifras, .v5 .cifras, .igual .cifras { padding: 48px 0 56px; }
  .cifras .riel, .v5 .cifras .riel { margin-top: 28px; padding: 0 48px; }
  .cifras ul { flex-wrap: wrap; gap: 24px 16px; }
  .cifras li { width: calc(50% - 8px); max-width: 217px; }
  .cifras strong { font-size: 48px; }
  .cifras span { font-size: 16px; }
  .cifras .flecha { display: none; }
  .cifras .acciones { margin-top: 32px; }

  .pie .banda .contenedor { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0 0 0 16px; }
  .pie .banda h4 { display: none; }
  .pie .banda h3 { padding-top: 0; }
  .pie .banda button { margin-right: 0; }
  .pie .cuerpo { width: 100%; padding: 0 16px; }
  .pie .columnas { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 32px 16px; padding-top: 40px; }
  .pie .final { flex-direction: column; align-items: center; gap: 24px; }
  .pie .transparente, .pie address { width: 100%; }
  .pie .acreditacion { width: 100%; align-items: center; }
  .pie .acreditacion img { width: 280px; height: auto; }
}

/* ---------- Tablet vertical (600 a 1000): destacados en dos columnas ---------- */
@media (min-width: 600px) and (max-width: 1000px) {
  .destacados ul { display: grid; grid-template-columns: 1fr 1fr; }
  .destacados li p, .v5 .destacados li p { font-size: 15px; }
}

/* ---------- Interacciones del prototipo (solo con puntero que permite hover) ----------
   Tiempos y curvas del Figma: botones 0,2 s; botones secundarios 0,5 s; tarjetas 0,3 s;
   zoom de fotos 0,7 s con la curva del componente hover-zoom.
   Encima, las del Figma Make "Responsive prototype with animations" (15 de octubre): botones que
   suben 2 px e invierten colores, tarjetas que suben 5 a 6 px, flechas y enlaces que se corren. */
@media (hover: hover) {
  .boton:hover { box-shadow: 0 4px 25px rgba(4, 40, 73, .3); }
  .boton:hover::before { opacity: 1; }
  .boton.blanco:hover { color: #fff; }
  .enlaces-uchile > a:hover, .enlaces-uchile .desplegable:hover { color: var(--cian); } /* solo color, sin movimiento */
  .pie .columnas li a:hover { transform: translateX(3px); }
  .boton-sec:hover { background: var(--cian); color: #fff; }
  .boton-sec:hover img { filter: brightness(0) invert(1); }
  .flecha:hover rect { fill: var(--azul-pie); }
  .flecha:hover path { fill: #fff; }

  .destacados li:hover, .v5 .destacados li:hover { background: var(--azul-pie); box-shadow: var(--sombra-hover); transform: translateY(-6px); }
  .destacados li:hover p, .v5 .destacados li:hover p { color: #fff; }
  .destacados li:hover .marco img { transform: scale(1.07); }

  /* Sin los botones de admisión y becas: esos tienen su propio hover */
  .estudia .columnas > div:hover:not(:has(.accesos:hover)) figure img { transform: scale(1.07); }
  .estudia .lista a:hover { border-bottom-color: var(--azul-texto); }

  .noticia-principal:hover > img { transform: scale(1.07); }
  .noticias .laterales li:hover figure img { transform: scale(1.07); }
  .noticias .cuatro li:hover, .vinculacion li:hover { transform: translateY(-5px); }
  .noticias .cuatro a:hover .marco { box-shadow: var(--sombra-hover); }
  .noticias .cuatro a:hover img { transform: scale(1.07); }
  .noticias .cuatro a:hover p { color: var(--azul); }

  .facultades .caja a:hover { text-decoration: underline; text-underline-offset: 4px; } /* como el artefacto: el "+" queda quieto */

  .evento:hover { transform: translateY(-6px); }
  .evento:hover > .marco { box-shadow: var(--sombra-hover); }
  .evento:hover > .marco img { transform: scale(1.043); }

  .testimonio:hover .marco img { transform: scale(1.09); }
  .v5 .testimonio:hover blockquote p { color: var(--cian); }

  .investigacion article:hover > img { transform: scale(1.06); }
  .vinculacion a:hover .marco { box-shadow: var(--sombra-hover); }
  .vinculacion a:hover img { transform: scale(1.16); }
  .internacional article:hover { box-shadow: var(--sombra-hover); }
  .internacional article:hover figure img { transform: scale(1.05); }
}

.boton:focus-visible { box-shadow: 0 4px 25px rgba(4, 40, 73, .3); }
.boton:focus-visible::before { opacity: 1; }
.boton.blanco:focus-visible { color: #fff; }

/* Aparición al hacer scroll (Figma Make): sube 28 px y aparece en 0,7 s. El script marca los
   elementos con .revelar y les pone --retraso para escalonar los que entran juntos. */
.revelar { opacity: 0; }
.revelar.visible { opacity: 1; animation: revelar .7s cubic-bezier(.2, .7, 0, 1) var(--retraso, 0ms) backwards; }
@keyframes revelar { from { opacity: 0; transform: translateY(28px); } }

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