/* ==========================================================
   UTIS · Sitio de prueba
   Tokens de diseño: copiar estas variables al proyecto real.
   ========================================================== */

/* Fuentes con licencia (assets/fonts). Solo se declaran los pesos que usa el sitio. */
@font-face { font-family: "Akzidenz-Grotesk Next"; src: url("../assets/fonts/Akzidenz/AkzidenzGroteskNext-Bold.woff2") format("woff2"), url("../assets/fonts/Akzidenz/Akzidenz%20Grotesk%20Next%20Bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }

@font-face { font-family: "Titling Gothic FB Wide"; src: url("../assets/fonts/Titling%20Gothic%20FB/TitlingGothicFBWide-Reg.woff2") format("woff2"), url("../assets/fonts/Titling%20Gothic%20FB/TitlingGothicFBWide-Reg.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }

@font-face { font-family: "Titling Gothic FB Wide"; src: url("../assets/fonts/Titling%20Gothic%20FB/TitlingGothicFBWide-Med.woff2") format("woff2"), url("../assets/fonts/Titling%20Gothic%20FB/TitlingGothicFBWide-Med.otf") format("opentype"); font-weight: 600; font-style: normal; font-display: swap; }

@font-face { font-family: "Titling Gothic FB Wide"; src: url("../assets/fonts/Titling%20Gothic%20FB/TitlingGothicFBWide-Bold.woff2") format("woff2"), url("../assets/fonts/Titling%20Gothic%20FB/TitlingGothicFBWide-Bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Color de marca (tomados del logo) */
  --azul-utis: #184177;        /* fondos de bloque, menú activo, footer */
  --naranja-logo: #D64400;     /* solo en el logo y acentos grandes */
  --naranja-accion: #C94100;   /* botones y barras: contraste AA con texto blanco */
  --verde-whatsapp: #1C7C4A;   /* todo lo que abre WhatsApp */

  /* Neutros */
  --tinta: #121A24;            /* texto principal */
  --texto-sec: #46505C;        /* texto secundario */
  --fondo: #EFEFEF;            /* fondo general */
  --blanco: #FFF;              /* secciones y tarjetas */
  --linea: #C9CED3;            /* bordes */
  --borde-campo: #6B7580;      /* bordes de campos de formulario */
  --sobre-azul: #D5DDE6;       /* texto secundario sobre azul */
  --durazno: #F6B08F;          /* títulos pequeños sobre azul */
  --error: #B42318;

  /* Tipografía (con licencia) */
  --f-titulo: "Akzidenz-Grotesk Next", "Arial Narrow", sans-serif;
  --f-texto: "Titling Gothic FB Wide", system-ui, sans-serif;

  /* Escala tipográfica (fluida) */
  --t-hero: clamp(2.6rem, 1.8rem + 3vw, 4.25rem);
  --t-display: clamp(2.4rem, 1.8rem + 2.2vw, 4rem);
  --t-section: clamp(2.1rem, 1.7rem + 1.5vw, 3.5rem);
  --t-card: clamp(1.6rem, 1.45rem + .5vw, 2rem);
  --t-lead: clamp(1.08rem, 1rem + .35vw, 1.3rem);
  --t-body: 1.0625rem;
  --t-small: .9375rem;

  /* Espaciado */
  --gutter: clamp(16px, 5vw, 120px);
  --sec-y: clamp(64px, 5rem + 2vw, 104px);
  --gap: 24px;
  --radio: 6px;
  --contenido: 1200px;
  --header-h: 88px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0; background: var(--fondo); color: var(--tinta);
  font-family: var(--f-texto); font-size: var(--t-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Contenido pendiente: se oculta sin borrarlo. Para mostrarlo, quitar el atributo data-oculto en el HTML. */
[data-oculto] { display: none !important; }

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

/* <picture> solo elige el formato (AVIF/WebP/JPG): no genera caja, así el <img> sigue siendo el hijo directo en la maquetación.
   Sus <source> tampoco deben generar caja (en un contenedor flex con gap sumarían espacio). */
picture { display: contents; }
source { display: none; }
[hidden] { display: none !important; }
a { color: var(--azul-utis); }
a:hover { color: var(--tinta); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--naranja-accion); outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--tinta); color: var(--blanco); padding: 10px 16px; border-radius: var(--radio); }
.skip:focus { top: 12px; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: calc(var(--contenido) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.muted { color: var(--texto-sec); }
.small { font-size: var(--t-small); }
.center { text-align: center; }

/* ---------- Tipografía ---------- */
.h-display { font-family: var(--f-titulo); font-weight: 700; font-size: var(--t-display); line-height: .98; font-stretch: normal; }
.h-display--xl { font-size: var(--t-hero); }
.h-section { font-family: var(--f-titulo); font-weight: 700; font-size: var(--t-section); line-height: 1; font-stretch: normal; }
.h-section--sm { font-size: clamp(1.9rem, 1.6rem + 1vw, 2.5rem); }
.h-section--xs { font-size: clamp(1.6rem, 1.4rem + .6vw, 2.1rem); }
.h-label { font-family: var(--f-titulo); font-weight: 700; font-size: 1.5rem; color: var(--azul-utis); font-stretch: normal; }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--texto-sec); max-width: 42em; }
.body-lg { font-size: var(--t-lead); line-height: 1.55; max-width: 36em; }
.bar { display: block; width: 96px; height: 10px; background: var(--naranja-accion); }
.pending { background: #FFF4D6; border: 1.5px dashed #B98A00; color: #5C4400; padding: 12px 16px; border-radius: var(--radio); font-size: var(--t-small); }

/* ---------- Íconos ---------- */
.ic { width: 24px; height: 24px; fill: none; stroke: currentcolor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icbox { width: 56px; height: 56px; flex-shrink: 0; border-radius: var(--radio); background: var(--naranja-accion); color: var(--blanco); display: inline-flex; align-items: center; justify-content: center; }
.icbox .ic { width: 28px; height: 28px; }
.icbox--lg { width: 64px; height: 64px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--radio); border: 2px solid transparent;
  font-family: var(--f-texto); font-weight: 700; font-size: 1.05rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn .ic { width: 22px; height: 22px; }
.btn--primary { background: var(--naranja-accion); color: var(--blanco); }
.btn--primary:hover { background: #A83600; color: var(--blanco); }
.btn--dark { background: var(--tinta); color: var(--blanco); }
.btn--dark:hover { background: #000; color: var(--blanco); }
.btn--wa { background: var(--verde-whatsapp); color: var(--blanco); }
.btn--wa:hover { background: #146239; color: var(--blanco); }
.btn--ghost { border-color: var(--tinta); color: var(--tinta); background: transparent; }
.btn--ghost:hover { background: var(--tinta); color: var(--blanco); }
.btn--plain { background: transparent; color: var(--azul-utis); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.text-link { font-weight: 700; color: var(--azul-utis); }
.text-link--wa { color: var(--verde-whatsapp); display: block; padding: 8px 0; }

/* ---------- Header ---------- */
.topbar { position: sticky; top: env(safe-area-inset-top, 0); z-index: 50; background: var(--blanco); border-bottom: 1px solid var(--linea); }
.topbar__inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; padding-inline: var(--gutter); max-width: calc(var(--contenido) + 2 * var(--gutter)); margin-inline: auto; }
.brand img { height: 68px; width: auto; object-fit: contain; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; }
.nav__link { display: block; padding: 12px 16px; font-weight: 600; font-size: 1.05rem; color: var(--tinta); text-decoration: none; border-radius: 2px; }
.nav__link:hover { background: var(--fondo); color: var(--tinta); }
.nav__link[aria-current="page"] { background: var(--azul-utis); color: var(--blanco); font-weight: 700; }
.menu-btn { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; background: transparent; color: var(--tinta); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn .ic { width: 28px; height: 28px; }
.menu-btn .ic--close { display: none; }
.menu-btn[aria-expanded="true"] .ic--open { display: none; }
.menu-btn[aria-expanded="true"] .ic--close { display: block; }
.mobile-menu { background: var(--blanco); border-top: 1px solid var(--linea); box-shadow: 0 12px 24px rgb(18 26 36 / 18%); max-height: calc(100vh - 64px); overflow-y: auto; }
.mobile-menu__link { display: flex; align-items: center; min-height: 56px; padding: 0 var(--gutter); font-size: 1.2rem; font-weight: 700; color: var(--tinta); text-decoration: none; border-bottom: 1px solid var(--linea); }
.mobile-menu__link[aria-current="page"] { background: var(--azul-utis); color: var(--blanco); }
.mobile-menu__ctas { display: flex; flex-direction: column; gap: 12px; padding: 20px var(--gutter) 24px; }

/* ---------- Secciones ---------- */
.section { padding-block: var(--sec-y); }
.section--tight { padding-block: clamp(40px, 5vw, 80px) var(--sec-y); }
.section--white { background: var(--blanco); }
.section--line { border-top: 1px solid var(--linea); }
.section--navy { background: var(--azul-utis); color: var(--blanco); }
.section--navy .lead { color: var(--sobre-azul); }
.section--detail { padding-top: clamp(32px, 4vw, 56px); }
.sec-head { display: flex; flex-direction: column; gap: 14px; }
.sec-head--row { flex-flow: row wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.page-hero { background: var(--blanco); border-bottom: 1px solid var(--linea); padding-block: clamp(40px, 6vw, 88px); }
.page-hero .wrap { display: flex; flex-direction: column; gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.grid-2--stretch { align-items: stretch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.section--navy .split > .stack { max-width: 760px; }
.split--media { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(32px, 5vw, 72px); }
.media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 4px; }

/* Hero de inicio */
.hero { background: var(--blanco); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 620px; }
.hero__text { display: flex; flex-direction: column; justify-content: center; gap: 26px; padding: 64px 56px 64px var(--gutter); }
.hero__text .lead { max-width: 34em; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }

/* Tarjetas de servicio */
.serv-card { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: 32px; display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: var(--tinta); transition: border-color .15s; }
.serv-card:hover { border-color: var(--tinta); color: var(--tinta); }
.serv-card h3 { font-family: var(--f-titulo); font-weight: 700; font-size: var(--t-card); line-height: 1; font-stretch: normal; }
.serv-card p { color: var(--texto-sec); }
.serv-card__txt { display: flex; flex-direction: column; gap: 10px; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.step { border-top: 4px solid var(--tinta); padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.step__n { font-family: var(--f-titulo); font-weight: 700; font-size: 5.25rem; line-height: .85; color: var(--azul-utis); }
.step h3 { font-family: var(--f-titulo); font-weight: 700; font-size: var(--t-card); font-stretch: normal; }
.step p { color: var(--texto-sec); max-width: 24em; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-block; border: 1.5px solid var(--tinta); color: var(--tinta); border-radius: 999px; padding: 8px 18px; font-weight: 600; font-size: 1rem; }
.chip--light { border-color: rgb(255 255 255 / 60%); color: var(--blanco); }
.chip--link { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.chip--link:hover { background: var(--tinta); color: var(--blanco); }

/* Tarjetas de actividad */
.act-card { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--tinta); }
.act-card__img img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.act-card__body { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 8px; }
.act-card time { font-size: var(--t-small); font-weight: 600; color: var(--azul-utis); }
.act-card h3, .act-card h2 { font-family: var(--f-titulo); font-weight: 700; font-size: 1.75rem; line-height: 1.05; font-stretch: normal; }
.act-card p { color: var(--texto-sec); }
.act-card--big { grid-column: span 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.act-card--big img { height: 100%; aspect-ratio: auto; min-height: 360px; }
.act-card--big .act-card__body { justify-content: center; padding: 40px; gap: 14px; }
.act-card--big h3, .act-card--big h2 { font-size: clamp(2rem, 1.6rem + 1.2vw, 2.75rem); }

/* Banda de afiliación */
.band { padding-block: clamp(56px, 7vw, 96px); }
.band--join { background: var(--naranja-accion); color: var(--blanco); }
.band--join .lead { color: var(--blanco); }
.band--navy { background: var(--azul-utis); color: var(--blanco); }
.band--navy .lead { color: var(--sobre-azul); }
.band__inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.band__inner > div:first-child { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.band--join .h-section { font-size: clamp(2.6rem, 2rem + 2vw, 4.5rem); }

/* Nosotros */
.mv { background: var(--azul-utis); color: var(--blanco); border-radius: var(--radio); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 18px; }
.mv p { font-size: var(--t-lead); line-height: 1.5; }
.values { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.value { background: var(--blanco); border: 1px solid var(--linea); border-top: 6px solid var(--naranja-accion); border-radius: var(--radio); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.value h3 { font-family: var(--f-titulo); font-weight: 700; font-size: 1.75rem; font-stretch: normal; }
.value p { color: var(--texto-sec); }

/* Servicios */
.serv-block { scroll-margin-top: calc(var(--header-h) + 16px); background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
#convenios { scroll-margin-top: var(--header-h); }
.bullets { display: flex; flex-direction: column; gap: 14px; }
.bullets li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.125rem; }
.bullets li::before { content: ""; width: 10px; height: 10px; margin-top: 9px; flex-shrink: 0; background: var(--naranja-accion); border: 1.5px solid var(--tinta); }

/* Detalle de actividad */
.back { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; text-decoration: none; }
.meta { display: flex; flex-wrap: wrap; gap: 12px 28px; color: var(--texto-sec); }
.meta li { display: inline-flex; align-items: center; gap: 8px; }
.meta .ic { color: var(--azul-utis); width: 20px; height: 20px; }
.detail-main { margin: 8px 0 0; }
.detail-main img { width: 100%; max-height: 620px; object-fit: cover; border-radius: 4px; }
.prose { display: flex; flex-direction: column; gap: 18px; max-width: 40em; font-size: var(--t-lead); line-height: 1.6; margin-top: 12px; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }

/* Afíliate */
.join { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.card { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: clamp(24px, 3vw, 32px); }
.card--top { border-top: 8px solid var(--naranja-accion); padding: clamp(24px, 3.5vw, 44px); }
form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 1rem; padding: 0; margin-bottom: 0; }
fieldset.field legend { margin-bottom: 10px; }

input[type="text"], input[type="tel"] {
  min-height: 52px; padding: 0 16px; width: 100%; font: inherit; font-size: 1.0625rem;
  border: 1.5px solid var(--borde-campo); border-radius: 4px; background: var(--blanco); color: var(--tinta);
}
input[aria-invalid="true"] { border-color: var(--error); }
.err { color: var(--error); font-size: var(--t-small); font-weight: 600; }
.radios { display: flex; gap: 12px; flex-wrap: wrap; }
.radio { flex: 1 1 140px; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--borde-campo); border-radius: 4px; cursor: pointer; background: var(--blanco); }
.radio input, .check input { width: 20px; height: 20px; accent-color: var(--azul-utis); flex-shrink: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-small); line-height: 1.45; color: var(--texto-sec); }
.check input { margin-top: 1px; }
.done { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.done:focus { outline: none; }
.done__ic { width: 64px; height: 64px; border-radius: 999px; background: var(--naranja-accion); color: var(--blanco); display: flex; align-items: center; justify-content: center; }
.done__ic .ic { width: 32px; height: 32px; }
.demo-note { font-size: .85rem; color: var(--texto-sec); border-top: 1px dashed var(--linea); padding-top: 12px; }
.mini-steps { display: flex; flex-direction: column; gap: 20px; }
.mini-steps li { display: flex; gap: 18px; align-items: flex-start; }
.mini-steps span { width: 48px; height: 48px; flex-shrink: 0; border-radius: var(--radio); background: var(--azul-utis); color: var(--blanco); display: flex; align-items: center; justify-content: center; font-family: var(--f-titulo); font-weight: 700; font-size: 1.75rem; }
.mini-steps h3 { font-family: var(--f-titulo); font-weight: 700; font-size: 1.6rem; font-stretch: normal; }
.mini-steps p { color: var(--texto-sec); }
.checks { display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.125rem; }
.checks .ic { color: var(--azul-utis); margin-top: 2px; }

/* Contacto */
.wa-card { background: var(--azul-utis); color: var(--blanco); border-radius: var(--radio); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.wa-card__ic .ic { width: 48px; height: 48px; color: var(--durazno); }
.wa-card__num { font-family: var(--f-titulo); font-weight: 700; font-size: clamp(2.8rem, 2.2rem + 2vw, 4rem); line-height: 1; user-select: all; }
.wa-card p:not(.wa-card__num) { color: var(--sobre-azul); }
.contact-card { display: flex; gap: 20px; align-items: flex-start; }
.contact-card h3 { font-family: var(--f-titulo); font-weight: 700; font-size: 1.9rem; font-stretch: normal; margin-bottom: 4px; }
.contact-card__val { font-size: 1.2rem; font-weight: 700; user-select: all; overflow-wrap: anywhere; }
.links-row { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.links-row a { font-weight: 700; }
.iconline { display: flex; gap: 12px; align-items: flex-start; font-size: 1.2rem; }
.iconline .ic { color: var(--azul-utis); margin-top: 3px; }

/* Footer */
.footer { background: var(--azul-utis); color: var(--blanco); padding-block: 72px 40px; }
.footer a { color: var(--blanco); }
.footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.footer__logo { align-self: flex-start; height: auto; width: 150px; max-width: 100%; object-fit: contain; }
.footer__motto, .footer__h { font-family: var(--f-titulo); font-weight: 700; font-size: 1.4rem; color: var(--durazno); font-stretch: normal; }
.footer__soft { color: var(--sobre-azul); }
.footer__bottom { margin-top: 48px; border-top: 1px solid #3D5878; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--t-small); color: var(--sobre-azul); }
.footer__bottom a { color: var(--sobre-azul); }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px; border-radius: 999px;
  background: var(--verde-whatsapp); color: var(--blanco); font-weight: 700; text-decoration: none; box-shadow: 0 6px 18px rgb(18 26 36 / 28%);
}
.wa-float:hover { background: #146239; color: var(--blanco); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  .nav__link { padding: 10px; font-size: 1rem; }
  .values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .nav, .topbar__cta { display: none; }
  .menu-btn { display: inline-flex; }
  .brand img { height: 46px; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__img { order: -1; }
  .hero__img img { height: auto; aspect-ratio: 4 / 3; }
  .hero__text { padding: 36px var(--gutter) 48px; }
  .grid-3, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--media, .serv-block, .join, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .act-card--big { grid-column: span 2; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .grid-3, .steps, .values, .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .act-card--big { grid-column: auto; display: flex; }
  .act-card--big img { min-height: 0; aspect-ratio: 16 / 11; }
  .act-card--big .act-card__body { padding: 22px 26px 26px; }
  .serv-card { flex-direction: row; align-items: flex-start; padding: 20px; gap: 16px; }
  .serv-card .icbox { width: 48px; height: 48px; }
  .step { flex-flow: row wrap; column-gap: 18px; padding-top: 18px; }
  .step__n { font-size: 3.5rem; width: 36px; }
  .step h3 { flex: 1; align-self: center; }
  .step p { flex-basis: 100%; padding-left: 54px; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn, .stack > div > .btn, .stack-lg > div > .btn { width: 100%; }
  .band__inner .btn-row { width: 100%; }
  .wa-float { width: 60px; height: 60px; padding: 0; justify-content: center; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .wa-float .ic { width: 28px; height: 28px; }
  .detail-main img { aspect-ratio: 4 / 3; }
  .footer { padding-bottom: 96px; }
}

/* Páginas legales */
.legal { max-width: 46em; display: flex; flex-direction: column; gap: 16px; font-size: 1.0625rem; }
.legal h2 { font-family: var(--f-titulo); font-weight: 700; font-size: clamp(1.7rem, 1.5rem + .6vw, 2.2rem); line-height: 1.05; margin-top: 20px; font-stretch: normal; }
.legal ul, .legal ol { display: flex; flex-direction: column; gap: 8px; padding-left: 1.4em; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.table-wrap { overflow-x: auto; }
.legal table { border-collapse: collapse; width: 100%; min-width: 520px; background: var(--blanco); }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid var(--linea); }
.legal th { background: var(--fondo); }
.aviso-simple { border-left: 0; background: var(--fondo); padding: 12px 14px; border-radius: 4px; }

/* Hover de las tarjetas de actividad: va al final porque su especificidad (0,2,1) es mayor que la
   de los demás "… h2/h3" (0,1,1); así no queda un selector más débil después (no-descending-specificity). */
.act-card:hover h3, .act-card:hover h2 { text-decoration: underline; text-underline-offset: 4px; }
