/* ==========================================================================
   EGA MULTISERVICIOS - Hoja de estilos principal
   Paleta tomada del logo real: azul #0F4166 - verde #45713E - gris #4A5863
   ========================================================================== */

/* --- 1. Variables de marca ------------------------------------------------ */
:root {
  /* Color */
  --azul:        #0F4166;
  --azul-oscuro: #0A2E48;
  --azul-medio:  #14537F;
  --azul-suave:  #E8F0F6;
  --verde:       #45713E;
  --verde-claro: #6BA85C;
  --verde-suave: #EEF5EC;
  --gris:        #4A5863;
  --gris-medio:  #6B7885;
  --gris-borde:  #D7DDE3;
  --gris-fondo:  #F4F7F9;
  --blanco:      #FFFFFF;
  --texto:       #1F2A33;

  /* Tipografia del sistema: carga instantanea y sin pedir nada a Google
     (evita el problema de privacidad de Google Fonts en Europa) */
  --fuente: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Medidas */
  --ancho: 1180px;
  --radio: 10px;
  --radio-lg: 16px;
  --sombra: 0 1px 2px rgba(15, 65, 102, .06), 0 8px 24px rgba(15, 65, 102, .08);
  --sombra-fuerte: 0 12px 40px rgba(15, 65, 102, .16);
  --transicion: .25s ease;
}

/* --- 2. Reset y base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--fuente);
  font-size: 17px;
  line-height: 1.65;
  color: var(--texto);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--azul-medio); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.18;
  color: var(--azul);
  margin: 0 0 .5em;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.15rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1.1em; }

ul { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: .4em; }

:focus-visible {
  outline: 3px solid var(--verde-claro);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Enlace de salto para teclado y lectores de pantalla */
.salta-al-contenido {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--azul); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.salta-al-contenido:focus { left: 0; }

/* --- 3. Utilidades de maquetacion ----------------------------------------- */
.contenedor { width: min(100% - 40px, var(--ancho)); margin-inline: auto; }

.seccion { padding: clamp(56px, 8vw, 92px) 0; }
.seccion--gris  { background: var(--gris-fondo); }
.seccion--azul  { background: var(--azul); color: #DCE7F0; }
.seccion--azul h2, .seccion--azul h3 { color: #fff; }

.cabecera-seccion { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.cabecera-seccion p { color: var(--gris); font-size: 1.06rem; margin-bottom: 0; }

.antetitulo {
  display: inline-block;
  font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--verde); margin-bottom: .7em;
}
.seccion--azul .antetitulo { color: var(--verde-claro); }

.centrado { text-align: center; }

/* --- 4. Botones ----------------------------------------------------------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 15px 28px;
  font: inherit; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; border-radius: var(--radio);
  cursor: pointer; text-align: center;
  transition: transform var(--transicion), box-shadow var(--transicion), background var(--transicion);
}
.boton:hover { text-decoration: none; transform: translateY(-2px); }
.boton svg { width: 20px; height: 20px; flex-shrink: 0; }

.boton--principal { background: var(--verde); color: #fff; box-shadow: 0 6px 18px rgba(69, 113, 62, .3); }
.boton--principal:hover { background: var(--verde-claro); }

.boton--azul { background: var(--azul); color: #fff; box-shadow: 0 6px 18px rgba(15, 65, 102, .28); }
.boton--azul:hover { background: var(--azul-medio); }

.boton--linea { background: transparent; color: var(--azul); border-color: var(--gris-borde); }
.boton--linea:hover { border-color: var(--azul); background: var(--azul-suave); }

.boton--blanco { background: #fff; color: var(--azul); }
.boton--blanco:hover { background: var(--azul-suave); }

.boton--linea-blanca { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.boton--linea-blanca:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.boton--ancho { width: 100%; }

.grupo-botones { display: flex; flex-wrap: wrap; gap: 14px; }

/* --- 5. Barra superior ---------------------------------------------------- */
.barra-superior {
  background: var(--azul-oscuro); color: #C9D8E4;
  font-size: .87rem; padding: 9px 0;
}
.barra-superior .contenedor {
  display: flex; flex-wrap: wrap; gap: 8px 26px;
  align-items: center; justify-content: space-between;
}
.barra-superior a { color: #fff; font-weight: 600; }
.barra-superior span { display: inline-flex; align-items: center; gap: 7px; }
.barra-superior svg { width: 15px; height: 15px; opacity: .8; }

/* --- 6. Cabecera y navegacion --------------------------------------------- */
.cabecera {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gris-borde);
}
.cabecera .contenedor {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 78px; position: relative;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo:hover { text-decoration: none; }
.logo img { width: 52px; height: 52px; }
.logo-texto { display: flex; flex-direction: column; line-height: 1.1; }
.logo-texto strong { color: var(--azul); font-size: 1.22rem; font-weight: 800; letter-spacing: -.02em; }
.logo-texto small { color: var(--gris-medio); font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

.navegacion ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.navegacion li { margin: 0; }
.navegacion a {
  display: block; padding: 10px 14px; border-radius: 8px;
  color: var(--gris); font-weight: 600; font-size: .97rem;
  transition: color var(--transicion), background var(--transicion);
}
.navegacion a:hover { color: var(--azul); background: var(--azul-suave); text-decoration: none; }
.navegacion a[aria-current="page"] { color: var(--azul); background: var(--azul-suave); }

.acciones-cabecera { display: flex; align-items: center; gap: 12px; }
.acciones-cabecera .boton { padding: 12px 20px; font-size: .95rem; }

.boton-menu {
  display: none;
  width: 46px; height: 46px; padding: 0;
  background: var(--azul-suave); border: none; border-radius: 8px;
  cursor: pointer; color: var(--azul);
  align-items: center; justify-content: center;
}
.boton-menu svg { width: 24px; height: 24px; }

/* --- 7. Portada (hero) ---------------------------------------------------- */
.portada {
  position: relative;
  background:
    linear-gradient(150deg, rgba(10,46,72,.94) 0%, rgba(15,65,102,.88) 55%, rgba(69,113,62,.78) 100%),
    var(--azul);
  color: #fff;
  overflow: hidden;
}
/* Cuando haya foto real de un trabajo se activa desde el atributo style del HTML */
.portada--con-foto::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--foto);
  background-size: cover; background-position: center;
  mix-blend-mode: overlay; opacity: .55;
}
.portada::after {
  content: ""; position: absolute; inset: 0; opacity: .13;
  background-image:
    linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 75% 30%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse at 75% 30%, #000, transparent 72%);
}
.portada .contenedor { position: relative; z-index: 1; }

.portada-interior { padding: clamp(64px, 9vw, 110px) 0; max-width: 700px; }
.portada h1 { color: #fff; margin-bottom: .45em; }
.portada h1 em { font-style: normal; color: var(--verde-claro); }
.portada-entrada { font-size: clamp(1.05rem, 2vw, 1.22rem); color: #D5E3EE; max-width: 610px; }

.etiqueta-zona {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.25);
  padding: 8px 16px; border-radius: 999px;
  font-size: .87rem; font-weight: 600; color: #fff; margin-bottom: 22px;
}
.punto-verde {
  width: 9px; height: 9px; border-radius: 50%; background: var(--verde-claro);
  box-shadow: 0 0 0 4px rgba(107,168,92,.28); flex-shrink: 0;
}

.lista-portada { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; gap: 11px; }
.lista-portada li { display: flex; align-items: flex-start; gap: 11px; color: #E3EDF5; margin: 0; }
.lista-portada svg { width: 21px; height: 21px; color: var(--verde-claro); flex-shrink: 0; margin-top: 2px; }

/* --- 8. Franja de confianza ----------------------------------------------- */
.franja-confianza { background: var(--blanco); border-bottom: 1px solid var(--gris-borde); }
.franja-confianza .contenedor {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--gris-borde);
}
.confianza-item {
  background: #fff; padding: 26px 22px;
  display: flex; align-items: center; gap: 14px;
}
.confianza-item svg { width: 30px; height: 30px; color: var(--verde); flex-shrink: 0; }
.confianza-item strong { display: block; color: var(--azul); font-size: .99rem; }
.confianza-item span { color: var(--gris-medio); font-size: .85rem; }

/* --- 9. Rejillas y tarjetas ----------------------------------------------- */
.rejilla { display: grid; gap: 26px; }
.rejilla--2 { grid-template-columns: repeat(2, 1fr); }
.rejilla--3 { grid-template-columns: repeat(3, 1fr); }
.rejilla--4 { grid-template-columns: repeat(4, 1fr); }

.tarjeta {
  background: #fff; border: 1px solid var(--gris-borde); border-radius: var(--radio-lg);
  padding: 32px 28px;
  transition: transform var(--transicion), box-shadow var(--transicion), border-color var(--transicion);
}
.tarjeta:hover { transform: translateY(-4px); box-shadow: var(--sombra); border-color: #BFCEDA; }
.tarjeta h3 { margin-bottom: .45em; }
.tarjeta p:last-child { margin-bottom: 0; }

.icono-tarjeta {
  width: 58px; height: 58px; border-radius: 14px;
  background: var(--azul-suave); color: var(--azul);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.icono-tarjeta svg { width: 29px; height: 29px; }
.tarjeta--destacada .icono-tarjeta { background: var(--verde-suave); color: var(--verde); }

.tarjeta--destacada { border-color: var(--verde-claro); position: relative; }
.distintivo {
  position: absolute; top: -12px; right: 22px;
  background: var(--verde); color: #fff;
  font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 999px;
}

.lista-comprobacion { list-style: none; padding: 0; margin: 18px 0 0; }
.lista-comprobacion li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--gris); font-size: .95rem; margin-bottom: .55em;
}
.lista-comprobacion svg { width: 18px; height: 18px; color: var(--verde); flex-shrink: 0; margin-top: 4px; }

/* --- 10. Proceso ---------------------------------------------------------- */
.pasos { counter-reset: paso; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.paso { position: relative; padding-top: 14px; }
.paso::before {
  counter-increment: paso; content: counter(paso);
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-bottom: 18px;
  background: var(--azul); color: #fff;
  font-size: 1.15rem; font-weight: 800; border-radius: 50%;
}
.paso h3 { font-size: 1.08rem; }
.paso p { color: var(--gris); font-size: .95rem; margin-bottom: 0; }

/* --- 11. Zona de cobertura ------------------------------------------------ */
.bloque-doble {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.lista-zonas {
  list-style: none; padding: 0; margin: 22px 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px;
}
.lista-zonas li {
  display: flex; align-items: center; gap: 9px;
  font-size: .95rem; color: var(--gris); margin: 0;
}
.lista-zonas svg { width: 16px; height: 16px; color: var(--verde); flex-shrink: 0; }

.caja-mapa {
  background: var(--azul-suave); border: 1px solid var(--gris-borde);
  border-radius: var(--radio-lg); padding: 38px 32px; text-align: center;
}
.caja-mapa svg { width: 64px; height: 64px; color: var(--azul); margin: 0 auto 18px; }
.caja-mapa strong { display: block; color: var(--azul); font-size: 1.28rem; margin-bottom: 6px; }
.caja-mapa p { color: var(--gris); font-size: .95rem; margin-bottom: 0; }

/* --- 12. Galeria ---------------------------------------------------------- */
.galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.galeria-item {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radio); border: 1px solid var(--gris-borde);
  background: var(--gris-fondo);
  padding: 0; cursor: pointer; display: block; width: 100%;
}
.galeria-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.galeria-item:hover img { transform: scale(1.06); }
.galeria-pie {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(10,46,72,.88));
  color: #fff; font-size: .92rem; font-weight: 600; text-align: left;
  padding: 34px 16px 14px;
}

/* Marcador visible mientras no haya foto real en esa ranura */
.marcador-foto {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: repeating-linear-gradient(45deg, #EDF2F6 0 12px, #E4EBF1 12px 24px);
  color: var(--gris-medio); font-size: .85rem; font-weight: 600; text-align: center; padding: 16px;
}
.marcador-foto svg { width: 34px; height: 34px; opacity: .55; }

/* Visor de imagen ampliada */
.visor {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,46,72,.94);
  display: none; align-items: center; justify-content: center; padding: 26px;
}
.visor.abierto { display: flex; }
.visor img { max-width: min(1100px, 94vw); max-height: 86vh; border-radius: var(--radio); }
.visor-cerrar {
  position: absolute; top: 20px; right: 22px;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.16); border: none; color: #fff; cursor: pointer;
  font-size: 1.6rem; line-height: 1;
}
.visor-cerrar:hover { background: rgba(255,255,255,.3); }

/* --- 13. Preguntas frecuentes --------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details {
  background: #fff; border: 1px solid var(--gris-borde); border-radius: var(--radio);
  margin-bottom: 12px; overflow: hidden;
}
.faq details[open] { border-color: var(--azul); box-shadow: var(--sombra); }
.faq summary {
  padding: 20px 24px; cursor: pointer; list-style: none;
  font-weight: 700; color: var(--azul); font-size: 1.04rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--verde); flex-shrink: 0; line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq-cuerpo { padding: 0 24px 22px; color: var(--gris); }
.faq-cuerpo p:last-child { margin-bottom: 0; }

/* --- 14. Franja de llamada a la accion ------------------------------------ */
.franja-cta {
  background: linear-gradient(135deg, var(--azul) 0%, var(--azul-oscuro) 100%);
  color: #fff; border-radius: var(--radio-lg);
  padding: clamp(36px, 5vw, 56px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.franja-cta h2 { color: #fff; margin-bottom: .3em; }
.franja-cta p { color: #C9DCEA; margin-bottom: 0; max-width: 540px; }

/* --- 15. Formularios ------------------------------------------------------ */
.caja-formulario {
  background: #fff; border: 1px solid var(--gris-borde); border-radius: var(--radio-lg);
  padding: clamp(26px, 4vw, 42px); box-shadow: var(--sombra);
}
.campos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.campo { display: flex; flex-direction: column; gap: 7px; }
.campo--ancho { grid-column: 1 / -1; }
.campo label { font-weight: 700; font-size: .92rem; color: var(--azul); }
.campo .ayuda { font-weight: 400; color: var(--gris-medio); font-size: .85rem; }

.campo input, .campo select, .campo textarea {
  font: inherit; font-size: .98rem; color: var(--texto);
  padding: 13px 15px;
  border: 1.5px solid var(--gris-borde); border-radius: var(--radio);
  background: #fff; width: 100%;
  transition: border-color var(--transicion), box-shadow var(--transicion);
}
.campo textarea { min-height: 132px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px rgba(15,65,102,.1);
}

.casilla { display: flex; align-items: flex-start; gap: 11px; font-size: .89rem; color: var(--gris); }
.casilla input { width: 19px; height: 19px; margin-top: 2px; flex-shrink: 0; accent-color: var(--azul); }

/* Trampa antispam: invisible para personas, la rellenan los robots */
.trampa { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.aviso { padding: 15px 18px; border-radius: var(--radio); font-size: .95rem; margin-bottom: 20px; }
.aviso--ok    { background: var(--verde-suave); border: 1px solid var(--verde-claro); color: #2E4F28; }
.aviso--error { background: #FDEDEC; border: 1px solid #E6B0AA; color: #922B21; }
.oculto { display: none !important; }

.datos-contacto { list-style: none; padding: 0; margin: 0; }
.datos-contacto li { display: flex; gap: 15px; margin-bottom: 24px; align-items: flex-start; }
.datos-contacto svg { width: 22px; height: 22px; color: var(--verde); flex-shrink: 0; margin-top: 4px; }
.datos-contacto strong { display: block; color: var(--azul); font-size: .95rem; }
.datos-contacto a, .datos-contacto span { color: var(--gris); }

/* --- 16. Pie de pagina ---------------------------------------------------- */
.pie { background: var(--azul-oscuro); color: #A9BFD0; padding: 64px 0 0; font-size: .94rem; }
.pie h3 { color: #fff; font-size: 1rem; margin-bottom: 1.1em; }
.pie a { color: #A9BFD0; }
.pie a:hover { color: #fff; }
.pie-rejilla { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 42px; padding-bottom: 48px; }
.pie ul { list-style: none; padding: 0; margin: 0; }
.pie li { margin-bottom: .6em; }
.pie .logo-texto strong { color: #fff; }
.pie .logo-texto small { color: #7E97AC; }
.pie .logo { margin-bottom: 18px; }
.pie-legal {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 22px 0 28px;
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between;
  font-size: .86rem;
}
.pie-legal ul { display: flex; flex-wrap: wrap; gap: 20px; }
.pie-legal li { margin: 0; }

.redes { display: flex; gap: 10px; margin-top: 18px; }
.redes a {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: background var(--transicion);
}
.redes a:hover { background: var(--verde); }
.redes svg { width: 20px; height: 20px; }

/* --- 17. Boton flotante de WhatsApp --------------------------------------- */
.whatsapp-flotante {
  position: fixed; right: 20px; bottom: 20px; z-index: 120;
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff; font-weight: 700; font-size: .97rem;
  padding: 14px 20px 14px 16px; border-radius: 999px;
  box-shadow: 0 8px 26px rgba(37, 211, 102, .42);
  transition: transform var(--transicion), box-shadow var(--transicion);
}
.whatsapp-flotante:hover { transform: translateY(-3px); text-decoration: none; box-shadow: 0 12px 32px rgba(37,211,102,.5); }
.whatsapp-flotante svg { width: 27px; height: 27px; }

/* --- 18. Aviso de cookies ------------------------------------------------- */
/* Barra baja y centrada: informa sin tapar los botones de la portada */
.aviso-cookies {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 130;
  max-width: 760px; margin-inline: auto;
  display: flex; align-items: center; gap: 22px;
  background: #fff; border: 1px solid var(--gris-borde); border-radius: var(--radio-lg);
  padding: 16px 22px; box-shadow: var(--sombra-fuerte);
}
.aviso-cookies p { font-size: .88rem; color: var(--gris); margin: 0; }
.aviso-cookies .grupo-botones { flex-shrink: 0; }
.aviso-cookies .grupo-botones .boton { padding: 11px 22px; font-size: .92rem; }

/* --- 19. Paginas de texto legal ------------------------------------------- */
.texto-legal { max-width: 780px; margin-inline: auto; }
.texto-legal h2 { font-size: 1.4rem; margin-top: 2em; }
.texto-legal h3 { font-size: 1.1rem; margin-top: 1.6em; }
.texto-legal table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; font-size: .93rem; }
.texto-legal th, .texto-legal td { border: 1px solid var(--gris-borde); padding: 11px 14px; text-align: left; vertical-align: top; }
.texto-legal th { background: var(--gris-fondo); color: var(--azul); }
.por-completar {
  background: #FFF4D6; border-bottom: 2px solid #E8B93B;
  padding: 1px 7px; border-radius: 3px; font-weight: 700; color: #7A5C00;
}

.migas { font-size: .88rem; color: var(--gris-medio); padding: 20px 0 0; }
.migas a { color: var(--gris-medio); }

.cabecera-pagina { background: var(--gris-fondo); border-bottom: 1px solid var(--gris-borde); padding: 44px 0 52px; }
.cabecera-pagina h1 { margin-bottom: .3em; }
.cabecera-pagina p { color: var(--gris); font-size: 1.08rem; max-width: 640px; margin-bottom: 0; }

/* --- 20. Adaptacion a movil y tablet -------------------------------------- */
@media (max-width: 1020px) {
  .rejilla--4, .pasos { grid-template-columns: repeat(2, 1fr); }
  .pie-rejilla { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .franja-confianza .contenedor { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  body { font-size: 16px; }

  .navegacion {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--gris-borde);
    box-shadow: var(--sombra); padding: 12px 20px 20px;
  }
  .navegacion.abierta { display: block; }
  .navegacion ul { flex-direction: column; gap: 2px; }
  .navegacion a { padding: 13px 14px; font-size: 1.02rem; }

  .boton-menu { display: flex; }
  .acciones-cabecera .boton--azul { display: none; }

  .rejilla--2, .rejilla--3, .bloque-doble { grid-template-columns: 1fr; }
  .galeria { grid-template-columns: repeat(2, 1fr); }
  .campos { grid-template-columns: 1fr; }
  .barra-superior .contenedor { justify-content: center; text-align: center; }
  .franja-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .contenedor { width: calc(100% - 32px); }
  .rejilla--4, .pasos, .franja-confianza .contenedor, .lista-zonas { grid-template-columns: 1fr; }
  .galeria { grid-template-columns: 1fr; }
  .pie-rejilla { grid-template-columns: 1fr; }
  .grupo-botones { flex-direction: column; }
  .grupo-botones .boton { width: 100%; }
  .whatsapp-flotante span { display: none; }
  .whatsapp-flotante { padding: 16px; right: 16px; bottom: 16px; }

  .aviso-cookies {
    left: 16px; right: 16px; bottom: 16px; max-width: none;
    flex-direction: column; align-items: stretch; gap: 14px; padding: 20px;
  }
  .aviso-cookies .grupo-botones .boton { width: 100%; }
  /* En pantallas pequeñas el aviso ocupa la parte baja: el botón flotante se
     esconde hasta que se cierra, para no montarse encima de los botones */
  body.con-aviso-cookies .whatsapp-flotante { display: none; }

  .pie-legal { flex-direction: column; }
}

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

@media print {
  .cabecera, .pie, .whatsapp-flotante, .aviso-cookies, .barra-superior, .franja-cta { display: none !important; }
  body { font-size: 12pt; }
}
