/* ==========================================================================
   GLOBALVETS · Propuesta de rediseño · hoja de estilos compartida
   ========================================================================== */

/* ---------- 0. Fuentes locales ---------- */
@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-300-normal.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- 1. Variables ---------- */
:root {
  --blanco: #FFFFFF;
  --niebla: #F0F5FA;
  --tinta: #1e293b;
  --texto: #1e293b;
  --texto-suave: #475569;
  --rojo: #CD0610;
  --rojo-hondo: #a30510;
  --linea: rgba(30, 41, 59, 0.16);
  --barra-alto: 44px;
  --cabecera-alto: 88px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--blanco);
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--tinta);
}
h3 { font-weight: 400; font-size: 1.5rem; line-height: 1.2; letter-spacing: 0; }
em { font-style: normal; color: var(--rojo); }
:focus-visible { outline: 2px solid var(--rojo); outline-offset: 3px; }

.saltar {
  position: absolute; left: 12px; top: -60px; z-index: 500;
  background: var(--tinta); color: #fff; padding: 10px 16px; text-decoration: none;
}
.saltar:focus { top: 12px; }

.wrap { width: min(1280px, 100% - 64px); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rojo);
}

.lead {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  color: var(--texto-suave);
  line-height: 1.6;
  max-width: 40ch;
}

/* ---------- 3. Aviso de demostración y selector ---------- */
.barra-demo {
  position: relative;
  z-index: 60;
  background: var(--tinta);
  color: #e2e8f0;
  font-size: 0.82rem;
  line-height: 1.4;
}
.barra-interior {
  min-height: var(--barra-alto);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 6px;
}
.barra-texto { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.barra-acciones { display: flex; align-items: center; gap: 22px; white-space: nowrap; }
.barra-enlace { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.barra-enlace:hover { color: #fecaca; }

.selector { position: relative; }
.selector summary {
  list-style: none;
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
}
.selector summary::-webkit-details-marker { display: none; }
.selector summary::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.selector[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.selector ul {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 80;
  list-style: none;
  margin: 0;
  padding: 8px;
  min-width: 230px;
  background: var(--blanco);
  color: var(--texto);
  border: 1px solid var(--linea);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}
.selector li a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--texto);
  font-size: 0.92rem;
}
.selector li a:hover { background: var(--niebla); }
.selector li a[aria-current='page'] { font-weight: 600; color: var(--rojo-hondo); background: var(--niebla); }

/* ---------- 4. Cabecera ---------- */
.cabecera-sitio {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}
.cabecera-sitio.encogido { border-bottom-color: var(--linea); }
.cabecera {
  height: var(--cabecera-alto);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: height 0.4s var(--ease);
}
.cabecera-sitio.encogido .cabecera { height: 72px; }
.marca img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); }
.nav > a:not(.btn) {
  position: relative;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--tinta);
  padding-block: 6px;
}
.nav > a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--rojo);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav > a:not(.btn):hover::after,
.nav > a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }

.menu-boton {
  display: none;
  width: 48px; height: 48px;
  background: transparent;
  border: 1px solid var(--linea);
  border-radius: 4px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-boton span { display: block; width: 20px; height: 2px; background: var(--tinta); transition: transform 0.3s var(--ease); }
.menu-boton[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-boton[aria-expanded='true'] span:nth-child(2) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. Botones ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease);
  will-change: transform;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--relleno, var(--rojo));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn:hover, .btn:focus-visible { color: #fff; border-color: var(--relleno, var(--rojo)); }
.btn svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-primario { background: var(--tinta); border-color: var(--tinta); color: #fff; --relleno: var(--rojo); }
.btn-contorno { background: transparent; color: var(--tinta); border-color: var(--tinta); --relleno: var(--tinta); }
.btn-claro { background: #fff; border-color: #fff; color: var(--tinta); --relleno: var(--rojo); }
.btn-claro:hover, .btn-claro:focus-visible { color: #fff; }

.enlace-flecha {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--tinta);
  border-bottom: 1px solid var(--rojo);
  padding-bottom: 3px;
}
.enlace-flecha svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.enlace-flecha:hover svg { transform: translateX(5px); }

/* ---------- 6. Titulares con máscara (reveal) ---------- */
.linea { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.linea > span { display: inline-block; }

/* ---------- 7. Portada ---------- */
.hero { padding: clamp(56px, 9vh, 120px) 0 clamp(56px, 8vh, 110px); }
.hero-rejilla {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: center;
}
.hero-texto { grid-column: 1 / span 7; }
h1 {
  font-size: clamp(2.7rem, 5.6vw, 5.4rem);
  margin: 22px 0 30px;
}
.hero-acciones { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero-panel {
  grid-column: 8 / span 5;
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--niebla);
  border: 1px solid var(--linea);
  overflow: hidden;
}
/* Motivo del logo (aros concéntricos) dentro del panel: el fondo blanco se funde con el niebla */
.hero-imagen {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 84%;
  height: auto;
  transform: translate(-50%, -50%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.aro-svg {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 78%;
  transform: translate(-50%, -50%);
  overflow: visible;
}
.aro-trazo {
  fill: none;
  stroke: var(--rojo);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.hero-panel figcaption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--tinta);
  border-top: 1px solid var(--linea);
  padding-top: 14px;
}
.hero-panel figcaption span { color: var(--texto-suave); font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.04em; align-self: center; }

/* Marquesina sobria */
.marquesina { border-block: 1px solid var(--linea); overflow: hidden; padding: 22px 0; background: var(--niebla); }
.marquesina-pista { display: flex; width: max-content; animation: desliza 42s linear infinite; }
.marquesina-pista span {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  padding-right: 0.9em;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  color: var(--tinta);
  white-space: nowrap;
}
.marquesina-pista span::after {
  content: '';
  width: 0.5em;
  height: 0.5em;
  border: 2px solid var(--rojo);
  border-radius: 50%;
}
.marquesina:hover .marquesina-pista { animation-play-state: paused; }
@keyframes desliza { to { transform: translateX(-50%); } }

/* ---------- 8. Secciones ---------- */
.seccion { padding: clamp(72px, 10vw, 150px) 0; }
.seccion-cabecera {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: end;
  margin-bottom: clamp(40px, 5.5vw, 72px);
}
.seccion-cabecera > div { grid-column: 1 / span 7; }
.seccion-cabecera h2 { font-size: clamp(2.2rem, 4.2vw, 4rem); margin-top: 18px; }
.seccion-cabecera .lead { grid-column: 9 / span 4; }

/* Índice de líneas */
.filas { border-top: 1px solid var(--tinta); }
.fila {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 90px minmax(0, 1.2fr) minmax(0, 1.6fr) 28px;
  align-items: center;
  gap: 24px;
  padding: 28px 12px;
  margin-inline: -12px;
  border-bottom: 1px solid var(--linea);
  text-decoration: none;
  color: var(--tinta);
}
.fila::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--niebla);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.55s var(--ease);
}
.fila:hover::before, .fila:focus-visible::before { transform: scaleY(1); }
.fila-fija { cursor: default; grid-template-columns: 90px minmax(0, 1fr); }
.fila-fija::before { display: none; }
.fila .num { font-weight: 600; font-size: 0.9rem; color: var(--rojo); }
.fila .nombre { font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem, 2.9vw, 2.5rem); line-height: 1.1; }
.fila .desc { color: var(--texto-suave); }
.fila svg { width: 28px; height: 28px; justify-self: end; transition: transform 0.45s var(--ease); }
.fila:hover svg { transform: translateX(6px); }

/* Servicios */
.servicios { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--tinta); }
.servicio { padding: 34px 28px 10px 0; }
.servicio + .servicio { padding-left: 28px; border-left: 1px solid var(--linea); }
.servicio svg { width: 38px; height: 38px; fill: none; stroke: var(--rojo); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.servicio h3 { margin: 26px 0 12px; }
.servicio p { color: var(--texto-suave); }

/* Públicos */
.publicos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.publico { margin: 0; }
.publico .marco {
  background: var(--blanco);
  border: 1px solid var(--linea);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 10%;
  overflow: hidden;
}
.publico img { width: 100%; height: auto; }
.publico figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 18px;
  border-top: 1px solid var(--tinta);
  margin-top: 16px;
}
.publico figcaption span { font-family: var(--serif); font-size: 1.9rem; color: var(--tinta); font-weight: 300; }
.publico figcaption small { font-weight: 600; font-size: 0.9rem; color: var(--rojo); }

/* Nosotros (bloque de portada) */
.dos-columnas { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.dos-columnas > h2 { grid-column: 1 / span 6; font-size: clamp(2.2rem, 4.2vw, 4rem); }
.dos-columnas > div { grid-column: 8 / span 5; display: grid; gap: 30px; }
.dos-columnas p { color: var(--texto-suave); font-size: 1.1rem; }

/* Banda de contacto */
.banda {
  position: relative;
  overflow: hidden;
  background: var(--tinta);
  color: #fff;
  padding: clamp(80px, 11vw, 160px) 0;
}
.banda h2 { color: #fff; font-size: clamp(2.4rem, 5vw, 4.8rem); max-width: 16ch; }
.banda .eyebrow { color: #fca5a5; }
.banda-rejilla { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.banda-rejilla > div:first-child { grid-column: 1 / span 7; }
.banda-datos { grid-column: 9 / span 4; display: grid; gap: 14px; }
.banda-datos a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.35); padding-bottom: 2px; width: fit-content; }
.banda-datos a:hover { border-color: #fff; }
.banda-aro {
  position: absolute;
  right: -160px;
  top: -140px;
  width: 620px;
  height: 620px;
  pointer-events: none;
  opacity: 0.9;
}
.banda-aro .aro-trazo { stroke: rgba(255, 255, 255, 0.16); stroke-width: 1.6; }

/* ---------- 9. Página interior: encabezado ---------- */
.cabecera-pagina { padding: clamp(64px, 10vh, 130px) 0 clamp(40px, 6vh, 80px); }
.cabecera-pagina h1 { font-size: clamp(2.8rem, 6.4vw, 6.2rem); margin-top: 20px; max-width: 16ch; }
.cabecera-pagina .lead { margin-top: 30px; font-size: clamp(1.1rem, 1.6vw, 1.4rem); max-width: 46ch; }

.foto-marco { position: relative; overflow: hidden; background: var(--niebla); }
.foto-marco img { width: 100%; height: auto; transform: scale(1.1); will-change: transform; }

/* Productos: bloques editoriales */
.linea-producto {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid var(--tinta);
  scroll-margin-top: 110px;
}
.linea-producto .num { grid-column: 1 / span 1; font-weight: 600; color: var(--rojo); font-size: 0.95rem; padding-top: 0.6em; }
.linea-producto h2 { grid-column: 2 / span 6; font-size: clamp(2rem, 3.6vw, 3.4rem); }
.linea-producto p { grid-column: 9 / span 4; color: var(--texto-suave); font-size: 1.1rem; padding-top: 0.4em; }
.linea-producto p.sin-texto { color: var(--texto-suave); font-style: normal; }

/* Contacto */
.contacto-rejilla { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; align-items: start; }
.datos { grid-column: 1 / span 4; display: grid; gap: 34px; }
.dato { display: grid; grid-template-columns: 40px 1fr; gap: 12px 16px; align-items: start; border-top: 1px solid var(--linea); padding-top: 22px; }
.dato svg { width: 26px; height: 26px; fill: none; stroke: var(--rojo); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.dato h3 { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--texto-suave); }
.dato p, .dato a { font-size: 1.1rem; color: var(--tinta); text-decoration: none; }
.dato a { border-bottom: 1px solid var(--rojo); width: fit-content; }
.dato p + p { margin-top: 4px; }

.formulario-caja { grid-column: 6 / span 7; }
.formulario { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.campo { display: grid; gap: 8px; }
.campo.ancho { grid-column: 1 / -1; }
.campo label { font-size: 0.9rem; font-weight: 600; color: var(--tinta); }
.campo input, .campo textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--tinta);
  background: var(--blanco);
  border: 1px solid #94a3b8;
  border-radius: 2px;
  padding: 14px 16px;
  min-height: 52px;
}
.campo textarea { min-height: 150px; resize: vertical; }
.campo input:focus, .campo textarea:focus { outline: 2px solid var(--rojo); outline-offset: 1px; border-color: var(--rojo); }
.formulario .btn { justify-self: start; }
.aviso-form {
  margin-top: 4px;
  padding: 18px 20px;
  border-left: 3px solid var(--rojo);
  background: var(--niebla);
  color: var(--tinta);
  font-size: 1rem;
}
.aviso-form[hidden] { display: none; }

/* ---------- 10. Pie ---------- */
.pie { background: var(--niebla); border-top: 1px solid var(--linea); padding: 72px 0 32px; margin-top: 0; }
.pie-rejilla { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.pie-rejilla img { width: 170px; height: auto; }
.pie-rejilla p { color: var(--texto-suave); margin-top: 22px; max-width: 34ch; font-size: 0.98rem; }
.pie h3 { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--texto-suave); margin-bottom: 14px; }
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pie a { text-decoration: none; color: var(--tinta); }
.pie a:hover { color: var(--rojo); }
.pie-legal {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--linea);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--texto-suave);
}
.pie-legal .selector summary { color: var(--tinta); border-color: var(--linea); }
.pie-legal .selector summary::after { border-color: currentColor; }

/* ---------- 11. Movimiento ---------- */
.cursor { display: none; }
.cursor-propio .cursor { display: block; }
.cursor-propio, .cursor-propio * { cursor: none !important; }
.cursor {
  position: fixed;
  left: 0; top: 0;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--rojo);
  pointer-events: none;
  z-index: 400;
  opacity: 0;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease), background-color 0.3s, opacity 0.3s;
}
.cursor.visible { opacity: 1; }
.cursor.activo {
  width: 46px; height: 46px;
  margin: -23px 0 0 -23px;
  background: rgba(205, 6, 16, 0.14);
  border: 1.5px solid var(--rojo);
}

/* Cortina de transición (respaldo sin View Transitions) */
.cortina { position: fixed; inset: 0; z-index: 300; pointer-events: none; overflow: hidden; }
.cortina .disco {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150vmax;
  height: 150vmax;
  margin: -75vmax 0 0 -75vmax;
  border-radius: 50%;
  background: var(--rojo);
  transform: scale(0);
}
.llegada .cortina .disco { transform: scale(1); }

/* View Transitions entre páginas (navegación entre documentos) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 620ms cubic-bezier(0.7, 0, 0.3, 1) both cerrar-aro; }
::view-transition-new(root) { animation: 760ms cubic-bezier(0.7, 0, 0.3, 1) both abrir-aro; }
@keyframes cerrar-aro { from { clip-path: circle(150% at 50% 50%); } to { clip-path: circle(0% at 50% 50%); } }
@keyframes abrir-aro { from { clip-path: circle(0% at 50% 50%); } to { clip-path: circle(150% at 50% 50%); } }

/* ---------- 12. Respuesta a pantallas ---------- */
@media (max-width: 1100px) {
  .seccion-cabecera .lead { grid-column: 1 / -1; }
  .seccion-cabecera > div { grid-column: 1 / -1; }
  .servicios { grid-template-columns: repeat(2, 1fr); }
  .servicio:nth-child(3) { border-left: 0; padding-left: 0; }
  .servicio:nth-child(n + 3) { border-top: 1px solid var(--linea); }
  .pie-rejilla { grid-template-columns: 1fr 1fr; }
  .banda-aro { width: 460px; height: 460px; right: -200px; top: -120px; }
}

@media (max-width: 960px) {
  .menu-boton { display: flex; }
  .nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 49;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 0 9vw;
    background: var(--blanco);
  }
  .nav.abierto { display: flex; }
  .nav > a:not(.btn) { font-family: var(--serif); font-weight: 300; font-size: 2.4rem; }
  .nav .btn { margin-top: 12px; }
  .hero-texto, .hero-panel { grid-column: 1 / -1; }
  .hero-panel { aspect-ratio: 1 / 1; margin-top: 40px; }
  .dos-columnas > h2, .dos-columnas > div { grid-column: 1 / -1; }
  .contacto-rejilla > * { grid-column: 1 / -1; }
  .datos { grid-column: 1 / -1; }
  .linea-producto .num { grid-column: 1 / -1; padding-top: 0; }
  .linea-producto h2, .linea-producto p { grid-column: 1 / -1; }
  .banda-rejilla > div:first-child, .banda-datos { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .barra-texto { display: none; }
  .barra-interior { justify-content: flex-end; }
  .selector ul { position: fixed; top: calc(var(--barra-alto) + 6px); left: 18px; right: 18px; min-width: 0; }
  .cursor, .cursor-propio .cursor { display: none; }
  .wrap { width: min(1280px, 100% - 36px); }
  .fila { grid-template-columns: 52px minmax(0, 1fr) 24px; gap: 8px 14px; padding-inline: 4px; margin-inline: -4px; }
  .fila .desc { grid-column: 2 / span 2; }
  .fila svg { grid-row: 1; grid-column: 3; }
  .servicios { grid-template-columns: 1fr; }
  .servicio, .servicio + .servicio { padding-left: 0; border-left: 0; }
  .servicio:nth-child(n + 2) { border-top: 1px solid var(--linea); }
  .publicos { grid-template-columns: 1fr; max-width: 420px; }
  .formulario { grid-template-columns: 1fr; }
  .formulario .btn { width: 100%; justify-content: center; }
  .pie-rejilla { grid-template-columns: 1fr; }
  .pie-legal { flex-direction: column; align-items: flex-start; }
  .pie-legal .selector ul { left: auto; right: 0; }
  .banda-aro { width: 340px; height: 340px; right: -150px; top: -90px; }
}

@media (max-width: 420px) {
  .hero-acciones .btn { width: 100%; justify-content: center; }
  .hero-panel figcaption span { display: none; }
  .hero-panel figcaption { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquesina-pista { animation: none; }
  .foto-marco img { transform: none; }
}
