/* ==========================================================================
   Waggy · Componentes
   Mobile first: estilos base para celular, ajustes en 48rem (768 px)
   y 64rem (1024 px). Cada bloque está comentado con su nombre.
   ========================================================================== */

/* ---------- Botones ---------- */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--esp-2);
  min-height: 3rem;
  padding: 0.875rem 1.625rem;
  border: 1.5px solid transparent;
  border-radius: var(--radio-pildora);
  font-size: var(--texto-base);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--duracion) var(--curva), border-color var(--duracion) var(--curva),
    transform var(--duracion) var(--curva);
}

.boton:active {
  transform: translateY(1px);
}

.boton--principal {
  background: var(--color-lavanda-profundo);
  color: var(--color-texto-invertido);
}

.boton--principal:hover {
  background: var(--color-lavanda-hover);
  color: var(--color-texto-invertido);
}

.boton--secundario {
  background: transparent;
  color: var(--color-texto);
  border-color: var(--color-borde-fuerte);
}

.boton--secundario:hover {
  border-color: var(--color-tinta);
  color: var(--color-texto);
}

.boton--lima {
  background: var(--color-lima);
  color: var(--color-tinta);
}

.boton--lima:hover {
  background: var(--color-lima-hover);
  color: var(--color-tinta);
}

.fondo-oscuro .boton--lima,
.fondo-oscuro .boton--lima:hover {
  color: var(--color-tinta);
}

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

.boton--grande {
  min-height: 3.5rem;
  font-size: var(--texto-lg);
}

.enlace-flecha {
  display: inline-flex;
  align-items: center;
  gap: var(--esp-2);
  font-weight: 700;
  text-decoration: none;
  min-height: 2.75rem;
}

.enlace-flecha svg {
  transition: transform var(--duracion) var(--curva);
}

.enlace-flecha:hover svg {
  transform: translateX(3px);
}

/* ---------- Encabezado ---------- */
.encabezado {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(251 250 247 / 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duracion) var(--curva);
}

.encabezado.con-sombra {
  border-bottom-color: var(--color-borde);
}

.encabezado__fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--esp-4);
  min-height: var(--alto-encabezado);
}

.encabezado__logo {
  display: flex;
  flex: none;
}

.encabezado__logo img {
  width: auto;
  height: 2.5rem;
}

.nav {
  display: none;
}

.nav__lista {
  display: flex;
  gap: var(--esp-6);
  padding: 0;
  list-style: none;
}

.nav__lista a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--color-texto);
  font-size: var(--texto-sm);
  font-weight: 600;
  text-decoration: none;
}

.nav__lista a:hover {
  color: var(--color-lavanda-profundo);
}

.encabezado__cta {
  display: none;
}

.menu-boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: var(--radio-sm);
  background: transparent;
  cursor: pointer;
}

.menu-boton svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Panel del menú en celular */
.menu-movil {
  border-top: 1px solid var(--color-borde);
  padding-block: var(--esp-4) var(--esp-6);
}

.menu-movil ul {
  display: flex;
  flex-direction: column;
  padding: 0;
  list-style: none;
}

.menu-movil a:not(.boton) {
  display: flex;
  align-items: center;
  min-height: 3rem;
  color: var(--color-texto);
  font-size: var(--texto-lg);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--color-borde);
}

.menu-movil .boton {
  margin-top: var(--esp-5);
}

@media (min-width: 64rem) {
  .nav {
    display: block;
  }

  .encabezado__cta {
    display: inline-flex;
    min-height: 2.75rem;
    padding: 0.625rem 1.25rem;
    font-size: var(--texto-sm);
  }

  .menu-boton,
  .menu-movil {
    display: none !important;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: var(--esp-8) var(--seccion);
}

.hero__rejilla {
  display: grid;
  gap: var(--esp-10);
  align-items: center;
}

.hero__texto {
  display: flex;
  flex-direction: column;
  gap: var(--esp-5);
}

.hero__sello {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: var(--esp-2);
  padding: var(--esp-2) var(--esp-3);
  border-radius: var(--radio-pildora);
  background: var(--color-superficie);
  color: #4f3f6e;
  font-size: var(--texto-xs);
  font-weight: 700;
}

.hero__sello::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-lima);
  box-shadow: 0 0 0 2px var(--color-tinta);
}

.hero__titulo {
  font-size: var(--titulo-1);
  letter-spacing: -0.035em;
}

.hero__titulo span {
  display: block;
  color: var(--color-lavanda-profundo);
}

.hero__subtitulo {
  font-size: var(--texto-xl);
  color: var(--color-texto-suave);
  max-width: 34rem;
}

.hero__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: var(--esp-3);
}

.hero__acciones .boton {
  flex: 1 1 auto;
}

.hero__nota {
  font-size: var(--texto-sm);
  color: var(--color-texto-suave);
}

.hero__visual {
  position: relative;
  display: grid;
  justify-items: center;
  padding-block: var(--esp-4);
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 8% 6% 4%;
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  background: var(--color-superficie);
  z-index: -1;
}

.hero__foto {
  position: absolute;
  left: 0;
  bottom: 12%;
  width: clamp(7.5rem, 30vw, 11rem);
  border-radius: var(--radio-md);
  overflow: hidden;
  border: 4px solid var(--color-fondo);
  box-shadow: var(--sombra-suave);
  transform: rotate(-3deg);
}

.hero__foto img {
  width: 100%;
  aspect-ratio: 282 / 365;
  object-fit: cover;
}

/* Marco de teléfono para capturas reales */
.telefono {
  width: var(--ancho-telefono, 15rem);
  padding: 0.5rem;
  border-radius: 2.25rem;
  background: var(--color-tinta);
  box-shadow: var(--sombra-suave);
}

.telefono img {
  width: 100%;
  border-radius: 1.75rem;
}

.hero .telefono {
  --ancho-telefono: clamp(13rem, 52vw, 17rem);
}

/* Tarjeta "paseo en curso" con la ruta animada */
.tarjeta-vivo {
  position: absolute;
  right: 0;
  top: 14%;
  display: flex;
  align-items: center;
  gap: var(--esp-3);
  padding: var(--esp-3) var(--esp-4);
  border-radius: var(--radio-md);
  background: #fff;
  box-shadow: var(--sombra-suave);
}

.tarjeta-vivo svg {
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
}

.tarjeta-vivo__ruta {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: dibujar-ruta 2.4s var(--curva) 0.6s forwards;
}

.tarjeta-vivo__punto {
  animation: latido 2s ease-in-out 3s infinite;
  transform-origin: 30px 19px;
}

@keyframes dibujar-ruta {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes latido {
  50% {
    transform: scale(1.35);
  }
}

.tarjeta-vivo__texto {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.tarjeta-vivo__texto small {
  font-size: var(--texto-xs);
  color: var(--color-texto-suave);
}

.tarjeta-vivo__texto strong {
  font-size: var(--texto-sm);
}

@media (min-width: 48rem) {
  .hero__acciones .boton {
    flex: 0 0 auto;
  }
}

@media (min-width: 64rem) {
  .hero {
    padding-block: var(--esp-16) var(--seccion);
  }

  .hero__rejilla {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--esp-16);
  }

  .hero__foto {
    left: -4%;
  }
}

/* ---------- Franja de confianza ---------- */
.confianza__lista {
  display: flex;
  gap: var(--esp-8);
  padding: var(--esp-6) var(--margen-lateral);
  margin: 0 auto;
  max-width: calc(var(--ancho-max) + 2 * var(--margen-lateral));
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.confianza__lista::-webkit-scrollbar {
  display: none;
}

.confianza__lista li {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--esp-3);
  font-weight: 600;
  scroll-snap-align: start;
}

.confianza__lista svg {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
  color: var(--color-lima);
}

@media (min-width: 64rem) {
  .confianza__lista {
    justify-content: space-between;
    gap: var(--esp-6);
    overflow: visible;
  }

  .confianza__lista li {
    flex: 0 1 auto;
    line-height: 1.3;
  }
}

/* ---------- Íconos de línea ---------- */
.icono {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Encabezados de sección en dos columnas ---------- */
.cabecera {
  display: grid;
  gap: var(--esp-4);
  margin-bottom: var(--esp-12);
}

@media (min-width: 64rem) {
  .cabecera--dos {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: var(--esp-16);
  }
}

/* ---------- Lo ves en vivo ---------- */
.en-vivo__rejilla {
  display: grid;
  gap: var(--esp-12);
  padding: 0;
  list-style: none;
}

.en-vivo__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--esp-5);
  text-align: center;
}

.en-vivo__item .telefono {
  --ancho-telefono: 14rem;
}

.en-vivo__item h3 {
  font-size: var(--texto-xl);
  letter-spacing: -0.01em;
}

.en-vivo__item p {
  max-width: 20rem;
  color: var(--color-texto-suave);
  font-size: var(--texto-sm);
}

.tiendas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--esp-3);
  margin-top: var(--esp-12);
}

.tiendas p {
  width: 100%;
  text-align: center;
  color: var(--color-texto-suave);
  font-size: var(--texto-sm);
}

.boton-tienda {
  display: inline-flex;
  align-items: center;
  gap: var(--esp-2);
  min-height: 3rem;
  padding: 0.625rem 1.125rem;
  border-radius: var(--radio-sm);
  background: var(--color-tinta);
  color: #fff;
  font-size: var(--texto-sm);
  font-weight: 700;
  text-decoration: none;
}

.boton-tienda:hover {
  background: #000;
  color: #fff;
}

.boton-tienda svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 48rem) {
  .en-vivo__rejilla {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--esp-8);
  }
}

/* ---------- Cómo funciona ---------- */
.pasos {
  display: grid;
  gap: var(--esp-8);
  padding: 0;
  list-style: none;
  counter-reset: paso;
}

.paso {
  display: flex;
  flex-direction: column;
  gap: var(--esp-2);
  padding-top: var(--esp-5);
  border-top: 2px solid var(--color-tinta);
  counter-increment: paso;
}

.paso::before {
  content: "0" counter(paso);
  font-size: var(--texto-sm);
  font-weight: 800;
  color: var(--color-lavanda-profundo);
}

.paso h3 {
  font-size: var(--texto-xl);
  letter-spacing: -0.01em;
}

.paso p {
  color: var(--color-texto-suave);
}

.pasos + .boton {
  margin-top: var(--esp-10);
}

@media (min-width: 48rem) {
  .pasos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .pasos {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Ecosistema de productos ---------- */
.ecosistema {
  display: grid;
  gap: var(--esp-5);
}

.producto {
  display: flex;
  flex-direction: column;
  gap: var(--esp-4);
  padding: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  border-radius: var(--radio-lg);
  overflow: hidden;
}

.producto h3 {
  font-size: var(--titulo-3);
}

.producto--principal .etiqueta {
  color: var(--color-lima);
}

.producto--principal p {
  color: var(--color-texto-invertido-suave);
  max-width: 34rem;
}

.producto--secundario {
  background: var(--color-superficie);
  padding-bottom: 0;
}

.producto--secundario .etiqueta {
  color: var(--color-lavanda-profundo);
}

.producto--secundario p {
  color: var(--color-texto-suave);
}

.producto__precio {
  font-size: var(--texto-xl);
  font-weight: 800;
  color: var(--color-texto);
}

.producto__precio small {
  font-size: var(--texto-sm);
  font-weight: 500;
  color: var(--color-texto-suave);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--esp-2);
  padding: 0;
  list-style: none;
}

.chips li {
  padding: var(--esp-2) var(--esp-3);
  border: 1px solid var(--color-tinta-2);
  border-radius: var(--radio-pildora);
  font-size: var(--texto-sm);
  font-weight: 600;
}

.producto .boton {
  align-self: flex-start;
  margin-top: auto;
}

.producto__telefono {
  align-self: center;
  margin-top: var(--esp-4);
  width: 13.5rem;
  height: 17rem;
  overflow: hidden;
  padding: 0.5rem 0.5rem 0;
  border-radius: 2.25rem 2.25rem 0 0;
  background: var(--color-tinta);
}

.producto__telefono img {
  width: 100%;
  border-radius: 1.75rem 1.75rem 0 0;
}

@media (min-width: 64rem) {
  .ecosistema {
    grid-template-columns: 1.4fr 1fr;
  }
}

/* ---------- Planes ---------- */
.planes {
  display: grid;
  gap: var(--esp-4);
}

.plan {
  display: flex;
  flex-direction: column;
  gap: var(--esp-3);
  padding: var(--esp-8);
  border-radius: var(--radio-md);
  background: #fff;
}

.plan h3 {
  font-size: var(--texto-lg);
  letter-spacing: 0;
  font-weight: 700;
}

.plan__precio {
  font-size: clamp(2.25rem, 1.9rem + 1.4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.plan__detalle {
  font-size: var(--texto-sm);
  color: var(--color-texto-suave);
}

.plan .boton {
  margin-top: auto;
}

.plan__cabeza {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--esp-2);
}

.plan--destacado {
  background: var(--color-tinta);
  color: var(--color-texto-invertido);
}

.plan--destacado .plan__detalle {
  color: var(--color-texto-invertido-suave);
}

.insignia {
  padding: 0.375rem 0.75rem;
  border-radius: var(--radio-pildora);
  background: var(--color-lima);
  color: var(--color-tinta);
  font-size: var(--texto-xs);
  font-weight: 700;
}

.plan__espacio {
  height: var(--esp-6);
}

.incluye {
  display: flex;
  flex-wrap: wrap;
  gap: var(--esp-3) var(--esp-8);
  margin-top: var(--esp-8);
  padding: 0;
  list-style: none;
  font-size: var(--texto-sm);
  font-weight: 600;
}

.incluye li {
  display: flex;
  align-items: center;
  gap: var(--esp-2);
}

.incluye svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--color-lavanda-profundo);
  stroke-width: 2.25;
}

@media (min-width: 64rem) {
  .planes {
    grid-template-columns: repeat(3, 1fr);
  }
}

.plan__paseos {
  font-size: var(--texto-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-lavanda-profundo);
}

.plan--destacado .plan__paseos {
  color: var(--color-lima);
}

.plan__dos {
  display: flex;
  justify-content: space-between;
  gap: var(--esp-2);
  margin-top: var(--esp-1);
  padding-top: var(--esp-3);
  border-top: 1px solid var(--color-borde);
  font-size: var(--texto-sm);
  font-variant-numeric: tabular-nums;
}

.plan__dos small {
  display: block;
  color: var(--color-texto-suave);
  font-size: var(--texto-xs);
}

.plan--destacado .plan__dos {
  border-top-color: var(--color-tinta-2);
}

.plan--destacado .plan__dos small {
  color: var(--color-texto-invertido-suave);
}

.plan .boton {
  margin-top: auto;
}

.plan__espacio {
  flex: 1 0 var(--esp-6);
}

/* ---------- Testimonios ---------- */
.testimonios {
  display: grid;
  gap: var(--esp-10);
}

.testimonio {
  display: flex;
  flex-direction: column;
  gap: var(--esp-5);
}

.testimonio img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radio-md);
}

.testimonio blockquote {
  font-size: var(--texto-base);
}

.testimonio figcaption {
  font-weight: 700;
  font-size: var(--texto-sm);
}

.testimonio figcaption span {
  font-weight: 500;
  color: var(--color-texto-suave);
}

@media (min-width: 48rem) {
  .testimonios {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--esp-6);
  }
}

/* ---------- Cobertura ---------- */
.cobertura {
  display: grid;
  gap: var(--esp-10);
  align-items: center;
}

.zonas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--esp-2);
  padding: 0;
  list-style: none;
}

.zonas a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 var(--esp-4);
  border: 1px solid var(--color-tinta-2);
  border-radius: var(--radio-pildora);
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--duracion) var(--curva), background-color var(--duracion) var(--curva);
}

.zonas a:hover {
  border-color: var(--color-lima);
}

.cobertura__horario {
  display: flex;
  gap: var(--esp-3);
  align-items: flex-start;
  color: var(--color-texto-invertido-suave);
}

.cobertura__horario svg {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  color: var(--color-lima);
  margin-top: 0.15rem;
}

.cobertura__nota {
  font-size: var(--texto-sm);
  color: var(--color-texto-invertido-suave);
}

.fondo-oscuro .cobertura__nota a {
  color: var(--color-lima);
  font-weight: 700;
}

.mapa-zonas text {
  font-family: var(--fuente);
}

@media (min-width: 64rem) {
  .cobertura {
    grid-template-columns: 1fr 1fr;
    gap: var(--esp-16);
  }
}

/* ---------- Preguntas frecuentes ---------- */
.faq {
  border-top: 1px solid var(--color-borde);
}

.faq details {
  border-bottom: 1px solid var(--color-borde);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--esp-4);
  min-height: 3.5rem;
  padding-block: var(--esp-4);
  font-size: var(--texto-lg);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  border-right: 2px solid var(--color-lavanda-profundo);
  border-bottom: 2px solid var(--color-lavanda-profundo);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform var(--duracion) var(--curva);
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-3px, -3px);
}

.faq details p {
  padding-bottom: var(--esp-5);
  color: var(--color-texto-suave);
  max-width: 44rem;
}

/* ---------- Cierre con formulario ---------- */
.cierre {
  display: grid;
  gap: var(--esp-10);
  padding: clamp(1.75rem, 1rem + 4vw, 4.5rem);
  border-radius: var(--radio-lg);
  background: var(--color-superficie);
}

.cierre h2 {
  font-size: var(--titulo-2);
}

@media (min-width: 64rem) {
  .cierre {
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--esp-16);
  }
}

.formulario {
  display: grid;
  gap: var(--esp-4);
}

.campo {
  display: flex;
  flex-direction: column;
  gap: var(--esp-1);
}

.campo label {
  font-size: var(--texto-sm);
  font-weight: 600;
}

.campo input,
.campo select {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-borde-fuerte);
  border-radius: var(--radio-sm);
  background: #fff;
  font-size: 1rem; /* evita el zoom automático de iOS */
}

.campo select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23231c33' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.campo input:focus-visible,
.campo select:focus-visible {
  outline: 3px solid var(--color-lavanda-profundo);
  outline-offset: 1px;
  border-color: var(--color-lavanda-profundo);
}

.campo--error input,
.campo--error select {
  border-color: var(--color-error);
}

.campo__error {
  font-size: var(--texto-xs);
  font-weight: 600;
  color: var(--color-error);
}

.campo__telefono {
  display: flex;
  align-items: stretch;
}

.campo__telefono span {
  display: inline-flex;
  align-items: center;
  padding: 0 0.875rem;
  border: 1.5px solid var(--color-borde-fuerte);
  border-right: 0;
  border-radius: var(--radio-sm) 0 0 var(--radio-sm);
  background: var(--color-fondo);
  font-weight: 600;
}

.campo__telefono input {
  border-radius: 0 var(--radio-sm) var(--radio-sm) 0;
}

.consentimiento {
  display: flex;
  gap: var(--esp-3);
  align-items: flex-start;
  font-size: var(--texto-sm);
  color: var(--color-texto-suave);
}

.consentimiento input {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  margin: 0.1rem 0 0;
  accent-color: var(--color-lavanda-profundo);
}

.formulario__nota {
  font-size: var(--texto-xs);
  color: var(--color-texto-suave);
}

.formulario__exito {
  display: flex;
  flex-direction: column;
  gap: var(--esp-4);
  padding: var(--esp-8);
  border-radius: var(--radio-md);
  background: #fff;
}

.formulario__exito h3 {
  font-size: var(--titulo-3);
}

.boton--whatsapp {
  background: #1a7a41;
  color: #fff;
}

.boton--whatsapp:hover {
  background: #187a40;
  color: #fff;
}

@media (min-width: 48rem) {
  .formulario {
    grid-template-columns: 1fr 1fr;
  }

  .formulario .campo--ancho,
  .formulario .consentimiento,
  .formulario .boton,
  .formulario__nota {
    grid-column: 1 / -1;
  }
}

/* ---------- Pie ---------- */
.pie {
  padding-block: var(--esp-16) var(--esp-8);
  padding-bottom: calc(var(--esp-8) + var(--alto-barra-movil));
}

.pie__rejilla {
  display: grid;
  gap: var(--esp-10);
}

.pie__marca img {
  width: auto;
  height: 3rem;
}

.pie__marca p {
  margin-top: var(--esp-4);
  color: var(--color-texto-invertido-suave);
  max-width: 20rem;
  font-size: var(--texto-sm);
}

.pie h2 {
  font-size: var(--texto-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-texto-invertido-suave);
  margin-bottom: var(--esp-3);
}

.pie ul {
  display: flex;
  flex-direction: column;
  gap: var(--esp-1);
  padding: 0;
  list-style: none;
  font-size: var(--texto-sm);
}

.pie ul a {
  display: inline-flex;
  gap: 0.3em;
  min-height: 2.25rem;
  align-items: center;
  text-decoration: none;
}

.pie ul a:hover {
  text-decoration: underline;
}

.pie__legal {
  margin-top: var(--esp-12);
  padding-top: var(--esp-6);
  border-top: 1px solid var(--color-tinta-2);
  font-size: var(--texto-xs);
  color: var(--color-texto-invertido-suave);
}

@media (min-width: 48rem) {
  .pie__rejilla {
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
  }
}

@media (min-width: 64rem) {
  .pie {
    padding-bottom: var(--esp-8);
  }
}

/* ---------- Barra inferior en celular ---------- */
.barra-movil {
  position: fixed;
  inset: auto 0 0;
  z-index: 50;
  display: flex;
  gap: var(--esp-3);
  padding: var(--esp-3) var(--margen-lateral) calc(var(--esp-3) + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--color-borde);
  box-shadow: 0 -0.75rem 1.5rem -1rem rgb(35 28 51 / 0.3);
  transform: translateY(110%);
  transition: transform 260ms var(--curva);
}

.barra-movil.visible {
  transform: none;
}

.barra-movil .boton--principal {
  flex: 1 1 auto;
}

.boton-whatsapp-icono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  border: 1.5px solid var(--color-borde-fuerte);
  border-radius: 50%;
  background: #fff;
}

.boton-whatsapp-icono svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Botón flotante de WhatsApp en pantallas grandes */
.whatsapp-flotante {
  display: none;
}

@media (min-width: 64rem) {
  .barra-movil {
    display: none;
  }

  .whatsapp-flotante {
    position: fixed;
    right: var(--esp-6);
    bottom: var(--esp-6);
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: var(--esp-2);
    min-height: 3.25rem;
    padding: 0 var(--esp-5) 0 var(--esp-4);
    border-radius: var(--radio-pildora);
    background: #fff;
    color: var(--color-texto);
    font-size: var(--texto-sm);
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--sombra-suave);
    border: 1px solid var(--color-borde);
  }

  .whatsapp-flotante:hover {
    color: var(--color-texto);
    border-color: var(--color-borde-fuerte);
  }

  .whatsapp-flotante svg {
    width: 1.75rem;
    height: 1.75rem;
  }
}

/* ---------- Aviso de cookies ---------- */
.aviso-cookies {
  position: fixed;
  inset: auto var(--esp-3) var(--esp-3);
  z-index: 60;
  display: grid;
  gap: var(--esp-4);
  max-width: 30rem;
  padding: var(--esp-5);
  border-radius: var(--radio-md);
  background: var(--color-tinta);
  color: var(--color-texto-invertido);
  box-shadow: var(--sombra-suave);
  font-size: var(--texto-sm);
}

.aviso-cookies a {
  color: var(--color-lima);
}

.aviso-cookies__botones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--esp-3);
}

.aviso-cookies .boton {
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  font-size: var(--texto-sm);
}

.aviso-cookies .boton--secundario {
  color: #fff;
  border-color: var(--color-tinta-2);
}

@media (min-width: 48rem) {
  .aviso-cookies {
    left: var(--esp-6);
    bottom: var(--esp-6);
  }
}

/* ==========================================================================
   Páginas internas (Fase 4)
   ========================================================================== */

/* ---------- Cabecera de página ---------- */
.cabeza-pagina {
  padding-block: var(--esp-6) var(--seccion);
}

.cabeza-pagina--corta {
  padding-bottom: var(--esp-12);
}

.cabeza-pagina__rejilla {
  display: grid;
  gap: var(--esp-10);
  align-items: center;
}

.cabeza-pagina__texto {
  max-width: 46rem;
}

.cabeza-pagina__titulo {
  font-size: var(--titulo-2);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.cabeza-pagina .entrada {
  max-width: 40rem;
}

.cabeza-pagina__foto {
  justify-self: center;
  width: min(100%, 20rem);
  border-radius: var(--radio-lg);
  overflow: hidden;
  box-shadow: var(--sombra-suave);
}

.cabeza-pagina__foto img {
  width: 100%;
  aspect-ratio: 282 / 365;
  object-fit: cover;
}

.cabeza-pagina__telefono {
  justify-self: center;
}

.cabeza-pagina__telefono .telefono {
  --ancho-telefono: clamp(13rem, 55vw, 16rem);
}

@media (min-width: 64rem) {
  .cabeza-pagina {
    padding-top: var(--esp-10);
  }

  .cabeza-pagina__titulo {
    font-size: clamp(2.5rem, 1.6rem + 2.2vw, 3.5rem);
  }

  .cabeza-pagina__rejilla {
    grid-template-columns: 1.3fr 0.7fr;
    gap: var(--esp-16);
  }
}

/* ---------- Ruta de navegación ---------- */
.migas {
  margin-bottom: var(--esp-8);
  font-size: var(--texto-sm);
}

.migas ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--esp-2);
  padding: 0;
  list-style: none;
  color: var(--color-texto-suave);
}

.migas li + li::before {
  content: "/";
  margin-right: var(--esp-2);
  color: var(--color-borde-fuerte);
}

.migas a {
  color: var(--color-texto-suave);
}

.migas a:hover {
  color: var(--color-lavanda-profundo);
}

.migas [aria-current] {
  color: var(--color-texto);
  font-weight: 600;
}

/* ---------- Lista de puntos con ícono ---------- */
.lista-puntos {
  display: grid;
  gap: var(--esp-8) var(--esp-10);
  padding: 0;
  list-style: none;
}

.lista-puntos li {
  display: flex;
  gap: var(--esp-4);
  align-items: flex-start;
}

.lista-puntos .icono {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.6rem;
  border-radius: var(--radio-sm);
  background: var(--color-superficie);
  color: var(--color-lavanda-profundo);
}

.seccion--superficie .lista-puntos .icono {
  background: var(--color-fondo);
}

.lista-puntos h3 {
  font-size: var(--texto-lg);
  margin-bottom: var(--esp-1);
}

.lista-puntos p {
  color: var(--color-texto-suave);
}

.lista-puntos a,
.texto-legal a,
.cabeza-pagina .entrada a,
.contacto a:not(.boton) {
  color: var(--color-lavanda-profundo);
  font-weight: 600;
}

.lista-puntos + .tiendas {
  margin-top: var(--esp-12);
}

@media (min-width: 48rem) {
  .lista-puntos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .lista-puntos {
    grid-template-columns: repeat(3, 1fr);
  }

  .lista-puntos:has(> li:nth-child(4):last-child) {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Pasos: variante de cinco ---------- */
@media (min-width: 64rem) {
  .pasos--cinco {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ---------- Secciones y textos auxiliares ---------- */
.seccion--compacta {
  padding-block: var(--esp-12);
}

.titulo-pequeno {
  font-size: var(--texto-xl);
  margin-bottom: var(--esp-4);
}

.mas-enlace {
  margin-top: var(--esp-8);
}

.zonas--claras a {
  border-color: var(--color-borde-fuerte);
  color: var(--color-texto);
}

.zonas--claras a:hover {
  border-color: var(--color-lavanda-profundo);
  color: var(--color-lavanda-profundo);
}

.faq-temas h2 {
  font-size: var(--texto-xl);
  margin-block: var(--esp-12) var(--esp-2);
}

.faq-temas h2:first-child {
  margin-top: 0;
}

/* ---------- Tabla de planes ---------- */
.tabla-envoltura {
  overflow-x: auto;
}

.tabla {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.tabla th,
.tabla td {
  padding: var(--esp-4) var(--esp-3);
  border-bottom: 1px solid var(--color-borde);
  text-align: left;
  white-space: nowrap;
}

.tabla thead th {
  font-size: var(--texto-sm);
  color: var(--color-texto-suave);
  font-weight: 600;
}

.tabla td:nth-child(n + 3) {
  text-align: right;
}

.tabla thead th:nth-child(n + 3) {
  text-align: right;
}

/* ---------- Cifras (Nosotros) ---------- */
.cifras {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--esp-8);
  padding: 0;
  list-style: none;
}

.cifras li {
  display: flex;
  flex-direction: column;
  gap: var(--esp-1);
  padding-top: var(--esp-4);
  border-top: 2px solid var(--color-tinta);
}

.cifras strong {
  font-size: var(--titulo-3);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.cifras span {
  color: var(--color-texto-suave);
}

@media (min-width: 64rem) {
  .cifras {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Contacto ---------- */
.contactos {
  display: grid;
  gap: var(--esp-4);
  padding: 0;
  list-style: none;
}

.contacto {
  display: flex;
  flex-direction: column;
  gap: var(--esp-2);
  padding: var(--esp-6);
  border: 1px solid var(--color-borde);
  border-radius: var(--radio-md);
}

.contacto h2 {
  font-size: var(--texto-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-texto-suave);
}

.contacto--principal {
  border: 0;
  gap: var(--esp-3);
}

.contacto--principal h2 {
  color: var(--color-texto-invertido-suave);
}

.contacto--principal p {
  font-size: var(--titulo-3);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.contacto--principal .boton {
  align-self: flex-start;
}

@media (min-width: 48rem) {
  .contactos {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacto--principal {
    grid-row: span 2;
    justify-content: center;
  }
}

@media (min-width: 64rem) {
  .contactos {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

/* ---------- Gracias ---------- */
.gracias {
  text-align: left;
}

.gracias__escritorio {
  color: var(--color-texto-suave);
}

@media (hover: none) {
  .gracias__escritorio {
    display: none;
  }
}

/* ---------- Texto legal ---------- */
.texto-legal {
  max-width: 44rem;
}

.texto-legal h2 {
  font-size: var(--texto-lg);
  margin-top: var(--esp-10);
  margin-bottom: var(--esp-2);
}

.texto-legal p,
.texto-legal li {
  color: var(--color-texto-suave);
}

.texto-legal ul {
  display: grid;
  gap: var(--esp-2);
  padding-left: var(--esp-5);
  margin-top: var(--esp-3);
}

.texto-legal p + p {
  margin-top: var(--esp-3);
}

.pie__legal a {
  color: inherit;
}

.seccion:not(.fondo-oscuro) .cobertura__horario {
  color: var(--color-texto-suave);
}

.confianza__lista:focus-visible,
.tabla-envoltura:focus-visible {
  outline: 3px solid var(--color-lima);
  outline-offset: -3px;
}

/* Las tres capturas de "Mientras pasea" con el mismo tamaño */
.en-vivo__item .telefono img {
  aspect-ratio: 1 / 2;
  object-fit: cover;
  object-position: top;
}

.en-vivo__rejilla {
  align-items: start;
}

.en-vivo__item picture {
  display: block;
}

.en-vivo__item .telefono img {
  display: block;
  width: 100%;
  height: auto;
}

/* Títulos y textos de las tres capturas en la misma línea aunque uno ocupe dos renglones */
@media (min-width: 48rem) {
  @supports (grid-template-rows: subgrid) {
    .en-vivo__rejilla {
      row-gap: 0;
    }

    .en-vivo__item {
      display: grid;
      grid-row: span 3;
      grid-template-rows: subgrid;
      justify-items: center;
      align-items: start;
      row-gap: var(--esp-5);
    }
  }
}

/* Misma altura de encabezado en las tres tarjetas, con o sin insignia */
.plan > h3,
.plan__cabeza {
  min-height: 2.125rem;
  display: flex;
  align-items: center;
}
