/* ═══════════════════════════════════════════════════════════════════════════
   Mrcita.es — portada, diseño aprobado (referencia 113169.png)
   30 de agosto de 2026.

   Este archivo lo carga ÚNICAMENTE index.html, después de css/style.css.
   Las otras 56 páginas no lo cargan y no se ven afectadas: cada página del
   sitio lleva su propia cabecera y su propio pie, no hay plantilla compartida.

   Consecuencia que hay que decidir por separado: la portada tendrá una
   cabecera clara y el resto del sitio seguirá con la verde. Unificarla son
   56 archivos más.
   ═══════════════════════════════════════════════════════════════════════════ */

.home {
  /* Paleta del encargo */
  --h-blanco:      #FFFFFF;
  --h-hueso:       #F8FAF8;
  --h-verde:       #087A5B;
  --h-verde-pie:   #064E3B;
  --h-verde-accion:#0B8F68;
  --h-menta:       #EAF7F1;
  --h-menta-borde: #CFE9DD;
  --h-amarillo:    #F8C934;
  --h-amarillo-pal:#FFF8DC;
  --h-texto:       #10231D;
  --h-texto-2:     #60716A;
  --h-borde:       #E2EAE6;

  --h-r-sm: 10px;
  --h-r:    14px;
  --h-r-lg: 20px;
  --h-r-xl: 28px;
  --h-sombra:    0 1px 2px rgba(16,35,29,.04), 0 1px 3px rgba(16,35,29,.06);
  --h-sombra-lg: 0 12px 32px rgba(16,35,29,.10);
  --h-max: 1180px;

  font-family: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--h-texto);
  background: var(--h-blanco);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.home *, .home *::before, .home *::after { box-sizing: border-box; }

.home h1, .home h2, .home h3, .home h4 {
  font-family: Manrope, Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--h-texto);
  letter-spacing: -.02em;
  margin: 0;
}
.home p { margin: 0; }
.home img { max-width: 100%; height: auto; display: block; }

.h-wrap { width: 100%; max-width: var(--h-max); margin: 0 auto; padding: 0 24px; }
.h-sec  { padding: 72px 0; }
.h-sec--hueso { background: var(--h-hueso); }

.h-titulo {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  text-align: center;
  margin: 0 0 8px;
}
.h-sub {
  text-align: center; color: var(--h-texto-2);
  max-width: 62ch; margin: 0 auto 40px; font-size: .9375rem;
}

/* ── botones ──────────────────────────────────────────────────────────── */
.h-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .9375rem/1.2 Inter, sans-serif;
  padding: 13px 22px; border-radius: var(--h-r);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
  min-height: 46px;
}
.h-btn--verde   { background: var(--h-verde); color: #fff; }
.h-btn--verde:hover { background: var(--h-verde-accion); }
.h-btn--linea   { background: #fff; color: var(--h-texto); border-color: var(--h-borde); }
.h-btn--linea:hover { border-color: var(--h-verde); color: var(--h-verde); }
.h-btn--amarillo{ background: var(--h-amarillo); color: #3D2E00; font-weight: 700; }
.h-btn--amarillo:hover { background: #EDBB1C; }
.h-btn--claro   { background: transparent; color: #fff; border-color: rgba(255,255,255,.42); }
.h-btn--claro:hover { background: rgba(255,255,255,.12); }
.h-btn--lg { padding: 15px 28px; font-size: 1rem; min-height: 52px; }
.home a:focus-visible, .home button:focus-visible, .home summary:focus-visible {
  outline: 3px solid var(--h-verde-accion); outline-offset: 3px; border-radius: 6px;
}

/* ── cabecera ─────────────────────────────────────────────────────────── */
.h-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.96); backdrop-filter: saturate(1.6) blur(8px);
  border-bottom: 1px solid var(--h-borde);
}
.h-header__in {
  max-width: var(--h-max); margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; gap: 28px;
}
.h-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.h-logo img { height: 30px; width: auto; }
.h-nav { display: flex; gap: 26px; margin: 0 auto; }
.h-nav a {
  color: var(--h-texto-2); text-decoration: none; font-size: .9375rem; font-weight: 500;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.h-nav a:hover { color: var(--h-verde); border-bottom-color: var(--h-verde); }
.h-acciones { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.h-acceder { color: var(--h-texto); text-decoration: none; font-size: .9375rem; font-weight: 600; }
.h-acceder:hover { color: var(--h-verde); }
.h-menu-btn {
  display: none; background: none; border: 1px solid var(--h-borde);
  border-radius: var(--h-r-sm); width: 44px; height: 42px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.h-menu-btn span { display: block; width: 20px; height: 2px; background: var(--h-texto); border-radius: 2px; }

/* ── hero ─────────────────────────────────────────────────────────────── */
.h-hero { padding: 56px 0 64px; background: linear-gradient(180deg, #fff 0%, var(--h-hueso) 100%); }
.h-hero__grid {
  display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,1fr);
  gap: 48px; align-items: center;
}
.h-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--h-menta); border: 1px solid var(--h-menta-borde);
  color: var(--h-verde); border-radius: 999px; padding: 6px 14px;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.h-hero h1 {
  font-size: clamp(2rem, 4.1vw, 2.85rem); font-weight: 800; line-height: 1.14;
  margin: 20px 0 18px;
}
.h-marca { position: relative; color: var(--h-verde); white-space: nowrap; }
.h-marca svg {
  position: absolute; left: 0; right: 0; bottom: -.22em; width: 100%; height: .3em;
}
.h-hero__p { color: var(--h-texto-2); font-size: 1.0625rem; max-width: 52ch; margin-bottom: 28px; }
.h-hero__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.h-puntos { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 26px; }
.h-punto { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--h-texto-2); }
.h-punto svg { flex-shrink: 0; }

/* selector flotante del hero */
.h-panel {
  position: relative; background: #fff; border: 1px solid var(--h-borde);
  border-radius: var(--h-r-xl); box-shadow: var(--h-sombra-lg); padding: 24px;
  /* Carril a la derecha: sin él, las insignias flotantes se comen el borde
     derecho de las casillas de trámite en lugar de quedar fuera del panel. */
  margin-right: 96px;
}
.h-panel__barra { display: flex; gap: 6px; margin-bottom: 18px; }
.h-panel__barra i { width: 9px; height: 9px; border-radius: 50%; background: var(--h-borde); }
.h-panel__barra i:first-child { background: #F2A5A0; }
.h-panel__barra i:nth-child(2) { background: var(--h-amarillo); }
.h-panel__barra i:nth-child(3) { background: #9BD9BE; }
.h-panel h2 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 16px; }
.h-tiles { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.h-tile {
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
  background: var(--h-hueso); border: 1px solid var(--h-borde);
  border-radius: var(--h-r); padding: 14px; text-decoration: none;
  color: var(--h-texto); font-size: .8125rem; font-weight: 600; line-height: 1.35;
  transition: border-color .16s ease, background .16s ease;
}
.h-tile:hover { border-color: var(--h-verde); background: var(--h-menta); }
.h-tile span.h-ico {
  width: 32px; height: 32px; border-radius: 9px; background: var(--h-menta);
  display: flex; align-items: center; justify-content: center; color: var(--h-verde);
}
.h-flota {
  position: absolute; background: #fff; border: 1px solid var(--h-borde);
  border-radius: var(--h-r); box-shadow: var(--h-sombra-lg);
  padding: 10px 14px; font-size: .8125rem; font-weight: 600;
  display: flex; align-items: center; gap: 9px; white-space: nowrap;
}
.h-flota small { display: block; font-weight: 500; color: var(--h-texto-2); font-size: .6875rem; }
.h-insignias { display: contents; }
.h-flota--1 { top: -16px; right: -74px; }
.h-flota--2 { top: 42%; right: -88px; }
.h-flota--3 { bottom: -18px; right: -70px; }
.h-marcador { position: absolute; left: -58px; bottom: -50px; width: 88px; }
.h-calendario { position: absolute; left: 42%; bottom: -56px; width: 96px; }

/* ── franja de confianza ──────────────────────────────────────────────── */
.h-confianza { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0;
  background: var(--h-hueso); border: 1px solid var(--h-borde); border-radius: var(--h-r-lg); }
.h-confianza > div { padding: 22px 24px; border-right: 1px solid var(--h-borde); }
.h-confianza > div:last-child { border-right: 0; }
.h-confianza h3 { font-size: .9375rem; font-weight: 700; margin-bottom: 4px;
  display: flex; align-items: center; gap: 9px; }
.h-confianza p { font-size: .8125rem; color: var(--h-texto-2); line-height: 1.55; }
.h-confianza svg { color: var(--h-verde); flex-shrink: 0; }

/* ── tarjetas de servicio ─────────────────────────────────────────────── */
.h-servicios { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.h-serv {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--h-borde); border-radius: var(--h-r-lg);
  padding: 22px 20px; text-decoration: none; color: inherit;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.h-serv:hover { box-shadow: var(--h-sombra-lg); transform: translateY(-2px); border-color: var(--h-menta-borde); }
.h-serv__ico {
  width: 40px; height: 40px; border-radius: 11px; background: var(--h-menta);
  display: flex; align-items: center; justify-content: center; color: var(--h-verde);
  margin-bottom: 14px;
}
.h-serv__cuerpo { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.h-serv h3 { font-size: .9375rem; font-weight: 700; margin-bottom: 6px; }
.h-serv p { font-size: .8125rem; color: var(--h-texto-2); line-height: 1.6; margin-bottom: 14px; flex: 1; }
.h-serv__mas { font-size: .8125rem; font-weight: 600; color: var(--h-verde); }
.h-serv__art {
  position: absolute; right: -12px; bottom: -12px; width: 78px; opacity: .05;
  color: var(--h-verde); pointer-events: none;
}

/* ── vía oficial vs asistencia ────────────────────────────────────────── */
.h-rutas { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.h-ruta { border-radius: var(--h-r-lg); padding: 30px; display: flex; flex-direction: column; }
.h-ruta--oficial { background: var(--h-menta); border: 1px solid var(--h-menta-borde); }
.h-ruta--mrcita  { background: var(--h-amarillo-pal); border: 1px solid #F2E2A8; }
.h-ruta__cab { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.h-ruta__cab span {
  width: 42px; height: 42px; border-radius: 12px; background: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.h-ruta h3 { font-size: 1.125rem; font-weight: 800; }
.h-ruta > p { font-size: .875rem; color: var(--h-texto-2); margin-bottom: 18px; }
.h-ruta ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; flex: 1; }
.h-ruta li { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; line-height: 1.55; }
.h-ruta li svg { flex-shrink: 0; margin-top: 3px; color: var(--h-verde); }
.h-ruta .h-btn { align-self: flex-start; }

/* ── cuatro pasos ─────────────────────────────────────────────────────── */
.h-pasos { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.h-paso { background: #fff; border: 1px solid var(--h-borde); border-radius: var(--h-r-lg); padding: 24px 20px; }
.h-paso__n {
  width: 30px; height: 30px; border-radius: 9px; background: var(--h-verde); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .8125rem; font-weight: 700; margin-bottom: 14px;
}
.h-paso h3 { font-size: .9375rem; font-weight: 700; margin-bottom: 6px; }
.h-paso p { font-size: .8125rem; color: var(--h-texto-2); line-height: 1.6; }

/* ── precios ──────────────────────────────────────────────────────────── */
.h-precios { display: grid; grid-template-columns: 1.35fr 1fr; gap: 26px; align-items: start; }
.h-tabla { background: #fff; border: 1px solid var(--h-borde); border-radius: var(--h-r-lg); overflow: hidden; }
.h-tabla__cab {
  display: flex; justify-content: space-between; padding: 14px 22px;
  background: var(--h-hueso); border-bottom: 1px solid var(--h-borde);
  font-size: .75rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--h-texto-2);
}
.h-fila {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 22px; border-bottom: 1px solid var(--h-borde); font-size: .9375rem;
}
.h-fila:last-child { border-bottom: 0; }
.h-fila b { font-weight: 800; font-size: 1.0625rem; white-space: nowrap; }
.h-cond { display: grid; gap: 14px; }
.h-cond > div {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 1px solid var(--h-borde);
  border-radius: var(--h-r); padding: 14px 16px; font-size: .875rem; line-height: 1.5;
}
.h-cond svg { color: var(--h-verde); flex-shrink: 0; margin-top: 2px; }
.h-precios .h-btn { width: 100%; margin-top: 4px; }
.h-nota { font-size: .75rem; color: var(--h-texto-2); line-height: 1.6; margin-top: 4px; }

/* ── por qué ──────────────────────────────────────────────────────────── */
.h-porque { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.h-porque > div { background: #fff; border: 1px solid var(--h-borde); border-radius: var(--h-r-lg); padding: 28px 24px; }
.h-porque__ico {
  width: 46px; height: 46px; border-radius: 13px; background: var(--h-menta);
  display: flex; align-items: center; justify-content: center; color: var(--h-verde); margin-bottom: 16px;
}
.h-porque h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.h-porque p { font-size: .875rem; color: var(--h-texto-2); line-height: 1.65; }

/* ── opiniones ────────────────────────────────────────────────────────── */
.h-opiniones { display: grid; grid-template-columns: 260px 1fr 1fr; gap: 18px; align-items: stretch; }
.h-google {
  background: #fff; border: 1px solid var(--h-borde); border-radius: var(--h-r-lg);
  padding: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
}
.h-reseña {
  background: #fff; border: 1px dashed var(--h-borde); border-radius: var(--h-r-lg);
  padding: 24px; display: flex; flex-direction: column; gap: 11px; justify-content: center;
}
.h-reseña i { display: block; height: 11px; border-radius: 6px; background: #EDF2EF; }
.h-reseña i:nth-child(1) { width: 82%; } .h-reseña i:nth-child(2) { width: 94%; }
.h-reseña i:nth-child(3) { width: 68%; } .h-reseña i:nth-child(4) { width: 40%; background: #F4F7F5; }

/* Reseñas reales inyectadas por el CMS entre CMS:REVIEWS:START/END.
   El marcado (blockquote.testimonial-card) lo escribe Publisher::rebuildReviews()
   y ya existe en style.css; aquí sólo se adapta a la rejilla de la portada. */
.h-opiniones .testimonial-card {
  background: #fff; border: 1px solid var(--h-borde); border-radius: var(--h-r-lg);
  padding: 24px; margin: 0; display: flex; flex-direction: column; gap: 14px;
  justify-content: space-between; box-shadow: none;
}
.h-opiniones .testimonial-card p {
  font-size: .9375rem; line-height: 1.7; color: var(--h-texto); margin: 0;
}
.h-opiniones .testimonial-card footer { margin: 0; }
.h-opiniones .testimonial-card footer div { display: flex; flex-direction: column; gap: 3px; }
.h-opiniones .testimonial-card cite {
  font-style: normal; font-weight: 700; font-size: .9rem; color: var(--h-texto);
}
.h-opiniones .testimonial-card footer span { font-size: .8rem; color: var(--h-texto-2); }

/* En cuanto hay una reseña real, el hueco de muestra y el aviso de «pendiente»
   sobran: dejarlos sería contradecir en la misma pantalla lo que la sección ya
   está mostrando. Los marcadores del CMS no se pueden tocar, así que el
   placeholder vive fuera de ellos y se oculta desde aquí. */
.h-opiniones:has(.testimonial-card) .h-reseña { display: none; }
.h-opiniones:has(.testimonial-card) .h-google__vacio { display: none; }
/* Y al revés: sin reseñas no se anuncia un enlace por opinión que no existe. */
.h-google__lleno { display: none; }
.h-opiniones:has(.testimonial-card) .h-google__lleno { display: block; }
.h-wrap--op:has(.testimonial-card) .h-nota--vacio { display: none; }
/* Acotado a escritorio a propósito: por debajo de 1080 px la rejilla pasa a
   dos columnas y por debajo de 720 px a carrusel, y `:has()` gana en
   especificidad a esas reglas aunque vayan después en el archivo. */
@media (min-width: 1081px) {
  .h-opiniones:has(.testimonial-card) {
    grid-template-columns: 260px repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  }
}

/* ── guías ────────────────────────────────────────────────────────────── */
.h-guias { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.h-guia {
  background: #fff; border: 1px solid var(--h-borde); border-radius: var(--h-r-lg);
  overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}
.h-guia:hover { box-shadow: var(--h-sombra-lg); transform: translateY(-2px); }
.h-guia img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.h-guia__txt { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.h-guia h3 { font-size: .9375rem; font-weight: 700; margin-bottom: 6px; }
.h-guia p { font-size: .8125rem; color: var(--h-texto-2); line-height: 1.6; margin-bottom: 14px; flex: 1; }
.h-guia__mas { font-size: .8125rem; font-weight: 600; color: var(--h-verde); }

/* ── faq ──────────────────────────────────────────────────────────────── */
.h-faq { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 20px; }
.h-faq details {
  background: #fff; border: 1px solid var(--h-borde); border-radius: var(--h-r); overflow: hidden;
}
.h-faq summary {
  cursor: pointer; padding: 16px 20px; font-size: .9375rem; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  list-style: none;
}
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary::after {
  content: ""; width: 9px; height: 9px; flex-shrink: 0;
  border-right: 2px solid var(--h-texto-2); border-bottom: 2px solid var(--h-texto-2);
  transform: rotate(45deg) translateY(-2px); transition: transform .2s ease;
}
.h-faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.h-faq details[open] summary { color: var(--h-verde); }
.h-faq .h-faq__r { padding: 0 20px 18px; font-size: .875rem; color: var(--h-texto-2); line-height: 1.7; }

/* ── CTA final ────────────────────────────────────────────────────────── */
.h-cta {
  background: var(--h-verde-pie); border-radius: var(--h-r-xl); color: #fff;
  padding: 44px 48px; display: grid; grid-template-columns: 128px 1fr auto;
  gap: 32px; align-items: center;
}
.h-cta h2 { color: #fff; font-size: clamp(1.375rem, 2.4vw, 1.75rem); font-weight: 800; margin-bottom: 8px; }
.h-cta p { color: rgba(255,255,255,.82); font-size: .9375rem; }
.h-cta__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.h-cta__aviso { color: rgba(255,255,255,.62); font-size: .75rem; margin-top: 14px; line-height: 1.6; }

/* ── pie ──────────────────────────────────────────────────────────────── */
.h-footer { background: var(--h-verde-pie); color: rgba(255,255,255,.74); padding: 56px 0 30px; }
.h-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 34px; }
.h-footer h4 { color: #fff; font-size: .8125rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px; }
.h-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.h-footer a { color: rgba(255,255,255,.74); text-decoration: none; font-size: .875rem; }
.h-footer a:hover { color: #fff; text-decoration: underline; }
.h-footer__marca img { height: 30px; margin-bottom: 14px; }
.h-footer__marca p { font-size: .8125rem; line-height: 1.65; max-width: 34ch; }
.h-footer__contacto li { display: flex; align-items: center; gap: 9px; font-size: .875rem; }
.h-footer__contacto svg { flex-shrink: 0; opacity: .7; }
.h-footer__base {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14);
  font-size: .75rem; color: rgba(255,255,255,.58); line-height: 1.7;
}

/* ── responsive ───────────────────────────────────────────────────────── */
/* El contenedor mide 1180 px como máximo y lleva 24 px de relleno, así que a
   partir de 1228 px de ventana deja de haber holgura lateral: cualquier
   elemento con desplazamiento negativo empieza a asomar por el borde. Por eso
   los flotantes se meten dentro justo ahí, y no en el punto de ruptura móvil. */
@media (max-width: 1228px) {
  .h-panel { margin-right: 66px; }
  .h-flota--1 { right: -48px; }
  .h-flota--2 { right: -58px; }
  .h-flota--3 { right: -44px; }
  .h-marcador { left: -6px; }
  .h-calendario { right: 44%; }
}
@media (max-width: 1000px) {
  .h-panel { margin-right: 0; }
  .h-flota--1 { top: 12px; right: 10px; }
  .h-flota--2 { right: 8px; }
  .h-flota--3 { bottom: 16px; right: 12px; }
  .h-marcador { left: 10px; bottom: -16px; width: 78px; }
  .h-calendario { display: none; }
}

@media (max-width: 1080px) {
  .h-servicios { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .h-pasos     { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .h-confianza { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .h-confianza > div:nth-child(2n) { border-right: 0; }
  .h-confianza > div:nth-child(-n+2) { border-bottom: 1px solid var(--h-borde); }
  .h-footer__grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .h-footer__marca { grid-column: 1 / -1; }
  .h-opiniones { grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); }
  .h-google { grid-column: 1 / -1; flex-direction: row; align-items: center; }
}

@media (max-width: 900px) {
  .h-nav, .h-acciones .h-acceder { display: none; }
  .h-menu-btn { display: flex; }
  .h-nav.is-open {
    display: grid; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--h-borde);
    padding: 12px 24px 18px; gap: 2px; margin: 0;
  }
  .h-nav.is-open a { padding: 13px 0; border-bottom: 1px solid var(--h-borde); min-height: 46px; }
  .h-nav.is-open a:last-child { border-bottom: 0; }
  .h-hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .h-rutas   { grid-template-columns: 1fr; }
  .h-precios { grid-template-columns: 1fr; }
  .h-porque  { grid-template-columns: 1fr; }
  .h-guias   { grid-template-columns: 1fr; }
  .h-faq     { grid-template-columns: 1fr; }
  .h-cta { grid-template-columns: 1fr; padding: 34px 28px; }
  .h-cta__ilu { width: 92px; height: auto; }
}

/* ═══════════════════════════════════════════════════════════════════════
   MÓVIL — diseño propio, no la versión de escritorio encogida.
   Todo lo que en escritorio flota en posición absoluta pasa aquí a flujo
   normal: un elemento absoluto con desplazamiento negativo es exactamente
   lo que empuja el documento fuera de la ventana.
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 720px) {
  .h-sec  { padding: 48px 0; }
  .h-wrap { padding: 0 18px; }

  /* ── cabecera compacta: logo + botón pequeño + hamburguesa ── */
  .h-header__in { height: 60px; padding: 0 16px; gap: 12px; }
  .h-logo img   { height: 26px; }
  .h-acciones   { margin-left: auto; gap: 8px; }
  .h-acciones .h-btn { padding: 10px 14px; font-size: .8125rem; min-height: 44px; }
  .h-menu-btn   { width: 44px; height: 44px; }
  .h-nav.is-open { top: 60px; padding: 10px 18px 16px; }

  /* ── hero: texto encima del selector ── */
  .h-hero { padding: 34px 0 44px; }
  .h-hero h1 {
    font-size: 40px;              /* dentro de la horquilla pedida, 38–44 px */
    line-height: 1.14;
    margin: 16px 0 14px;
  }
  .h-hero__p { font-size: 1rem; margin-bottom: 22px; }
  .h-hero__btns { gap: 10px; }
  .h-hero__btns .h-btn { flex: 1 1 0; min-width: 0; padding: 14px 10px; font-size: .875rem; }
  /* El icono del botón principal se retira en móvil: con él, «Encontrar mi
     trámite» parte en dos líneas y los dos botones dejan de estar equilibrados. */
  .h-hero__btns .h-btn--verde svg { display: none; }
  .h-puntos { gap: 10px 20px; margin-top: 20px; }

  /* Los cuatro trámites, rejilla 2×2. */
  .h-tiles { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .h-tile  { padding: 12px; min-height: 84px; }

  /* Las tarjetas flotantes pasan a insignias en flujo, dentro de la ventana. */
  .h-panel { padding: 18px; overflow: visible; }
  .h-flota {
    position: static; box-shadow: none; padding: 9px 12px;
    border-radius: 999px; font-size: .75rem; background: var(--h-hueso);
  }
  .h-flota small { display: inline; font-size: .75rem; }
  .h-flota small::before { content: " "; }
  .h-insignias {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px;
  }
  .h-marcador, .h-calendario { display: none; }

  /* ── franja de confianza 2×2 ── */
  .h-confianza { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .h-confianza > div { padding: 16px 14px; }
  .h-confianza > div:nth-child(odd)  { border-right: 1px solid var(--h-borde); }
  .h-confianza > div:nth-child(even) { border-right: 0; }
  .h-confianza > div:nth-child(-n+2) { border-bottom: 1px solid var(--h-borde); }
  .h-confianza h3 { font-size: .875rem; gap: 7px; }
  .h-confianza p  { font-size: .75rem; }

  /* ── servicios: una tarjeta por fila.
     Con dos por fila, «Toma de Huellas / TIE» y «Certificado Digital» parten
     en tres líneas a 390 px. El encargo permite dos solo si el título sigue
     legible, y aquí no lo está. ── */
  .h-servicios { grid-template-columns: 1fr; gap: 12px; }
  .h-serv { flex-direction: row; align-items: flex-start; gap: 14px; padding: 18px; }
  .h-serv__ico { margin-bottom: 0; flex-shrink: 0; }
  .h-serv__cuerpo { flex: 1; min-width: 0; }
  .h-serv p { margin-bottom: 10px; }
  .h-serv__art { width: 68px; right: -10px; bottom: -10px; }

  /* ── cuatro pasos: línea de tiempo vertical numerada ── */
  .h-pasos { grid-template-columns: 1fr; gap: 0; position: relative; }
  .h-paso {
    position: relative; border: 0; border-radius: 0; background: transparent;
    padding: 0 0 26px 56px;
  }
  .h-paso::before {                       /* el hilo que une los pasos */
    content: ""; position: absolute; left: 15px; top: 34px; bottom: -4px;
    width: 2px; background: var(--h-menta-borde);
  }
  .h-paso:last-child { padding-bottom: 0; }
  .h-paso:last-child::before { display: none; }
  .h-paso__n { position: absolute; left: 0; top: 0; margin: 0; width: 32px; height: 32px; }

  /* ── precios: la lista completa, siempre visible ── */
  .h-tabla__cab { display: none; }
  .h-fila {
    display: flex; flex-direction: row; justify-content: space-between;
    align-items: baseline; gap: 12px; padding: 14px 16px;
  }
  .h-fila span { font-size: .875rem; }
  .h-fila b { font-size: 1rem; }
  .h-cond { margin-top: 18px; }

  /* ── opiniones y guías: lo único que se desliza en horizontal ── */
  .h-opiniones, .h-guias {
    display: grid; grid-auto-flow: column; grid-auto-columns: 82%;
    grid-template-columns: none; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px; margin-inline: -18px; padding-inline: 18px;
    scrollbar-width: thin;
  }
  .h-opiniones > *, .h-guias > * { scroll-snap-align: start; }
  .h-google { grid-column: auto; flex-direction: column; align-items: flex-start; }

  /* ── pie: grupos separados y etiquetados ── */
  .h-footer { padding: 40px 0 24px; }
  .h-footer__grid { grid-template-columns: 1fr; gap: 0; }
  .h-footer__grid > div + div {
    border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; margin-top: 20px;
  }
  .h-footer ul { gap: 12px; }
  .h-footer a { display: inline-block; padding: 3px 0; min-height: 30px; }

  .h-cta { padding: 30px 22px; }
  .h-cta__btns .h-btn { flex: 1 1 100%; }
}

@media (max-width: 380px) {
  .h-wrap { padding: 0 14px; }
  .h-header__in { padding: 0 14px; }
  .h-hero h1 { font-size: 34px; }
  .h-tiles { grid-template-columns: 1fr; }
  .h-confianza { grid-template-columns: 1fr; }
  .h-confianza > div { border-right: 0 !important; border-bottom: 1px solid var(--h-borde); }
  .h-confianza > div:last-child { border-bottom: 0; }
  .h-hero__btns .h-btn { flex: 1 1 100%; }
  .h-opiniones, .h-guias { grid-auto-columns: 88%; margin-inline: -14px; padding-inline: 14px; }
  .h-fila { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* Cualquier palabra larga (un dominio en el cuerpo del texto) corta en lugar
   de empujar el documento más allá de la ventana. */
.home p, .home li, .home h1, .home h2, .home h3, .home h4, .home td, .home summary {
  overflow-wrap: break-word;
}

@media (prefers-reduced-motion: reduce) {
  .home *, .home *::before, .home *::after {
    animation-duration: .001ms !important; transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .h-serv:hover, .h-guia:hover { transform: none; }
}
