/* =========================================================
   FontaToledoExpress — hoja de estilos
   Fontanería y gas en Toledo. One-page estático.

   MOBILE-FIRST de verdad: todo el CSS base está pensado para
   móvil. Las @media son SIEMPRE (min-width: …) y solo añaden
   lo que cambia al ganar ancho de pantalla.
   Breakpoints: 560 (móvil grande) · 720 (tablet) · 900 (escritorio)
   ========================================================= */

/* ---------- Variables ---------- */
:root {
  --azul-marino: #234E70;   /* principal */
  --azul: #2E6FA0;          /* enlaces / apoyo */
  --azul-oscuro: #1B3B55;   /* degradado hero, hover */
  --turquesa: #52B0B3;      /* acento */
  --turquesa-oscuro: #3E9497;
  --ocre: #C39A4E;          /* acento dorado, con moderación */
  --texto: #24313C;
  --texto-suave: #55636E;
  --fondo-claro: #F4F7F9;
  --blanco: #FFFFFF;
  --borde: #DDE5EA;

  --sombra-sm: 0 1px 3px rgba(35, 78, 112, .10);
  --sombra-md: 0 10px 30px rgba(35, 78, 112, .12);

  --radio: 0;
  --max: 1140px;
  --header-h: 60px;
  --barra-movil-h: 60px;

  --f-titular: "Sora", "Trebuchet MS", system-ui, sans-serif;
  --f-cuerpo: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ligero ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--f-cuerpo);
  font-weight: 400;
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* hueco para la barra inferior fija de móvil (+ zona segura en iPhone con notch) */
  padding-bottom: calc(var(--barra-movil-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--f-titular); font-weight: 700; line-height: 1.18; margin: 0 0 .5em; color: var(--azul-marino); }
p { margin: 0 0 1rem; max-width: 62ch; }
a { color: var(--azul); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin: 0; padding: 0; list-style: none; }

/* al saltar a un ancla, que la cabecera fija no tape el título */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Foco visible siempre */
:focus-visible {
  outline: 3px solid var(--turquesa);
  outline-offset: 2px;
  border-radius: 0;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 18px; }

.ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--lg { stroke-width: 1.6; }

@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .wrap { padding: 0 24px; }
}

/* =========================================================
   Botones — tamaño cómodo para el dedo en móvil
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--f-titular); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.25rem;
  min-height: 48px;
  border-radius: 0;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 1rem 1.6rem; font-size: 1.05rem; }

.btn--primary { background: var(--azul-marino); color: var(--blanco); }
.btn--primary:hover { background: var(--azul-oscuro); }

.btn--wa { background: #25D366; color: #06331B; }
.btn--wa:hover { background: #1FBb59; }

.btn--ghost { background: transparent; color: var(--azul-marino); border-color: var(--borde); }
.btn--ghost:hover { border-color: var(--azul-marino); background: var(--fondo-claro); }

/* En cabecera oscura, el ghost va en claro */
.site-header .btn--ghost { color: var(--blanco); border-color: rgba(255,255,255,.35); }
.site-header .btn--ghost:hover { border-color: var(--blanco); background: rgba(255,255,255,.10); }

@media (min-width: 900px) {
  .btn { font-size: .95rem; padding: .7rem 1.15rem; min-height: 44px; }
  .btn--lg { padding: .95rem 1.5rem; font-size: 1.02rem; }
}

/* =========================================================
   Barra superior fina
   ========================================================= */
.topbar { background: var(--azul-oscuro); color: rgba(255,255,255,.9); font-size: .8rem; }
.topbar__inner {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 34px; flex-wrap: nowrap; overflow: hidden;
}
.topbar__phone { color: var(--blanco); font-weight: 500; display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.topbar__phone:hover { text-decoration: none; color: var(--turquesa); }
.topbar__item { white-space: nowrap; }
.topbar__sep { width: 1px; height: 13px; background: rgba(255,255,255,.25); flex: none; }

/* En móvil solo caben teléfono + horario: ocultamos el último dato */
.topbar__inner .topbar__item:last-of-type,
.topbar__inner .topbar__sep:last-of-type { display: none; }

@media (min-width: 620px) {
  .topbar__inner { justify-content: flex-start; gap: .75rem; }
  .topbar__inner .topbar__item:last-of-type,
  .topbar__inner .topbar__sep:last-of-type { display: inline-block; }
}

/* =========================================================
   Cabecera sticky
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--azul-marino);
  color: var(--blanco);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--sombra-md); }
.site-header__inner { display: flex; align-items: center; gap: .75rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--blanco); font-family: var(--f-titular); }
.brand:hover { text-decoration: none; }
.brand__name { font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; white-space: nowrap; }
.brand__name strong { font-weight: 700; color: var(--turquesa); }
.brand__logo {
  height: 40px; width: 40px; flex: none;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18);
}

/* --- Navegación: en móvil es un desplegable --- */
.nav {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--azul-marino);
  display: none;
  flex-direction: column; gap: 0;
  padding: .25rem 18px 1rem;
  border-top: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--sombra-md);
}
.nav.is-open { display: flex; }
.nav a {
  color: rgba(255,255,255,.9);
  font-family: var(--f-titular); font-weight: 600; font-size: 1rem;
  padding: .95rem .25rem; border-bottom: 1px solid rgba(255,255,255,.10);
}
.nav a:hover { color: var(--blanco); text-decoration: none; }

.header-actions { display: none; margin-left: auto; gap: .5rem; }

.nav-toggle {
  display: flex; margin-left: auto;
  width: 46px; height: 46px;
  background: transparent; border: 1.5px solid rgba(255,255,255,.35); border-radius: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--blanco); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- Navegación en escritorio: barra horizontal ---
   A partir de 1140px cabe la marca + menú (5 enlaces) + las acciones.
   Por debajo se mantiene el menú hamburguesa. */
@media (min-width: 1140px) {
  :root { --header-h: 68px; }
  .brand { gap: .6rem; }
  .brand__name { font-size: 1.12rem; }
  .brand__logo { height: 46px; width: 46px; }

  /* La cabecera ocupa más ancho que el resto para pegar marca y acciones
     a las esquinas; el contenido central sigue limitado. */
  .site-header__inner {
    display: grid; grid-template-columns: 1fr auto 1fr;
    gap: 1rem; align-items: center;
    max-width: 1440px; padding-left: 22px; padding-right: 22px;
  }
  .brand { justify-self: start; min-width: 0; }        /* marca pegada a la izquierda */
  .nav {
    position: static; display: flex; flex-direction: row;
    justify-self: center; margin: 0; gap: .9rem;        /* menú centrado */
    padding: 0; background: none; border: 0; box-shadow: none;
  }
  .nav a {
    color: rgba(255,255,255,.88); font-size: .92rem;
    padding: .35rem 0; border: 0; white-space: nowrap;
    transition: color .15s ease;
  }
  .nav a:hover { color: var(--turquesa); text-decoration: none; }

  .header-actions { display: flex; justify-self: end; min-width: 0; margin: 0; gap: .6rem; }  /* acciones pegadas a la derecha */
  .header-actions .btn { white-space: nowrap; }
  /* El teléfono queda como enlace ligero; WhatsApp sigue siendo el botón sólido */
  .header-actions .btn--ghost { border-color: transparent; padding: .5rem .4rem; }
  .header-actions .btn--ghost:hover { border-color: transparent; background: transparent; color: var(--turquesa); }
  .nav-toggle { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  color: var(--blanco);
  background:
    linear-gradient(180deg, rgba(27,59,85,.55) 0%, rgba(27,59,85,.62) 55%, rgba(20,43,62,.72) 100%),
    radial-gradient(680px 380px at 50% -8%, rgba(82,176,179,.30), transparent 65%),
    url("../assets/herosection1.jpeg") center / cover no-repeat;
  padding: 3.5rem 0 4rem;
  overflow: hidden;
}
.hero__inner {
  position: relative;
  max-width: 680px;
  margin-inline: auto;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.hero__title {
  color: var(--blanco);
  font-size: clamp(2rem, 8vw, 3.4rem);
  letter-spacing: -.02em;
  margin-bottom: 1rem;
  text-wrap: balance;
}
.hero__lead {
  font-size: 1.08rem;
  color: rgba(255,255,255,.88);
  max-width: 46ch;
  margin: 0 auto 1.9rem;
}

.hero__cta { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.9rem; }
.hero__cta .btn { width: 100%; }
.hero .btn--primary { background: var(--blanco); color: var(--azul-marino); }
.hero .btn--primary:hover { background: var(--fondo-claro); }

.hero__chips {
  display: flex; flex-direction: column; align-items: center;
  gap: .5rem;
  font-size: .84rem; font-weight: 500;
  color: rgba(255,255,255,.75);
}
.hero__chips li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__chips .ico { color: var(--ocre); width: 15px; height: 15px; }

@media (min-width: 560px) {
  .hero { padding: 4.5rem 0 5rem; }
  .hero__cta { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .hero__cta .btn { width: auto; }
  .hero__chips { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: .35rem 1.15rem; }
  .hero__chips li + li::before {
    content: ""; width: 4px; height: 4px; border-radius: 50%;
    background: rgba(255,255,255,.35); margin-right: .35rem;
  }
}
@media (min-width: 900px) {
  .hero { padding: 6.5rem 0 7rem; }
  .hero__lead { font-size: 1.22rem; margin-bottom: 2.1rem; }
}

/* =========================================================
   Banda de confianza
   ========================================================= */
.trust { background: var(--azul-marino); color: var(--blanco); border-top: 1px solid rgba(255,255,255,.10); }
.trust__inner { display: grid; grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem 0; }
.trust__item {
  display: flex;
  flex-direction: column;   /* icono encima del texto: así el centrado se ve real */
  align-items: center;
  gap: .45rem;
  text-align: center;
  font-size: .92rem;
}
.trust__item .ico { color: var(--turquesa); }
.trust__item p { margin: 0; line-height: 1.35; }
.trust__item strong { font-family: var(--f-titular); font-weight: 600; color: var(--blanco); }

@media (min-width: 520px) {
  .trust__inner { grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; }
}
@media (min-width: 900px) {
  .trust__inner { grid-template-columns: repeat(5, 1fr); padding: 1.75rem 0; }
  /* En escritorio se recupera la fila: icono a la izquierda y texto alineado. */
  .trust__item {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: .7rem;
    text-align: left;
    font-size: .9rem;
  }
}

/* =========================================================
   Secciones — ritmo y cabeceras
   ========================================================= */
.section { padding: 2.75rem 0; }
.section:nth-of-type(even) { background: var(--fondo-claro); }

.section__head { max-width: 60ch; margin-bottom: 1.75rem; }
.section__head h2 {
  font-size: clamp(1.55rem, 6vw, 2.4rem);
  letter-spacing: -.02em;
  padding-left: .85rem;
  border-left: 3px solid var(--turquesa);   /* continúa la "línea de agua" */
}
.section__head p { color: var(--texto-suave); padding-left: .85rem; }

@media (min-width: 720px) {
  .section { padding: 4rem 0; }
  .section__head { margin-bottom: 2.5rem; }
  .section__head h2, .section__head p { padding-left: 1rem; }
}
@media (min-width: 900px) {
  .section { padding: 5.5rem 0; }
}

/* =========================================================
   Servicios
   Tarjetas de tres por fila (2 en tablet, 1 en móvil).
   Cada tarjeta: foto + texto + botón anclado al pie.
   ========================================================= */
.services__list {
  display: grid; gap: 1.5rem; margin: 0; padding: 0; list-style: none;
  grid-template-columns: 1fr;
}

.service {
  display: flex; flex-direction: column;
  background: var(--blanco); border: 1px solid var(--borde);
  box-shadow: var(--sombra-sm);
}
.service h3 { font-size: 1.15rem; color: var(--azul-marino); margin-bottom: .1rem; }
.service p { color: var(--texto-suave); margin: 0; }
.service .ico { color: var(--azul); }

.service__media .ph {
  width: 100%; aspect-ratio: 16 / 10; min-height: 0;
}
.service__media .ph span { padding: 0 .75rem; }

.service__media img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
}

/* Variación de tono en los marcadores para diferenciar servicios */
.service:nth-child(3n+2) .ph { background: linear-gradient(150deg, var(--azul-oscuro), var(--turquesa-oscuro)); }
.service:nth-child(3n)   .ph { background: linear-gradient(150deg, var(--turquesa-oscuro), var(--azul-marino)); }

.service__body {
  display: flex; flex-direction: column; gap: .55rem;
  padding: 1.35rem 1.35rem 1.5rem;
  flex: 1;                 /* empuja el botón al pie de la tarjeta */
}

.service__cta {
  display: block; margin-top: auto;
  padding: 1rem 1.25rem;
  background: var(--azul-marino); color: var(--blanco);
  font-family: var(--f-titular); font-weight: 600; font-size: 1rem;
  text-align: center; text-decoration: none;
  transition: background-color .15s ease;
}
.service__cta:hover { background: var(--azul-oscuro); text-decoration: none; }

@media (min-width: 560px) {
  .services__list { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
}
@media (min-width: 900px) {
  .services__list { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
}

/* =========================================================
   Por qué nosotros (asimétrico)
   En móvil: primero el texto, la imagen después.
   ========================================================= */
.why__grid { display: grid; gap: 1.75rem; }
.why__body { order: 1; }
.why__media { order: 2; }
.why__intro { color: var(--texto-suave); font-size: 1.02rem; }
.why__list { display: grid; gap: 1.15rem; margin: 0; }
.why__list dt { font-family: var(--f-titular); font-weight: 600; color: var(--azul-marino); font-size: 1.02rem; margin-bottom: .15rem; }
.why__list dd { margin: 0; color: var(--texto-suave); padding-left: .85rem; border-left: 2px solid var(--borde); }

.ph {
  background: linear-gradient(150deg, var(--azul-marino), var(--turquesa-oscuro));
  color: rgba(255,255,255,.9);
  border-radius: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  text-align: center; font-size: .85rem; font-family: var(--f-titular); font-weight: 600;
}
.ph .ico, .ph svg { stroke: currentColor; fill: none; stroke-width: 1.6; }
.ph--portrait { aspect-ratio: 16 / 10; }

.why__img {
  display: block;
  width: 100%;
  height: auto;            /* anula el alto del atributo HTML para que valga el aspect-ratio */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;
}

@media (min-width: 900px) {
  .why__grid { grid-template-columns: 5fr 7fr; align-items: center; gap: 3.5rem; }
  .why__body { order: 0; }
  .why__media { order: 0; }
  .why__list dd { padding-left: 1rem; }
  .why__list div:hover dd { border-left-color: var(--turquesa); }
  .ph--portrait { aspect-ratio: 4 / 5; min-height: 340px; }
  .why__img { aspect-ratio: 4 / 5; height: auto; min-height: 340px; object-position: center; }
}

/* =========================================================
   Cómo trabajamos — pasos con conector
   ========================================================= */
.steps { display: grid; gap: 1.25rem; margin: 0; padding: 0; }
.steps li { position: relative; padding-left: 3rem; }
.steps__num {
  position: absolute; left: 0; top: 0;
  width: 2.15rem; height: 2.15rem; border-radius: 0;
  background: var(--azul-marino); color: var(--blanco);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-titular); font-weight: 700;
}
.steps h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.steps p { color: var(--texto-suave); margin: 0; }

/* línea vertical que une los pasos en móvil */
.steps li:not(:last-child)::before {
  content: ""; position: absolute; left: 1.075rem; top: 2.4rem; bottom: -1.25rem;
  width: 2px; background: var(--turquesa); opacity: .4;
}

@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
  .steps li { padding-left: 0; padding-top: 3.25rem; }
  .steps li:not(:last-child)::before {
    left: 2.15rem; top: 1.075rem; bottom: auto; right: -1rem;
    width: auto; height: 2px;
  }
}

/* =========================================================
   Zonas
   ========================================================= */
.zones__grid { display: grid; gap: 1.75rem; }
.zones__intro p { color: var(--texto-suave); }
.zones__cols { display: grid; gap: 1rem; }
.zones__col {
  background: var(--blanco); border: 1px solid var(--borde);
  border-radius: 0; padding: 1.35rem;
}
.zones__col h3 { font-size: 1.02rem; padding-bottom: .55rem; border-bottom: 2px solid var(--turquesa); display: inline-block; }
.zones__col ul { margin-top: .9rem; display: grid; gap: .5rem; }
.zones__col li { padding-left: 1.2rem; position: relative; color: var(--texto); }
.zones__col li::before {
  content: ""; position: absolute; left: 0; top: .58rem;
  width: 6px; height: 6px; border-radius: 0; background: var(--azul);
}
.link-arrow { font-family: var(--f-titular); font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; }
.link-arrow::after { content: "\2192"; transition: transform .15s ease; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover::after { transform: translateX(3px); }

@media (min-width: 560px) {
  .zones__cols { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 860px) {
  .zones__grid { grid-template-columns: 4fr 8fr; gap: 3rem; align-items: start; }
}

/* =========================================================
   Opiniones
   ========================================================= */
.reviews__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
/* Móvil: nota y estrellas en una sola fila. Así la caja ocupa la mitad de
   alto y la tarjeta de reseña entra entera en pantalla sin quedar partida. */
.reviews__score {
  background: var(--azul-marino); color: var(--blanco);
  border-radius: 0; padding: 1.25rem 1.15rem; text-align: left;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "nota estrellas"
    "nota meta"
    "enlace enlace";
  column-gap: 1rem;
  align-items: center;
}
.reviews__big { grid-area: nota; font-family: var(--f-titular); font-weight: 700; font-size: 2.9rem; line-height: 1; color: var(--blanco); margin: 0; }
.reviews__big span { font-size: 1.25rem; color: rgba(255,255,255,.6); }
.reviews__stars { grid-area: estrellas; display: flex; justify-content: flex-start; gap: .15rem; margin: 0; align-self: end; }
.reviews__stars svg { fill: var(--ocre); stroke: none; }
.reviews__meta { grid-area: meta; color: rgba(255,255,255,.75); font-size: .88rem; margin: .2rem 0 0; align-self: start; }
.reviews__score .btn--ghost { grid-area: enlace; margin-top: 1rem; }
.reviews__score .btn--ghost { color: var(--blanco); border-color: rgba(255,255,255,.35); width: 100%; }
.reviews__score .btn--ghost:hover { border-color: var(--blanco); background: rgba(255,255,255,.1); }

/* --- Carrusel de reseñas: las tarjetas se deslizan una tras otra en bucle --- */
.reviews__carousel { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
/* El alto lo fija el JS con el de la reseña visible (js/main.js). Sin JS,
   `height:auto` deja el alto de la tarjeta más alta: nunca se corta nada. */
.reviews__viewport {
  overflow: hidden; min-width: 0;
  transition: height .4s cubic-bezier(.4, 0, .2, 1);
}
.reviews__track {
  display: flex; align-items: flex-start;   /* cada tarjeta con su alto natural */
  margin: 0; padding: 0; list-style: none;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.review {
  flex: 0 0 100%; min-width: 0;
  background: var(--blanco); border: 1px solid var(--borde);
  border-left: 3px solid var(--turquesa);
  border-radius: 0; padding: 1.35rem 1.25rem; margin: 0;
  display: flex; flex-direction: column; gap: .65rem;
}
.review__stars { display: flex; gap: .12rem; margin: 0; }
.review__stars svg { fill: var(--ocre); stroke: none; }
.review blockquote { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--texto); }
.review__author { margin: 0; color: var(--texto-suave); font-size: .9rem; font-family: var(--f-titular); font-weight: 600; }
.review__author span { color: var(--texto-suave); font-weight: 400; }

.reviews__controls { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.reviews__nav {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  background: var(--blanco); border: 1px solid var(--borde); border-radius: 50%;
  color: var(--azul-marino); cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.reviews__nav svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.reviews__nav:hover { border-color: var(--azul-marino); background: var(--fondo-claro); }
.reviews__dots { display: flex; gap: .5rem; }
.reviews__dots button {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
  background: var(--borde); cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.reviews__dots button[aria-selected="true"] { background: var(--turquesa); transform: scale(1.25); }

@media (prefers-reduced-motion: reduce) {
  .reviews__track,
  .reviews__viewport { transition: none; }
}

/* Móvil grande: se recupera algo de aire en la tarjeta */
@media (min-width: 560px) {
  .review { padding: 1.5rem; }
  .review blockquote { font-size: 1.05rem; }
}

@media (min-width: 860px) {
  .reviews__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2.5rem; align-items: start; }
  /* Columna estrecha: vuelve la caja apilada y centrada */
  .reviews__score { display: block; text-align: center; padding: 1.75rem; }
  .reviews__big { font-size: 3.5rem; }
  .reviews__stars { justify-content: center; margin: .5rem 0 .25rem; }
  .reviews__meta { margin: 0 0 1.1rem; }
  .reviews__score .btn--ghost { width: auto; margin-top: 0; }
  .review { padding: 2rem; }
  .review blockquote { font-size: 1.15rem; }
}

/* =========================================================
   FAQ — acordeón
   ========================================================= */
.faq__wrap { max-width: 780px; }
.accordion { border-top: 1px solid var(--borde); }
.acc__item { border-bottom: 1px solid var(--borde); }
.acc__q {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  font-family: var(--f-titular); font-weight: 600; font-size: 1rem; color: var(--azul-marino);
  padding: 1.1rem 2.25rem 1.1rem 0; position: relative;
  display: flex; justify-content: space-between; align-items: center; gap: .85rem;
  min-height: 56px;
}
.acc__chevron { color: var(--azul); transition: transform .2s ease; flex: none; stroke: currentColor; fill: none; stroke-width: 2; }
.acc__q[aria-expanded="true"] .acc__chevron { transform: rotate(180deg); }
.acc__a { overflow: hidden; max-height: 0; transition: max-height .25s ease; }
.acc__a p { color: var(--texto-suave); padding: 0 0 1.15rem; margin: 0; }
.acc__q:hover { color: var(--azul); }

@media (min-width: 720px) {
  .acc__q { font-size: 1.05rem; padding: 1.25rem 2.5rem 1.25rem 0; }
}

/* =========================================================
   Contacto
   ========================================================= */
.contact__grid { display: grid; gap: 2rem; }
.form__row { margin-bottom: 1rem; display: flex; flex-direction: column; }
.form label { font-family: var(--f-titular); font-weight: 600; font-size: .92rem; margin-bottom: .35rem; color: var(--azul-marino); }
.form input, .form textarea {
  font-family: var(--f-cuerpo); font-size: 16px; /* 16px evita el zoom automático de iOS al enfocar */
  color: var(--texto);
  padding: .8rem .85rem; border: 1.5px solid var(--borde); border-radius: 0;
  background: var(--blanco); width: 100%; resize: vertical;
}
.form input:focus, .form textarea:focus { outline: 3px solid var(--turquesa); outline-offset: 1px; border-color: var(--turquesa); }
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: #C0392B; }
.form__error { color: #C0392B; font-size: .84rem; min-height: 1.1em; margin-top: .3rem; }
.form .btn { width: 100%; }
.form__note {
  margin-top: 1rem; padding: .9rem 1rem; border-radius: 0;
  background: #FBF3E3; border: 1px solid var(--ocre); color: #6b5320; font-size: .92rem;
}

.contact__data { background: var(--fondo-claro); border: 1px solid var(--borde); border-radius: 0; padding: 1.5rem; }
.section:nth-of-type(even) .contact__data { background: var(--blanco); }
.contact__data h3 { font-size: 1.12rem; }
.contact__list { display: grid; gap: .85rem; margin-bottom: 1.35rem; }
.contact__list li { display: flex; gap: .7rem; align-items: flex-start; }
.contact__list .ico { color: var(--azul); margin-top: .15rem; }
.contact__map iframe { border-radius: 0; display: block; width: 100%; }

@media (min-width: 900px) {
  .contact__grid { grid-template-columns: 7fr 5fr; gap: 3rem; align-items: start; }
  .form .btn { width: auto; }
  .contact__data { padding: 1.75rem; }
}

/* =========================================================
   Pie
   ========================================================= */
.site-footer { background: var(--azul-marino); color: rgba(255,255,255,.82); padding: 2.5rem 0 1.5rem; }
.site-footer__grid { display: grid; gap: 1.75rem; }
.site-footer h4 { color: var(--blanco); font-size: 1rem; margin-bottom: .7rem; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: var(--blanco); }
.site-footer__col ul { display: grid; gap: .5rem; font-size: .9rem; }
.brand--footer { margin-bottom: .7rem; }
.brand--footer .brand__logo { height: 40px; width: 40px; }
.brand--footer .brand__name { font-size: 1.02rem; }
.site-footer__brand p { font-size: .9rem; max-width: 42ch; }
.site-footer__bottom {
  display: flex; flex-direction: column; gap: .35rem;
  border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1.15rem;
  font-size: .8rem; color: rgba(255,255,255,.6);
}
@media (min-width: 620px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .site-footer__bottom { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 900px) {
  .site-footer { padding: 3rem 0 1.5rem; }
  .site-footer__grid { grid-template-columns: 2fr 1fr 1.4fr 1fr; gap: 2.5rem; }
}

/* =========================================================
   Barra inferior fija de móvil (Llamar / WhatsApp)
   Visible por defecto; se oculta en tablet/escritorio.
   ========================================================= */
.mobile-bar {
  display: grid; grid-template-columns: 1fr 1fr;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--blanco); border-top: 1px solid var(--borde);
  box-shadow: 0 -4px 16px rgba(35, 78, 112, .10);
  padding-bottom: env(safe-area-inset-bottom); /* iPhone con notch */
}
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
  min-height: var(--barra-movil-h);
  font-family: var(--f-titular); font-weight: 600; font-size: .82rem;
  color: var(--azul-marino);
}
.mobile-bar a:hover { text-decoration: none; }
.mobile-bar a:first-child { border-right: 1px solid var(--borde); }
.mobile-bar .ico { color: var(--azul); }

/* =========================================================
   Botón flotante WhatsApp — solo escritorio/tablet
   (en móvil ya está en la barra inferior fija)
   ========================================================= */
.wa-float { display: none; }

@media (min-width: 720px) {
  .mobile-bar { display: none; }
  .wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 60;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: #06331B;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    transition: transform .15s ease;
  }
  .wa-float:hover { transform: scale(1.06); }
  .wa-float svg { fill: currentColor; stroke: none; }
}

/* =========================================================
   Banner de cookies
   Móvil: franja compacta pegada encima de la barra inferior.
   Escritorio: tarjeta abajo a la derecha.
   ========================================================= */
/* el atributo [hidden] debe ganar a display:flex (si no, el banner no se cierra) */
.cookies[hidden] { display: none; }

.cookies {
  position: fixed; left: 0; right: 0; z-index: 70;
  bottom: calc(var(--barra-movil-h) + env(safe-area-inset-bottom));
  background: var(--blanco); border-top: 1px solid var(--borde);
  box-shadow: 0 -6px 20px rgba(35, 78, 112, .12);
  padding: .75rem 18px;
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem;
}
.cookies p { margin: 0; font-size: .8rem; line-height: 1.4; color: var(--texto-suave); flex: 1 1 100%; }
.cookies__actions { display: flex; align-items: center; gap: .9rem; }
.cookies__actions .btn { min-height: 40px; padding: .55rem 1.1rem; font-size: .9rem; }
.cookies__link { font-size: .82rem; }

@media (min-width: 720px) {
  .cookies {
    left: auto; right: 20px; bottom: 20px; max-width: 400px;
    border: 1px solid var(--borde); border-radius: 0;
    padding: 1rem 1.15rem;
  }
  .cookies p { font-size: .86rem; }
}

/* =========================================================
   Animación de aparición al hacer scroll
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
