/* ==========================================================
   INSFERVIC · Web V15.4
   Hoja de estilos consolidada (sustituye a las capas v10–v12).
   Paleta: #FFFFFF, #171717, #E63920, #FFC928, #00AEEF.
   Tipografía: Inter (alojada en /fonts).
   ========================================================== */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-500.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-600.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/inter-700.woff") format("woff"); }

:root {
  --negro: #171717;
  --blanco: #FFFFFF;
  --humo: #F6F6F5;
  --linea: #E6E6E3;
  --texto: #171717;
  --texto-suave: #4D4D4D;
  --rojo: #E63920;
  --rojo-oscuro: #C52D16;
  --amarillo: #FFC928;
  --azul: #00AEEF;
  --azul-suave: #E7F7FD;
  --verde: #25D366;
  --radio: 16px;
  --sombra: 0 10px 30px rgba(23, 23, 23, .08);
  --cabecera-alto: 76px;
  --contenedor: 1200px;
  --fuente: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--cabecera-alto) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--blanco);
  color: var(--texto);
  font-family: var(--fuente);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 0; color: var(--negro); }
p { margin: 0; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 4px; }

.contenedor { width: 100%; max-width: var(--contenedor); margin: 0 auto; padding: 0 20px; }
@media (min-width: 900px) { .contenedor { padding: 0 40px; } }

.seccion { padding: 96px 0; }
.seccion-humo { background: var(--humo); }
@media (max-width: 640px) { .seccion { padding: 68px 0; } }

.etiqueta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--negro);
}
.etiqueta::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amarillo); flex: none; }

.encabezado-seccion { max-width: 680px; margin: 0 0 52px; }
.encabezado-seccion h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-top: 16px; }
.encabezado-seccion p { color: var(--texto-suave); font-size: 1.05rem; margin-top: 16px; }

.enlace {
  color: var(--negro); font-weight: 600; text-decoration: none;
  border-bottom: 2px solid var(--amarillo); padding-bottom: 2px;
  transition: border-color .2s ease;
}
.enlace:hover { border-bottom-color: var(--negro); }

/* ---------- Botones ---------- */
.botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: 12px;
  border: 2px solid transparent; font: 600 1rem/1.2 var(--fuente);
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.boton svg { width: 20px; height: 20px; flex: none; }
.boton:hover { transform: translateY(-2px); }
.boton-principal { background: var(--rojo); color: var(--blanco); }
.boton-principal:hover { background: var(--rojo-oscuro); }
.boton-secundario { background: transparent; color: var(--negro); border-color: var(--negro); }
.boton-secundario:hover { background: var(--negro); color: var(--blanco); }
.boton-whatsapp { background: var(--verde); color: #0B0B0B; }
.boton-whatsapp:hover { background: #1EBE5A; }
.boton-completo { width: 100%; }
.boton-invertido { background: transparent; color: var(--blanco); border-color: var(--blanco); }
.boton-invertido:hover { background: var(--blanco); color: var(--negro); }

/* ---------- Cabecera ---------- */
.cabecera {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--cabecera-alto);
  background: var(--negro); color: var(--blanco);
  transition: box-shadow .3s ease;
}
.cabecera.con-sombra { box-shadow: 0 6px 24px rgba(0, 0, 0, .28); }
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.marca { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--blanco); }
.marca img { width: 44px; height: 44px; }
.marca-texto { font-weight: 700; font-size: 1.05rem; letter-spacing: .16em; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--blanco); text-decoration: none; font-size: .95rem; font-weight: 500; position: relative; padding: 6px 0; opacity: .92; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--amarillo); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav a:not(.nav-cta):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:hover { opacity: 1; }
.nav-cta {
  background: var(--rojo) !important; color: var(--blanco) !important;
  padding: 10px 18px !important; border-radius: 10px; font-weight: 600 !important; opacity: 1 !important;
}
.nav-cta:hover { background: var(--rojo-oscuro) !important; }
.nav-cta::after { display: none !important; }

.menu-boton {
  display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none;
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.menu-boton span { display: block; width: 24px; height: 2px; background: var(--blanco); transition: transform .3s ease, opacity .3s ease; }
.menu-boton[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-boton[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-boton[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1040px) {
  .menu-boton { display: flex; }
  .nav {
    position: fixed; top: var(--cabecera-alto); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--negro); padding: 4px 20px 24px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, .3);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav.abierto { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.nav-cta) { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); opacity: 1; }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 20px; text-align: center; }
}

/* ---------- Portada (fondo ilustrativo con superposición oscura) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; min-height: 680px;
  padding: calc(var(--cabecera-alto) + 64px) 0 104px;
  background: var(--negro); color: var(--blanco);
}
.hero > .contenedor { position: relative; z-index: 2; width: 100%; }
.hero-fondo { position: absolute; inset: 0; z-index: 0; }
.hero-fondo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-velo {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(23, 23, 23, .95) 0%, rgba(23, 23, 23, .84) 38%, rgba(23, 23, 23, .38) 68%, rgba(23, 23, 23, .2) 100%);
}
.hero-texto { max-width: 820px; }
.hero .etiqueta { color: var(--blanco); }
.hero h1 { color: var(--blanco); font-size: clamp(2.1rem, 4.6vw, 3.5rem); margin-top: 20px; }
.hero .subtitulo { color: rgba(255, 255, 255, .9); font-size: 1.12rem; max-width: 600px; margin-top: 22px; }
.hero .boton-secundario { color: var(--blanco); border-color: var(--blanco); background: transparent; }
.hero .boton-secundario:hover { background: var(--blanco); color: var(--negro); }
@media (max-width: 900px) {
  .hero { min-height: 0; padding-bottom: 80px; }
  .hero-velo {
    background: linear-gradient(180deg, rgba(23, 23, 23, .9) 0%, rgba(23, 23, 23, .74) 50%, rgba(23, 23, 23, .92) 100%);
  }
}
@media (max-width: 640px) {
  .hero { padding-top: calc(var(--cabecera-alto) + 250px); padding-bottom: 72px; }
  .hero-fondo { inset: 0 0 auto 0; height: 380px; }
  .hero-fondo img { object-position: 74% 60%; }
  .hero-velo { inset: 0 0 auto 0; height: 380px; background: linear-gradient(180deg, rgba(23, 23, 23, .15) 0%, rgba(23, 23, 23, .35) 55%, var(--negro) 100%); }
}

/* ---------- Iconos ---------- */
.icono-caja {
  width: 56px; height: 56px; border-radius: 14px; flex: none;
  background: var(--azul-suave); color: var(--azul);
  display: grid; place-items: center; margin-bottom: 22px;
}
.icono-caja svg { width: 28px; height: 28px; }
.icono-caja--grande { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto; }
.icono-caja--grande svg { width: 46px; height: 46px; }
svg.trazo { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Servicios: tarjetas claras con fotografía ---------- */
.servicios-nuevo { background: #F7F7F5; }
.servicios-rejilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.servicio-card {
  display: flex; flex-direction: column; min-width: 0; background: #fff;
  border: 1px solid #E8E8E4; border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(23, 23, 23, .03);
}
.servicio-foto { display: block; aspect-ratio: 3 / 2; background: #E9E9E5; overflow: hidden; }
.servicio-foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.servicio-cuerpo { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 22px; }
.servicio-card h3 { margin: 0 0 8px; font-size: 1.2rem; line-height: 1.25; color: #1C1C1C; }
.servicio-card h3 a { color: inherit; text-decoration: none; }
.servicio-card h3 a:hover { text-decoration: underline; text-decoration-color: #E63920; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.servicio-card p { margin: 0 0 20px; color: #5A5A56; font-size: .97rem; line-height: 1.55; flex: 1; }
.servicio-enlaces { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding-top: 18px; border-top: 1px solid #EEEEEA; }
.servicio-ver, .servicio-presupuesto {
  display: flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; width: 100%;
  min-height: 48px; padding: 12px 18px; border-radius: 10px; border: 1.5px solid transparent;
  font: 600 .95rem/1.2 var(--fuente); letter-spacing: .01em; text-align: center; text-decoration: none;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.servicio-ver { color: #1C1C1C; background: #fff; border-color: #D6D6D1; }
.servicio-ver:hover { color: #fff; background: #1C1C1C; border-color: #1C1C1C; transform: translateY(-1px); }
.servicio-presupuesto { color: #fff; background: #0079B8; border-color: #0079B8; box-shadow: 0 2px 6px rgba(0, 121, 184, .22); }
.servicio-presupuesto:hover { background: #00639A; border-color: #00639A; box-shadow: 0 6px 14px rgba(0, 121, 184, .30); transform: translateY(-1px); }
.servicio-ver:active, .servicio-presupuesto:active { transform: translateY(0); }
.servicio-card a:focus-visible { outline: 2px solid #00AEEF; outline-offset: 3px; border-radius: 3px; }
@media (max-width: 1040px) { .servicios-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .servicios-rejilla { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* ---------- Sobre INSFERVIC ---------- */
.sobre-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.sobre-texto p:not(.etiqueta) { color: var(--texto-suave); font-size: 1.05rem; margin-top: 18px; }
.sobre-texto h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-top: 16px; }
.sobre-servicios {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
  background: var(--blanco); border: 1px solid var(--linea); border-radius: 24px; padding: 20px;
}
.sobre-servicios li { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; font-weight: 600; font-size: .95rem; }
.sobre-servicios li .icono-caja { width: 44px; height: 44px; margin: 0; border-radius: 12px; }
.sobre-servicios li .icono-caja svg { width: 22px; height: 22px; }
@media (max-width: 900px) { .sobre-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; } }

/* ---------- ¿Por qué elegirnos? ---------- */
.rejilla-puntos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.punto { border-top: 1px solid var(--linea); padding-top: 26px; }
.punto-num {
  display: inline-block; background: var(--amarillo); color: var(--negro);
  font-weight: 700; font-size: .85rem; line-height: 1; padding: 6px 10px; border-radius: 8px;
}
.punto h3 { font-size: 1.12rem; margin: 20px 0 10px; }
.punto p { color: var(--texto-suave); font-size: .97rem; }
@media (max-width: 1040px) { .rejilla-puntos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rejilla-puntos { grid-template-columns: minmax(0, 1fr); gap: 22px; } }

/* ---------- Contacto y formulario ---------- */
.contacto-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: start; }
.contacto-texto h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-top: 16px; }
.contacto-texto > p { color: var(--texto-suave); font-size: 1.05rem; margin-top: 16px; }
.contacto-telefono {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 28px;
  font-size: 1.5rem; font-weight: 700; color: var(--negro); text-decoration: none; letter-spacing: -.01em;
}
.contacto-telefono svg { width: 28px; height: 28px; color: var(--azul); }
.contacto-persona { margin-top: 10px; font-size: .95rem; color: var(--texto-suave); }
.contacto-persona strong { color: var(--negro); font-weight: 600; }
.contacto-acciones { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 28px; max-width: 480px; }
.contacto-acciones .boton { min-height: 54px; }
.contacto-lista { list-style: none; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--linea); display: grid; gap: 12px; }
.contacto-lista li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.contacto-lista li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--azul); flex: none; }
.contacto-redes { margin-top: 28px; font-size: .95rem; }
.contacto-redes a { color: var(--negro); font-weight: 600; }

.formulario {
  background: var(--blanco); border: 1px solid var(--linea); border-radius: 24px;
  padding: 40px; box-shadow: var(--sombra); min-width: 0;
}
.formulario h3 { font-size: 1.5rem; margin-bottom: 20px; }
.aviso-demo {
  background: #FFF6D6; border-left: 4px solid var(--amarillo);
  border-radius: 10px; padding: 14px 16px; font-size: .93rem; margin-bottom: 26px; color: var(--negro);
}
.aviso-demo strong { font-weight: 600; }
.campos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 18px; }
.campo { display: block; margin-bottom: 18px; font-size: .92rem; font-weight: 600; min-width: 0; }
.campo--completo { grid-column: 1 / -1; }
.campo span.opcional { font-weight: 400; color: var(--texto-suave); }
.campo input, .campo select, .campo textarea {
  display: block; width: 100%; margin-top: 8px; padding: 13px 14px;
  font: 400 1rem/1.4 var(--fuente); color: var(--texto);
  background: var(--blanco); border: 1px solid #C9C9C5; border-radius: 10px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.campo textarea { resize: vertical; min-height: 120px; }
.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px rgba(0, 174, 239, .18);
}
.consentimiento { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--texto-suave); margin: 4px 0 24px; }
.consentimiento input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--negro); }
.consentimiento a { color: var(--negro); font-weight: 600; }
.formulario-ok { min-height: 1.5em; margin-top: 16px; font-size: .95rem; color: var(--texto-suave); text-align: center; }
@media (max-width: 900px) { .contacto-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; } }
@media (max-width: 640px) {
  .formulario { padding: 26px 20px; border-radius: 18px; }
  .campos { grid-template-columns: minmax(0, 1fr); }
  .contacto-acciones { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Pie ---------- */
.pie { background: var(--negro); color: rgba(255, 255, 255, .72); padding: 64px 0 36px; font-size: .93rem; }
.pie-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 32px; align-items: center; }
.pie-insfervic { display: inline-flex; align-items: center; gap: 22px; text-decoration: none; color: var(--blanco); justify-self: start; }
.pie-insfervic img { width: 128px; height: 128px; flex: none; }
.pie-insfervic strong { display: block; font-size: 1.35rem; font-weight: 700; letter-spacing: .16em; color: var(--blanco); }
.pie-insfervic span { display: block; margin-top: 6px; max-width: 280px; line-height: 1.5; color: rgba(255, 255, 255, .65); }
.pie-centro { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.pie-creditos { color: var(--blanco); font-weight: 600; font-size: 1rem; }
.pie-helpro { width: 58px; height: auto; }
.pie-enlaces { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; justify-self: end; }
.pie-enlaces a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.pie-enlaces a:hover { color: var(--blanco); text-decoration: underline; text-underline-offset: 4px; }
.pie-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); text-align: center; font-size: .85rem; color: rgba(255, 255, 255, .55); }
@media (max-width: 800px) {
  .pie-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .pie-insfervic { flex-direction: column; justify-self: center; gap: 16px; }
  .pie-insfervic span { margin-left: auto; margin-right: auto; }
  .pie-enlaces { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; justify-self: center; gap: 10px 24px; }
}
@media (max-width: 640px) { .pie { padding-bottom: 110px; } }

/* ---------- Accesos flotantes ---------- */
.flotantes {
  position: fixed; z-index: 60;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 12px;
}
.flotante {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: var(--blanco); text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
  transition: transform .2s ease, filter .2s ease;
}
.flotante svg { width: 26px; height: 26px; }
.flotante:hover { transform: translateY(-2px); filter: brightness(1.05); }
.flotante-whatsapp { background: var(--verde); color: #FFFFFF; }
.flotante-llamada { background: var(--rojo); }
.flotante:focus-visible { outline-color: var(--negro); }
@media (max-width: 640px) {
  .flotantes { right: 14px; bottom: 14px; gap: 10px; }
  .flotante { width: 52px; height: 52px; }
  .flotante svg { width: 24px; height: 24px; }
}
body.menu-abierto .flotantes { display: none; }

/* ---------- Páginas de servicio ---------- */
.pagina-hero { padding: calc(var(--cabecera-alto) + 40px) 0 72px; background: var(--blanco); border-bottom: 1px solid var(--linea); }
.pagina-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; align-items: center; }
.pagina-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin-top: 20px; }
.pagina-hero .lead { font-size: 1.12rem; color: var(--texto-suave); margin-top: 20px; max-width: 620px; }
.migas { font-size: .88rem; color: var(--texto-suave); }
.migas ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.migas li + li::before { content: "/"; margin-right: 8px; color: #9A9A96; }
.migas a { color: var(--negro); text-decoration: none; font-weight: 500; }
.migas a:hover { text-decoration: underline; }
.pagina-panel {
  background: var(--humo); border-radius: 24px; padding: 48px 36px;
  text-align: center; position: relative; overflow: hidden;
}
.pagina-panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--amarillo); }
.pagina-panel .icono-caja--grande { background: var(--blanco); border: 1px solid var(--linea); }
.pagina-panel p { margin-top: 22px; font-weight: 600; font-size: 1.05rem; }
.dos-columnas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.dos-columnas p { color: var(--texto-suave); font-size: 1.05rem; }
.dos-columnas p + p { margin-top: 16px; }
.lista-incluye { list-style: none; display: grid; gap: 12px; }
.lista-incluye li {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: var(--blanco); border: 1px solid var(--linea); border-radius: 14px; font-weight: 600;
}
.lista-incluye li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--azul); flex: none; }
.pasos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: paso; }
.paso { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: 28px; }
.paso .punto-num { margin-bottom: 18px; }
.paso h3 { font-size: 1.1rem; margin-bottom: 8px; }
.paso p { color: var(--texto-suave); font-size: .97rem; }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--linea); padding: 22px 0; }
.faq details:first-of-type { border-top: 1px solid var(--linea); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-weight: 600; font-size: 1.05rem; color: var(--negro);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--humo); font-weight: 600; font-size: 1.2rem; line-height: 1;
}
.faq details[open] summary::after { content: "–"; background: var(--amarillo); }
.faq details p { color: var(--texto-suave); margin-top: 14px; padding-right: 52px; }
.banda { background: var(--negro); color: var(--blanco); padding: 72px 0; }
.banda-grid { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.banda h2 { color: var(--blanco); font-size: clamp(1.7rem, 3vw, 2.3rem); }
.banda p { color: rgba(255, 255, 255, .8); margin-top: 12px; font-size: 1.05rem; }
.banda .botones { margin-top: 0; }
.otros-servicios { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.otro { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--linea); border-radius: var(--radio); text-decoration: none; color: var(--negro); font-weight: 600; transition: border-color .2s ease, transform .2s ease; }
.otro:hover { border-color: var(--negro); transform: translateY(-3px); }
.otro .icono-caja { width: 44px; height: 44px; margin: 0; border-radius: 12px; }
.otro .icono-caja svg { width: 22px; height: 22px; }
@media (max-width: 1040px) { .otros-servicios { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .pagina-hero-grid, .dos-columnas { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .pasos { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) { .otros-servicios { grid-template-columns: minmax(0, 1fr); } .pagina-hero { padding-bottom: 52px; } }

/* ---------- Legal ---------- */
.texto-legal { max-width: 780px; margin: 0 auto; padding: calc(var(--cabecera-alto) + 56px) 20px 88px; }
.texto-legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 18px 0 28px; }
.texto-legal h2 { font-size: 1.3rem; margin: 40px 0 12px; }
.texto-legal p, .texto-legal li { color: var(--texto-suave); font-size: 1rem; }
.texto-legal p + p { margin-top: 12px; }
.texto-legal ul { margin: 12px 0 0 20px; }
.texto-legal li + li { margin-top: 6px; }
.texto-legal a { color: var(--negro); font-weight: 600; }
.pendiente { background: #FFF1B8; color: var(--negro) !important; font-weight: 600; padding: 1px 6px; border-radius: 4px; }
.texto-legal .volver { display: inline-block; margin-bottom: 8px; font-weight: 600; color: var(--negro); text-decoration: none; border-bottom: 2px solid var(--amarillo); }

/* ---------- Animación de entrada (solo con JavaScript) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Enlace de salto (accesibilidad) ---------- */
.saltar { position: absolute; left: -9999px; top: 12px; z-index: 80; background: var(--blanco); color: var(--negro); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.saltar:focus { left: 16px; }
/* Evita que los hijos de una cuadrícula desborden la pantalla en móvil */
.hero-grid > *, .pagina-hero-grid > *, .sobre-grid > *, .contacto-grid > *, .dos-columnas > *, .servicios-rejilla > *, .rejilla-puntos > *, .pasos > *, .otros-servicios > *, .pie-grid > * { min-width: 0; }
.sobre-servicios li { min-width: 0; }
@media (max-width: 420px) { .sobre-servicios { grid-template-columns: minmax(0, 1fr); } }

/* Botón flotante de WhatsApp: logotipo oficial, centrado y proporcional */
.flotante-whatsapp { aspect-ratio: 1 / 1; padding: 0; border-radius: 50%; background: #25D366; color: #FFFFFF; }
.flotante-whatsapp .wa-oficial { width: 56%; height: 56%; aspect-ratio: 1 / 1; margin: auto; fill: #FFFFFF; }
.flotante-llamada { aspect-ratio: 1 / 1; border-radius: 50%; }

.servicios-nuevo .etiqueta::before { background: #E63920; }

/* Portada (solo escritorio): texto algo más a la izquierda y técnico ligeramente a la derecha para que se vea el logo de la camiseta */
@media (min-width: 901px) {
  .hero-fondo img { position: absolute; left: 0; top: 0; width: 114%; max-width: none; height: 100%; object-position: 40% 25%; }
  .hero-texto { max-width: 600px; margin-left: -28px; }
  .hero h1 { font-size: clamp(2.1rem, 3.7vw, 3.1rem); }
  .hero .subtitulo { max-width: 540px; }
}

/* ---------- Bloque final de presupuesto ---------- */
.franja-cta { background: #F7F7F5; padding: 64px 20px; }
.franja-cta .contenedor {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  max-width: 1160px; padding: 96px 48px; background: #111111; color: #fff;
  border-radius: 20px; box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
}
.franja-detalle { display: block; width: 64px; height: 4px; border-radius: 2px; background: var(--amarillo); margin-bottom: 32px; }
.franja-cta h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.12; max-width: 820px; margin: 0; }
.franja-cta p { color: #E6E6E6; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6; max-width: 620px; margin: 22px 0 0; }
.franja-cta .boton {
  margin-top: 44px; min-width: 320px; min-height: 64px; padding: 18px 44px; border-radius: 12px;
  background: #0079B8; border-color: #0079B8; color: #fff; font-size: 1.15rem;
  box-shadow: 0 8px 22px rgba(0, 121, 184, .35);
}
.franja-cta .boton:hover { background: #0090DA; border-color: #0090DA; box-shadow: 0 12px 28px rgba(0, 144, 218, .4); transform: translateY(-2px); }
@media (max-width: 640px) {
  .franja-cta { padding: 40px 16px; }
  .franja-cta .contenedor { padding: 56px 22px; border-radius: 16px; }
  .franja-detalle { margin-bottom: 24px; }
  .franja-cta .boton { width: 100%; min-width: 0; min-height: 58px; padding: 16px 20px; margin-top: 32px; font-size: 1.05rem; }
}


/* Información RGPD del formulario */
.info-rgpd { background: var(--humo); border: 1px solid var(--linea); border-radius: 12px; padding: 14px 16px; margin: 4px 0 14px; font-size: .82rem; color: var(--texto-suave); line-height: 1.5; }
.info-rgpd p { margin: 0 0 6px; color: var(--negro); }
.info-rgpd ul { margin: 0; padding-left: 18px; }
.info-rgpd li + li { margin-top: 3px; }
.info-rgpd a { color: var(--negro); font-weight: 600; }
.texto-legal code { background: var(--humo); padding: 1px 6px; border-radius: 4px; font-size: .9em; }

/* Aviso de cookies (solo técnicas) */
.aviso-cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 560px; background: var(--negro); color: var(--blanco); border-radius: 14px; padding: 16px 18px; box-shadow: 0 14px 40px rgba(0, 0, 0, .28); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: .9rem; line-height: 1.45; }
.aviso-cookies p { margin: 0; flex: 1 1 260px; color: rgba(255, 255, 255, .9); }
.aviso-cookies a { color: var(--amarillo); font-weight: 600; }
.aviso-cookies button { background: var(--amarillo); color: var(--negro); border: 0; border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 700; cursor: pointer; }
.aviso-cookies button:hover { filter: brightness(.95); }
@media (min-width: 700px) { .aviso-cookies { left: 20px; right: auto; } }

.info-rgpd summary { cursor: pointer; font-weight: 600; color: var(--negro); list-style: none; display: flex; align-items: center; gap: 8px; }
.info-rgpd summary::-webkit-details-marker { display: none; }
.info-rgpd summary::before { content: "+"; display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; border-radius: 50%; background: var(--negro); color: var(--blanco); font-size: .85rem; line-height: 1; flex: none; }
.info-rgpd[open] summary::before { content: "−"; }
.info-rgpd[open] ul { margin-top: 10px; }
