/* Base del diseño nuevo: colores, tipografía, encabezado, menú, botones y pie. La usan todas las páginas de web/nuevo/. */

/* ===== style ===== */
:root {
  --navy: #0b1f3a;
  --navy-2: #122a4d;
  --navy-3: #18365f;
  --gold: #c9a227;
  --gold-2: #e0c060;
  --gold-soft: #f4e8c0;
  --cream: #f7f4ee;
  --white: #ffffff;
  --ink: #1a1f2b;
  --muted: #5b6475;
  --line: #e4ddd0;
  --ok: #1f7a4d;
  --shadow: 0 18px 50px rgba(11, 31, 58, .12);
  --radius: 18px;
  --max: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

/* Top bar */
.topbar {
  background: var(--navy);
  color: #d8deea;
  font-size: 13px;
}
.topbar .inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 8px 0; flex-wrap: wrap;
}
.topbar a { color: #e8edf5; }
.topbar a:hover { color: var(--gold-2); }
.topbar .links { display: flex; gap: 18px; flex-wrap: wrap; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 56px; height: 56px; border-radius: 50%;
  background: #fff;
  display: grid; place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-mark img {
  width: 56px; height: 56px; object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 15px; letter-spacing: .08em; color: var(--navy); }
.brand-text span { font-size: 11px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }

nav.main { display: flex; align-items: center; gap: 4px; }
nav.main > a, .nav-drop > button {
  font-size: 14px; font-weight: 600; color: var(--navy);
  padding: 10px 12px; background: none; border: 0; cursor: pointer;
  font-family: inherit;
}
nav.main > a:hover, .nav-drop > button:hover { color: var(--gold); }
.nav-drop { position: relative; }
.mega {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-40%);
  width: min(760px, 80vw); background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow); padding: 22px;
  grid-template-columns: 1fr 1fr; gap: 8px 24px;
}
.nav-drop:hover .mega, .nav-drop:focus-within .mega { display: grid; }
.mega a { display: block; padding: 8px 0; font-size: 14px; color: var(--navy-2); }
.mega a small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.mega a:hover { color: var(--gold); }
.cta-nav {
  background: var(--navy) !important; color: #fff !important;
  border-radius: 999px; padding: 10px 18px !important;
}
.cta-nav:hover { background: var(--navy-3) !important; color: var(--gold-2) !important; }
.burger { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--navy); }

/* Hero */
.hero {
  position: relative; min-height: 78vh;
  background:
    linear-gradient(105deg, rgba(11,31,58,.88) 0%, rgba(11,31,58,.55) 48%, rgba(75,45,122,.35) 100%),
    url("https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=2000&q=80") center/cover no-repeat;
  color: #fff; display: grid; align-items: center;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(36px, 6vw, 64px); line-height: 1.08; font-weight: 600;
  margin-bottom: 18px;
}
.hero p.lead { font-size: 18px; color: #e6ebf3; max-width: 560px; margin-bottom: 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 14px;
  border: 1px solid transparent; cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-2); }

.btn-navy { background: var(--navy); color: #fff; }

/* Sections */
section { padding: 78px 0; }

h2.sec-title {
  font-family: "Playfair Display", serif; font-size: clamp(28px, 4vw, 42px);
  color: var(--navy); margin: 8px 0 14px; line-height: 1.15;
}
.sec-lead { color: var(--muted); max-width: 640px; margin-bottom: 36px; }

.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.level {
  background: var(--cream); border-radius: var(--radius); padding: 32px 28px;
  border: 1px solid var(--line); min-height: 220px;
}
.level h3 { font-family: "Playfair Display", serif; color: var(--navy); font-size: 26px; margin: 8px 0 10px; }
.level p { color: var(--muted); margin-bottom: 16px; }
.level a { color: var(--navy); font-weight: 700; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.campus-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.campus {
  background: var(--navy); color: #fff; border-radius: 14px; padding: 22px 18px; min-height: 120px;
  background-image: linear-gradient(160deg, var(--navy) 0%, var(--navy-3) 100%);
}
.campus small { color: var(--gold-2); letter-spacing: .16em; text-transform: uppercase; font-size: 11px; }
.campus h3 { font-family: "Playfair Display", serif; font-size: 22px; margin-top: 6px; }

.two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.checklist { list-style: none; }
.checklist li { padding: 9px 0 9px 28px; position: relative; }
.checklist li:before {
  content: ""; position: absolute; left: 0; top: 14px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--gold); box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--gold);
}

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote {
  background: var(--cream); border-radius: 16px; padding: 24px;
  border-left: 4px solid var(--gold);
}
.quote p { font-style: italic; color: var(--navy-2); }
.quote cite { display: block; margin-top: 12px; font-style: normal; font-weight: 700; font-size: 13px; color: var(--navy); }

.faq details {
  border-bottom: 1px solid var(--line); padding: 16px 0;
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--muted); margin-top: 8px; }

.form {
  display: grid; gap: 12px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff;
}
.form label { font-size: 13px; font-weight: 700; color: var(--navy); }
.note { font-size: 12px; color: var(--muted); }

footer.site {
  background: var(--navy); color: #cdd5e3; padding: 56px 0 24px;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
footer h2 { color: #fff; margin-bottom: 12px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
footer a { color: #cdd5e3; display: block; padding: 4px 0; font-size: 14px; }
footer a:hover { color: var(--gold-2); }
.legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 16px; font-size: 12px; color: #93a0b5; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .levels, .cards, .campus-grid, .two, .quotes, .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  nav.main { display: none; }
  nav.main.open {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 70px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 20px 24px;
    align-items: flex-start;
  }
  .mega { position: static; transform: none; width: 100%; display: none; box-shadow: none; border: 0; padding: 8px 0 8px 12px; }
  .nav-drop:hover .mega, .nav-drop.open .mega { display: block; }
  .burger { display: block; }
  .header { position: sticky; }
}
@media (max-width: 640px) {
  .levels, .cards, .campus-grid, .two, .quotes, .foot-grid {
    grid-template-columns: 1fr;
  }
  .hero { min-height: 70vh; }
}

/* ================================================================
   Home de iuaf.edu.mx. Lo de arriba es el sistema visual del diseño
   (Pag web/CAD/css/style.css) sin cambios; esto es lo que agrega el home.
   ================================================================ */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; }
.form input:focus, .form select:focus { border-color: var(--gold); outline: none; }

.hero.home {
  min-height: 84vh;
  background:
    linear-gradient(105deg, rgba(11,31,58,.9) 0%, rgba(11,31,58,.62) 46%, rgba(11,31,58,.2) 100%),
    url("../img/programas/jornadas.webp") center 45%/cover no-repeat;
}
/* El texto de la portada se alinea con el resto de la página, no centrado. */

/* Oferta */

.link-info { font-size: 14px; font-weight: 700; color: var(--navy); }
.link-info:hover { color: var(--gold); }
.levels.duo { grid-template-columns: 1fr 1fr; margin-top: 20px; }
.level { min-height: 0; }

/* Modelo */

/* Validez oficial */

/* Sedes */
.campus.photo {
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 170px; background-size: cover; background-position: center;
}
.level .jornadas-durations + .jornadas-note { margin: -8px 0 20px; font-size: 15px; }

/* La foto va como <img> (texto alternativo y carga diferida) y el degradado encima, bajo el texto. */
.campus.photo { position: relative; isolation: isolate; overflow: hidden; }
.campus-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.campus.photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(41,34,54,.1) 0%, rgba(41,34,54,.9) 100%);
}

/* Docentes */

/* Graduados */

/* Video */
.video-frame { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--navy); }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* FAQ */
.faq { max-width: 860px; }
.faq summary { display: flex; justify-content: space-between; gap: 16px; }
.faq summary:after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; }
.faq details[open] summary:after { content: "–"; }

/* Pagos */

/* Formulario de solicitud */
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.form .check input { width: auto; margin-top: 4px; }
.form .check a { color: var(--navy); text-decoration: underline; }
.form button[disabled] { opacity: .6; cursor: wait; }
.form-msg { font-size: 14px; border-radius: 10px; padding: 10px 12px; }
.form-msg.ok { background: #e7f4ec; color: var(--ok); }
.form-msg.error { background: #fdecec; color: #9b1c1c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.social { display: flex; gap: 14px; margin-top: 12px; }
.social a { display: inline; }

/* Botón flotante de WhatsApp */
.fab-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(11,31,58,.28);
}
.fab-wa:hover { background: #1ebe5b; }
.fab-wa svg { width: 30px; height: 30px; }

@media (max-width: 980px) {
  nav.main.open { top: 100%; }
  .two { grid-template-columns: 1fr; gap: 32px; }
  .levels.duo { grid-template-columns: 1fr 1fr; }

}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  section { padding: 56px 0; }
  .levels.duo, .form .row2 { grid-template-columns: 1fr; }

}

/* ===== home-design ===== */
/* IUAF · Sistema de diseño del home. Base visual: referencia CAD.
   Azul institucional + dorado editorial; violeta tomado del sello original.
   Las áreas .media-placeholder se pueden sustituir por fotografías. */
:root {
  --navy: #0b1f3a;
  --gold: #c9a227;
  --cream: #f7f4ee;
  --brand-violet: #48258a;
  --image-placeholder: #e5e5e3;
  --radius: 8px;
  --max: 1240px;
  --section-space: clamp(64px, 7vw, 104px);
}
body { font-size: 16px; }
button, input, select { font: inherit; }
section[id], article[id] { scroll-margin-top: 112px; }
section { padding: var(--section-space) 0; }
.container { width: min(var(--max), calc(100% - 80px)); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 12px 24px; background: white; color: var(--navy); z-index: 100; }
.skip-link:focus { top: 12px; }
.topbar { font-size: 11px; letter-spacing: .08em; }
.topbar .inner { padding: 9px 0; }
.header .bar { min-height: 104px; padding: 14px 0; }
.brand { gap: 13px; flex-shrink: 0; }
.logo-mark, .logo-mark img { width: 76px; height: 76px; }
.logo-mark { border-radius: 0; overflow: visible; }
.brand-text strong { font-size: 29px; font-weight: 800; letter-spacing: .08em; }
.brand-text .brand-dot { display: inline; font-size: 10px; color: var(--brand-violet); vertical-align: super; }
.brand-text > span { margin-top: 5px; font-size: 9px; line-height: 1.45; letter-spacing: .06em; }
nav.main > a, .nav-drop > button { font-size: 13px; padding: 10px; }
.nav-drop > button::after { content: "⌄"; margin-left: 8px; }
.cta-nav { border-radius: 4px; padding: 12px 18px !important; margin-left: 10px; }
.mega { left: 0; transform: none; border-radius: 6px; border-top: 3px solid var(--gold); }
.mega a { padding: 10px; border-bottom: 1px solid var(--line); }
.nav-drop.open .mega { display: grid; }
.nav-drop.menu-closed .mega { display: none; }
.hero.home { padding: 0; min-height: 0; background: var(--navy); display: block; overflow: hidden; }

.hero h1, .hero h2 { font-family: "Playfair Display", Georgia, serif; font-size: clamp(36px, 4.3vw, 62px); font-weight: 500; line-height: 1.12; letter-spacing: -.025em; margin: 8px 0 24px; color: white; }
.hero h1 em, .hero h2 em { font-style: normal; color: var(--gold-2); }
.hero.home p.lead { max-width: 490px; font-size: 17px; line-height: 1.75; color: #d6dce5; }

.btn { border-radius: 4px; padding: 13px 22px; transition: background .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold-2); }
.btn-gold:hover { background: #edcf73; }

h2.sec-title { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.025em; font-weight: 500; margin: 14px 0 18px; max-width: 790px; }
.sec-lead { line-height: 1.8; margin-bottom: 38px; }
.cards { gap: 26px; }
.card { border-radius: 6px; box-shadow: 0 4px 16px rgba(11,31,58,.025); }

.link-info { font-size: 12px; font-weight: 400; text-decoration: underline; text-underline-offset: 4px; color: var(--muted); }
.levels.duo { margin-top: 30px; gap: 26px; }
.level { border-radius: 6px; border: 0; padding: 36px; }
.level:last-child { background: var(--navy); color: white; }
.level:last-child h3, .level:last-child a { color: white; }
.level:last-child p { color: #cbd4e1; }

.campus-grid { gap: 20px; }
.campus.photo { min-height: 200px; border-radius: 5px; padding: 24px; transition: transform .2s; background-color: var(--image-placeholder); }
.campus:hover { transform: translateY(-4px); }

.quote { border-radius: 4px; padding: 30px; border-left-width: 2px; }
.quote::before { content: "“"; display: block; font: 50px/1 "Playfair Display", Georgia, serif; color: #9a7c24; }
.quote p { font-size: 16px; }
.video-frame { border-radius: 4px; }
#preguntas .container { display: grid; grid-template-columns: 1fr 1.4fr; column-gap: 80px; align-items: start; }

#preguntas .sec-title { grid-column: 1; }
#preguntas .faq { grid-column: 2; grid-row: 1 / span 3; }
.faq summary { padding: 6px 0; font-size: 17px; font-weight: 600; }
#solicita { background: var(--cream); border-top: 1px solid var(--line); }
.form { border-radius: 6px; padding: 36px; gap: 16px; box-shadow: 0 12px 48px rgba(11,31,58,.06); }
.form input, .form select { border-radius: 4px; margin-top: 6px; padding: 11px 12px; }
.form input:focus-visible, .form select:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.form .check input { margin-top: 4px; }
.form .btn { width: 100%; }
.footer-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.footer-brand img { background: white; border-radius: 50%; padding: 3px; }
.footer-brand > span { font-size: 30px; letter-spacing: .1em; font-weight: 700; color: white; }
.footer-brand small { display: block; font-size: 10px; text-transform: uppercase; color: var(--gold-2); }
footer.site { padding-top: 72px; }
footer p { font-size: 14px; }
.fab-wa { width: 50px; height: 50px; }
@media (min-width: 981px) and (max-width: 1180px) {
  nav.main > a, .nav-drop > button { padding: 8px 6px; font-size: 12px; }
  .brand-text > span { display: none; }
  .mega { left: auto; right: -300px; }
}
@media (max-width: 980px) {
  .container { width: calc(100% - 48px); }
  .header .bar { min-height: 86px; }
  .logo-mark, .logo-mark img { width: 60px; height: 60px; }

  .hero h1, .hero h2 { font-size: 52px; }
  .mega { width: 100%; }
  .nav-drop.open .mega { display: grid; grid-template-columns: 1fr; }
  .nav-drop { width: 100%; }
  nav.main.open { max-height: calc(100dvh - 88px); overflow-y: auto; }
  .cta-nav { margin-left: 0; }

  #preguntas .container { display: block; }
  
}
@media (max-width: 640px) {
  .container { width: calc(100% - 36px); }
  .topbar .links { display: none; }
  .topbar { font-size: 9px; }
  .topbar .inner { justify-content: center; }
  .brand-text strong { font-size: 24px; }
  .brand-text > span { font-size: 8px; }
  
  .hero h1, .hero h2 { font-size: clamp(34px, 9vw, 46px); }
  .hero.home p.lead { font-size: 16px; }

  .hero .btn { padding: 12px 16px; font-size: 13px; }

  .campus-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .campus.photo { min-height: 170px; padding: 18px 14px; }
  .campus h3 { font-size: 21px; }
  .form { padding: 24px 20px; }

  .foot-grid { gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== home2 ===== */
/* Home 2 y claustro. Esta capa sólo se carga desde base_home2.html. */

.home-v2 .editorial-link { display: inline-flex; align-items: center; gap: 22px; font-size: 13px; color: var(--navy); font-weight: 700; padding: 10px 0; border-bottom: 1px solid var(--gold); }
.home-v2 .editorial-link span { color: #8c7127; font-size: 20px; transition: transform .2s; }
.home-v2 .editorial-link:hover span { transform: translate(2px, -2px); }
.home-v2 #oferta { padding-top: 24px; }

.home-v2 .section-heading.centered { max-width: 760px; margin: 0 auto 44px; text-align: center; }

.home-v2 .centered .sec-title { margin-left: auto; margin-right: auto; }
.home-v2 .centered .sec-lead { margin: 0 auto; }
.home-v2 .teacher-grid { display: grid; gap: 30px; }
.home-v2 .featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-v2 .teacher-card { min-width: 0; }
.home-v2 .teacher-portrait { aspect-ratio: 4 / 4.6; background: var(--image-placeholder); overflow: hidden; }
.home-v2 .teacher-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.home-v2 .teacher-placeholder { width: 100%; height: 100%; display: grid; place-items: center; position: relative; background: var(--image-placeholder); }
.home-v2 .teacher-placeholder::before { content: ""; position: absolute; width: 62%; aspect-ratio: 1; border: 1px solid #d2d4d3; border-radius: 50%; }
.home-v2 .teacher-placeholder > span { font: 400 60px/1 "Playfair Display", Georgia, serif; color: #a7abad; }
.home-v2 .teacher-placeholder small { position: absolute; bottom: 20px; right: 20px; font-size: 10px; letter-spacing: .22em; color: #878c91; }
.home-v2 .teacher-info { padding: 24px 8px 0; text-align: center; }
.home-v2 .teacher-info h3 { font: 500 23px/1.4 "Playfair Display", Georgia, serif; color: var(--navy); }
.home-v2 .teacher-info p { color: #80641c; font-size: 11px; margin-top: 10px; letter-spacing: .05em; }
.home-v2 .faculty-cta { display: flex; justify-content: center; margin-top: 44px; }
.home-v2 .faculty-cta .btn { padding: 15px 26px; gap: 22px; }

.home-v2 .claustro-hero { background: var(--navy); color: white; padding-top: 30px; }
.home-v2 .claustro-breadcrumb { display: flex; gap: 14px; align-items: center; font-size: 12px; color: #c0cbda; margin-bottom: 64px; }
.home-v2 .claustro-breadcrumb a:hover { color: var(--gold-2); }

.home-v2 .claustro-hero h1 { font: 500 clamp(44px, 5vw, 72px)/1.12 "Playfair Display", Georgia, serif; margin: 22px 0 28px; letter-spacing: -.03em; }
.home-v2 .claustro-hero h1 em { font-style: normal; color: var(--gold-2); }
.home-v2 .claustro-hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.home-v2 .claustro-hero-bottom p { max-width: 570px; color: #d0d9e6; line-height: 1.8; }
.home-v2 .claustro-hero-bottom .editorial-link { color: white; white-space: nowrap; }
.home-v2 .claustro-hero-bottom .editorial-link span { color: var(--gold-2); }
.home-v2 .directory-heading { display: flex; justify-content: space-between; gap: 30px; align-items: center; margin-bottom: 36px; }
.home-v2 .directory-heading .sec-title { margin-bottom: 0; }
.home-v2 .directory-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 46px; }
.home-v2 .directory-grid .teacher-info { padding-top: 20px; }
.home-v2 .directory-grid .teacher-info h3 { font-size: 20px; }
.home-v2 .directory-grid .teacher-placeholder > span { font-size: 46px; }
.home-v2 .claustro-invitation { background: var(--cream); border-top: 1px solid var(--line); }
.home-v2 .claustro-invitation .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.home-v2 .claustro-invitation p:not(.sec-kicker) { color: var(--muted); }
.home-v2 .claustro-invitation .btn { flex-shrink: 0; }
@media (max-width: 1100px) {

  .home-v2 .teacher-info h3 { font-size: 21px; }
  .home-v2 .directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {

  .home-v2 .teacher-grid { gap: 20px; }
  .home-v2 .featured-grid .teacher-info h3 { font-size: 18px; }
  .home-v2 .teacher-placeholder > span { font-size: 44px; }

  .home-v2 .claustro-hero-bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
  .home-v2 .directory-heading { display: block; }
  .home-v2 .directory-heading > a { margin-top: 18px; }
  .home-v2 .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-v2 .claustro-invitation .container { display: block; }
  .home-v2 .claustro-invitation .btn { margin-top: 28px; }
}
@media (max-width: 540px) {

  .home-v2 .section-heading.centered { text-align: left; margin-bottom: 28px; }

  .home-v2 .featured-grid { grid-template-columns: 1fr; gap: 32px; }
  .home-v2 .featured-grid .teacher-portrait { aspect-ratio: 4 / 3.8; }
  .home-v2 .featured-grid .teacher-info h3 { font-size: 23px; }
  .home-v2 .teacher-placeholder > span { font-size: 60px; }
  .home-v2 .faculty-cta .btn { font-size: 12px; padding: 14px 18px; gap: 16px; }

  .home-v2 .claustro-breadcrumb { margin-bottom: 44px; }
  .home-v2 .claustro-hero h1 { font-size: 46px; }
  .home-v2 .claustro-hero-bottom p { font-size: 15px; }
  .home-v2 .directory-grid { gap: 28px 14px; }
  .home-v2 .directory-grid .teacher-info { padding: 14px 0 0; text-align: left; }
  .home-v2 .directory-grid .teacher-info h3 { font-size: 17px; }
  .home-v2 .directory-grid .teacher-info p { font-size: 10px; margin-top: 6px; }
  .home-v2 .directory-grid .teacher-placeholder > span { font-size: 32px; }
  .home-v2 .teacher-placeholder small { right: 12px; bottom: 12px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-v2 .editorial-link span { transition: none; }
}

/* ===== home3 ===== */
/* Home 3: fotografía institucional, escala editorial e interacciones propias. */
.home-v3 { --section-space: clamp(68px, 7vw, 108px); }

.home-v3 .showcase-navigation { position: absolute; left: 0; right: 0; bottom: 27px; z-index: 3; display: flex; justify-content: space-between; gap: 40px; align-items: center; border-top: 1px solid #ffffff40; padding-top: 22px; }

.home-v3 [data-count] { font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: .12em; }

.home-v3 #oferta { padding-top: var(--section-space); }
.home-v3 #oferta .cards { gap: 28px; }
.home-v3 #oferta .card { border-radius: 2px; }

.home-v3 .life3-heading, .home-v3 .graduates3-heading { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: end; margin-bottom: 38px; }
.home-v3 .life3-heading .sec-title, .home-v3 .graduates3-heading .sec-title { margin-bottom: 0; }
.home-v3 .life3-heading .sec-lead, .home-v3 .graduates3-heading .sec-lead { margin-bottom: 0; font-size: 15px; }

.home-v3 .life3-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 26px; align-items: start; }
.home-v3 .life3-grid figure { min-width: 0; }
.home-v3 .life3-grid figure:nth-child(2) { padding-top: 70px; }
.home-v3 .life3-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.home-v3 .life3-grid figcaption { padding-top: 20px; }
.home-v3 .life3-grid figcaption > span { font-size: 10px; color: #846716; text-transform: uppercase; letter-spacing: .13em; }
.home-v3 .life3-grid h3 { font: 500 25px/1.3 "Playfair Display", Georgia, serif; color: var(--navy); margin-top: 9px; }
.home-v3 .graduates3 { background: var(--navy); color: white; overflow: hidden; }
.home-v3 .graduates3 .sec-title { color: white; }

.home-v3 .graduates3 .sec-lead { color: #c8d3e1; }
.home-v3 .gallery-navigation { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.home-v3 .gallery-navigation button { background: transparent; border: 1px solid #ffffff70; width: 40px; height: 40px; border-radius: 50%; color: white; cursor: pointer; }
.home-v3 .gallery-navigation > span { font-size: 11px; color: #d4dce7; }
.home-v3 .graduate-track { display: flex; gap: 26px; padding: 10px max(40px, calc((100vw - var(--max)) / 2)) 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--gold) #24364f; }
.home-v3 .graduate-photo { position: relative; flex: 0 0 min(51vw, 640px); border: 0; padding: 0; background: #26354c; overflow: hidden; cursor: zoom-in; scroll-snap-align: center; color: white; }
.home-v3 .graduate-photo img { width: 100%; height: 420px; object-fit: cover; }
.home-v3 .graduate-photo:nth-child(even) { margin-top: 34px; }
.home-v3 .graduate-photo::after { content: ""; position: absolute; inset: 60% 0 0; background: linear-gradient(transparent, #0b1f3abf); }
.home-v3 .graduate-photo-caption { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; font-size: 12px; letter-spacing: .05em; display: flex; justify-content: space-between; }
.home-v3 .graduate-photo-caption > span { font-size: 20px; }
.home-v3 .gallery-hint { font-size: 11px; color: #acbbcf; padding-top: 20px; }
.home-v3 .graduate-lightbox { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; border: 0; background: #07162af7; color: white; padding: 24px 40px; }
.home-v3 .graduate-lightbox::backdrop { background: #07162a; }
.home-v3 .lightbox-top { display: flex; justify-content: space-between; align-items: center; height: 44px; font-size: 13px; }
.home-v3 .lightbox-top button { background: transparent; color: white; border: 1px solid #ffffff70; padding: 9px 14px; cursor: pointer; }
.home-v3 .lightbox-photo { display: grid; grid-template-columns: 50px 1fr 50px; gap: 24px; align-items: center; height: calc(100% - 90px); }
.home-v3 .lightbox-photo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.home-v3 .lightbox-photo button { border: 1px solid #ffffff70; width: 44px; height: 44px; border-radius: 50%; background: transparent; color: white; cursor: pointer; }
.home-v3 .graduate-lightbox > p { text-align: center; font-size: 12px; color: #cbd6e5; margin-top: 12px; }

@media (max-width: 800px) {

  .home-v3 .life3-heading, .home-v3 .graduates3-heading { grid-template-columns: 1fr; gap: 22px; }

  .home-v3 .life3-grid { gap: 18px; }
  .home-v3 .life3-grid h3 { font-size: 21px; }
  .home-v3 .life3-grid figure:nth-child(2) { padding-top: 40px; }
  .home-v3 .graduate-photo { flex-basis: 72vw; }
  .home-v3 .graduate-photo img { height: 370px; }
  
}
@media (max-width: 540px) {

  .home-v3 .showcase-navigation { display: block; bottom: 20px; padding-top: 15px; }

  .home-v3 .life3-grid { grid-template-columns: 1fr; gap: 32px; }
  .home-v3 .life3-grid figure:nth-child(2) { padding: 0; }
  .home-v3 .life3-grid img { aspect-ratio: 3 / 2; }
  .home-v3 .life3-grid h3 { font-size: 25px; }
  .home-v3 .graduate-track { padding-left: 18px; padding-right: 18px; gap: 18px; }
  .home-v3 .graduate-photo { flex-basis: 86vw; }
  .home-v3 .graduate-photo img { height: 330px; }
  .home-v3 .graduate-photo:nth-child(even) { margin-top: 0; }
  .home-v3 .graduate-lightbox { padding: 14px; }
  .home-v3 .lightbox-photo { grid-template-columns: 30px 1fr 30px; gap: 4px; }
  .home-v3 .lightbox-photo button { width: 29px; height: 34px; }

}
@media (prefers-reduced-motion: reduce) {
  
  .home-v3 .graduate-track { scroll-behavior: auto; }
}

/* ===== home45 ===== */
/* Recursos y presentación compartidos por las variantes 4 y 5. */

:is(.home-v4, .home-v5) .community-films { background: var(--cream); border-top: 1px solid var(--line); }

:is(.home-v4, .home-v5) .film-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
:is(.home-v4, .home-v5) .film-card { min-width: 0; }
:is(.home-v4, .home-v5) .film-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 8px; border-radius: 6px; }
:is(.home-v4, .home-v5) .film-card:nth-child(2) { padding-top: 44px; }
:is(.home-v4, .home-v5) .film-player { aspect-ratio: 480 / 848; background: var(--navy); overflow: hidden; border-radius: 6px; }
:is(.home-v4, .home-v5) .film-player video { display: block; width: 100%; height: 100%; object-fit: contain; }
:is(.home-v4, .home-v5) .film-card figcaption { padding-top: 18px; }

:is(.home-v4, .home-v5) .film-card h3 { font: 500 22px/1.35 "Playfair Display", Georgia, serif; color: var(--navy); margin: 8px 0; }
:is(.home-v4, .home-v5) .film-card figcaption p { font-size: 12px; line-height: 1.7; color: var(--muted); }

@media (max-width: 980px) {

  :is(.home-v4, .home-v5) .film-grid { max-width: 680px; width: 100%; margin-inline: auto; gap: 32px; }
}
@media (max-width: 540px) {
  :is(.home-v4, .home-v5) .film-grid { grid-template-columns: 1fr; gap: 34px; }
  :is(.home-v4, .home-v5) .film-card { max-width: 310px; width: 100%; margin-inline: auto; }
  :is(.home-v4, .home-v5) .film-card:nth-child(2) { padding-top: 0; }
  :is(.home-v4, .home-v5) .film-card h3 { font-size: 24px; }
}

/* ===== home4-theme ===== */
/* Home 4 · IUAF violeta editorial.
   Identidad de origen: #6A1B9A (site.css), #48258a (sello).
   Esta capa sustituye la paleta CAD sin modificar Home 1–3. */
.home-v4 {
  --navy: #292236;
  --navy-2: #3c3049;
  --navy-3: #4b3a5a;
  --brand-violet: #48258a;
  --accent: #735286;
  --accent-hover: #5e3f71;
  --accent-light: #decee8;
  /* Alias de compatibilidad con los componentes originales. */
  --gold: #80638f;
  --gold-2: #decee8;
  --gold-soft: #eee7f2;
  --cream: #f5f3f6;
  --ink: #292631;
  --muted: #65606c;
  --line: #e3dee7;
  --image-placeholder: #e7e5e9;
  --shadow: 0 18px 50px rgba(41, 34, 54, .12);
  accent-color: var(--accent);
}
.home-v4 ::selection { background: var(--accent-light); color: var(--navy); }
.home-v4 :is(a, button, summary, input, select):focus-visible { outline-color: var(--accent); }
.home-v4 :is(.showcase, .proof3, .graduates3, footer.site) :focus-visible { outline-color: var(--accent-light); }
.home-v4 .topbar { color: #e4dfea; }
.home-v4 .topbar a { color: #f0eaf4; }
.home-v4 .topbar a:hover { color: white; }
.home-v4 .btn-gold { background: var(--accent); color: white; border-color: var(--accent); }
.home-v4 .btn-gold:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: white; }

.home-v4 .cta-nav:hover { color: white !important; }
.home-v4 nav.main > a:not(.cta-nav):hover,
.home-v4 .nav-drop > button:hover,
.home-v4 .mega a:hover,
.home-v4 .link-info:hover { color: var(--accent-hover); }
.home-v4 .quote::before, .home-v4 .editorial-link span, .home-v4 .teacher-info p, .home-v4 .life3-grid figcaption > span { color: var(--accent); }

.home-v4 .level:last-child p { color: #e0d9e6; }

.home-v4 .form { box-shadow: 0 12px 48px rgba(41,34,54,.06); }
.home-v4 .card { box-shadow: 0 4px 16px rgba(41,34,54,.025); }

/* Photographs stay natural; their shades use the same quiet plum as the page. */

.home-v4 .graduates3 .sec-lead,
.home-v4 .gallery-navigation > span { color: #ded6e7; }
.home-v4 .graduate-track { scrollbar-color: #bfa9ce #44354f; }
.home-v4 .graduate-photo { background: #3c3049; }
.home-v4 .graduate-photo::after { background: linear-gradient(transparent, #292236cf); }
.home-v4 .gallery-hint { color: #c6b9d0; }
.home-v4 .graduate-lightbox { background: #211a2cf7; }
.home-v4 .graduate-lightbox::backdrop { background: #211a2c; }
.home-v4 .graduate-lightbox > p { color: #e0d7e9; }
.home-v4 .legal { color: #bdb0c8; }
.home-v4 footer.site,
.home-v4 footer a { color: #e0d8e8; }
.home-v4 footer a:hover { color: white; }
.home-v4 .footer-brand small { color: var(--accent-light); }
.home-v4 .faq summary::after { color: var(--accent); }

/* ===== home-mejoras ===== */
/* Portada y claustro en main: ajustes sobre el diseño /home4 de la rama rediseno-home.
   Va después de home4-theme.css. RVOE en tarjetas y tabla, ritmo de estudio, preguntas,
   iconos dibujados, títulos sin etiqueta superior, tamaños mínimos y errores por campo. */

/* Títulos: sin la etiqueta superior, el h2 abre la sección */
.home-v4 h2.sec-title { margin-top: 0; }
.home-v4 #preguntas .container { align-items: start; }

/* Tarjetas de programa: el RVOE en la cabecera */

/* Jornadas de Titulación con sus duraciones */
.home-v4 .jornadas-durations { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; margin: 4px 0 22px; }
.home-v4 .jornadas-durations div { border-top: 1px solid var(--line); padding-top: 12px; }
.home-v4 .jornadas-durations dt { font-size: 14px; color: var(--muted); }
.home-v4 .jornadas-durations dd { font: 500 24px/1.2 "Playfair Display", Georgia, serif; color: var(--navy); margin-top: 4px; }
.home-v4 .level-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* Sesiones por nivel en «Acompañamiento cercano» */

/* Validez oficial: tabla de RVOE visible */

/* Sedes: el país va debajo del nombre */
.home-v4 .campus.photo { display: flex; flex-direction: column; justify-content: flex-end; }
.home-v4 .campus small { order: 2; margin-top: 4px; font-size: 13px; letter-spacing: .02em; text-transform: none; color: #ece6f1; }

/* Testimonios sin raya lateral */
.home-v4 .quote { border-left: 0; }
.home-v4 .quote p { font-size: 17px; line-height: 1.6; }
.home-v4 .quote cite { font-size: 14px; }

/* Tamaños mínimos de texto que estaban en 10–12 px */

.home-v4 .gallery-navigation > span,
.home-v4 .gallery-hint,
.home-v4 .note { font-size: 14px; }

.home-v4 .teacher-info p { font-size: 13px; }
.home-v4 .film-card figcaption p { font-size: 14px; }

/* Controles de carrusel y galería con iconos SVG */
.home-v4 :is(.showcase-controls, .proof3-controls, .gallery-navigation, .lightbox-photo) button { display: inline-grid; place-items: center; padding: 0; }
.home-v4 [data-toggle] .i-play { display: none; }
.home-v4 [data-toggle].is-paused .i-play { display: block; }
.home-v4 [data-toggle].is-paused .i-pause { display: none; }
.home-v4 .burger { display: none; place-items: center; width: 44px; height: 44px; padding: 0; color: var(--navy); }

/* Formulario: errores por campo */
.home-v4 .form-title { font: 500 28px/1.2 "Playfair Display", Georgia, serif; color: var(--navy); }
.home-v4 .form label small { display: block; margin-top: 6px; font-weight: 400; font-size: 13px; }
.home-v4 .form .field-help { color: var(--muted); }
.home-v4 .form .field-error { color: #a3233a; font-weight: 600; }
.home-v4 .form .field-error:empty { display: none; }
.home-v4 .form :is(input, select)[aria-invalid="true"] { border-color: #a3233a; }
.home-v4 .form :is(input, select)[aria-invalid="true"]:focus-visible { outline-color: #a3233a; }
.home-v4 .form :is(input, select) { font-weight: 400; font-size: 16px; color: var(--ink); }
.home-v4 .form input::placeholder { color: #6f6979; }
.home-v4 .form .check { font-size: 14px; }
.home-v4 .form .check a { color: var(--accent); }

@media (max-width: 980px) {
  .home-v4 .burger { display: inline-grid; }
}
@media (max-width: 640px) {
  .home-v4 .jornadas-durations { grid-auto-flow: row; grid-template-columns: 1fr; gap: 0; }
  .home-v4 .jornadas-durations div { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; }
  .home-v4 .jornadas-durations dd { font-size: 20px; margin-top: 0; }

}

/* Legibilidad: textos funcionales de 9–11 px, contraste de las iniciales y cortes de línea */
.home-v4 .topbar { font-size: 13px; letter-spacing: .01em; }
.home-v4 .brand-text span { font-size: 11px; letter-spacing: .04em; }

.home-v4 .footer-brand small { font-size: 12px; }
.home-v4 .teacher-placeholder > span { color: #6f6979; }
.home-v4 .teacher-placeholder small { font-size: 11px; color: #6f6979; }

.home-v4 :is(p, li, figcaption, blockquote) { text-wrap: pretty; }
.home-v4 :is(h2, h3) { text-wrap: balance; }
@media (max-width: 640px) {
  .home-v4 .topbar { font-size: 12px; }
  .home-v4 .topbar .inner { justify-content: center; text-align: center; }
  .home-v4 .brand-text span { font-size: 11px; }
}

/* El menú de oferta se salía por la derecha a 1440 px: centrado bajo su botón */
@media (min-width: 981px) {
  .home-v4 .mega { left: 50%; right: auto; transform: translateX(-50%); width: min(760px, 86vw); }
}

/* Flechas dibujadas en enlaces y botones */
.home-v4 .i-arrow { display: inline-block; vertical-align: -2px; flex-shrink: 0; }
.home-v4 :is(.editorial-link, .payment-link, .level a, .showcase-text-link, .btn) .i-arrow { margin-left: 4px; }

/* Datos del CAD sobre fondo ciruela */
.home-v4 .cad-facts div { border-top-color: #ffffff2e; }
.home-v4 .cad-facts dt { color: #d9d0e2; }
.home-v4 .cad-facts dd { color: #fff; font-size: 18px; line-height: 1.35; }

/* En móvil el WhatsApp flotante no tapa la última pestaña del hero */
@media (max-width: 640px) {
  
  .home-v4 .cad-facts dd { font-size: 16px; text-align: right; }
}

/* ===== Signos tipográficos que quedaban como iconos ===== */
.home-v4 .nav-drop > button { display: inline-flex; align-items: center; gap: 8px; }
.home-v4 .nav-drop > button::after { content: none; display: none; }
.home-v4 .nav-drop > button .nav-chevron { display: block; flex-shrink: 0; }

.home-v4 .jornadas-durations dd { font-variant-numeric: lining-nums tabular-nums; }

/* ===== Estudia sin pausar tu carrera: un mes de estudio por programa ===== */

.home-v4 .slot {
  display: inline-flex; align-items: center; min-height: 34px; padding: 6px 12px; border-radius: 3px;
  background: var(--accent-light); color: var(--navy); font-size: 14px; font-weight: 700; line-height: 1.2;
}

/* ===== Preguntas: lista por tema y respuesta en panel ===== */

@media (max-width: 720px) {

  .home-v4 .slot { min-height: 30px; padding: 5px 6px; font-size: 12px; text-align: center; justify-content: center; }

}

/* ===== footer ===== */
/* Pie de página de la portada (web/nuevo/base.html, solo cuando home_route es web:home):
   marca completa como en el encabezado, Programas, Contacto, Enlaces y barra legal con el
   Aviso de Privacidad. Las demás páginas conservan el pie del rediseño. */
.home-v4 footer.site-foot { padding: 60px 0 20px; background: #211a2c; color: #d9d0e2; }
.home-v4 footer.site-foot h2 { margin: 0 0 18px; padding-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; border-bottom: 1px solid rgba(222, 206, 232, .22); }
.home-v4 footer.site-foot ul { margin: 0; padding: 0; list-style: none; }

.home-v4 .foot-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(0, .85fr); gap: 36px 48px; align-items: start; }

/* Marca: igual que en el encabezado */
.home-v4 footer.site-foot .foot-brand { display: flex; align-items: center; gap: 14px; padding: 0; margin-bottom: 22px; color: #fff; }
.home-v4 .foot-brand img { flex: none; width: 64px; height: 64px; padding: 3px; background: #fff; border-radius: 50%; }
.home-v4 .foot-brand strong { display: block; font-size: 26px; font-weight: 800; line-height: 1; letter-spacing: .08em; color: #fff; }
.home-v4 .foot-brand .brand-dot { font-size: 10px; vertical-align: super; color: var(--accent-light); }
.home-v4 .foot-brand small { display: block; margin-top: 6px; font-size: 11px; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; color: #d9d0e2; }
.home-v4 .foot-place { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; margin: 0; font-size: 14px; line-height: 1.5; color: #d9d0e2; }
.home-v4 footer.site-foot svg { margin-top: 2px; color: var(--accent-light); }

/* Listas de enlaces */
.home-v4 footer.site-foot .foot-links { display: grid; gap: 4px; }
.home-v4 footer.site-foot .foot-links a { display: inline-block; padding: 4px 0; font-size: 15px; line-height: 1.4; color: #e0d8e8; }
.home-v4 footer.site-foot .foot-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Contacto: etiqueta arriba, dato abajo */
.home-v4 .foot-list { display: grid; gap: 14px; }
.home-v4 .foot-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; }
.home-v4 .foot-list small { display: block; font-size: 12px; line-height: 1.3; letter-spacing: .02em; color: #b9adc5; }
.home-v4 footer.site-foot .foot-list a { display: inline; padding: 0; font-size: 15px; font-weight: 600; line-height: 1.4; color: #fff; overflow-wrap: anywhere; }
.home-v4 footer.site-foot .foot-list a:hover { color: var(--accent-light); text-decoration: underline; text-underline-offset: 3px; }

/* Redes: solo icono, con nombre para lectores de pantalla */
.home-v4 footer.site-foot .social { margin: 18px 0 0; gap: 10px; }
.home-v4 footer.site-foot .social a { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; color: #fff; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.home-v4 footer.site-foot .social a svg { margin: 0; color: currentColor; }
.home-v4 footer.site-foot .social a:hover { background: var(--accent-light); border-color: var(--accent-light); color: var(--navy); }

.home-v4 footer.site-foot .legal { align-items: center; margin-top: 44px; padding-top: 16px; font-size: 13px; color: #b9adc5; border-top-color: rgba(255, 255, 255, .12); }
.home-v4 footer.site-foot .legal a { display: inline; padding: 0; font-size: 13px; font-weight: 700; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.home-v4 footer.site-foot .legal a:hover { color: var(--accent-light); }
.home-v4 footer.site-foot :focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }

@media (max-width: 1080px) {
  .home-v4 .foot-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .home-v4 footer.site-foot { padding-top: 44px; }
  .home-v4 .foot-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .home-v4 footer.site-foot .legal { flex-direction: column; align-items: flex-start; padding-right: 70px; }
}
