/* Vivamigo · web de una página
 * Paleta del branding: #1D6B66 · #14504C · #7A9E91 · #E9DCC6 · #F4A623.
 * Fraunces en los títulos y DM Sans en el texto, como la app.
 * Pensada para leer bien a los 60-80 años: texto de 18-19 px, contraste alto
 * y botones grandes. */

:root {
  --verde: #1D6B66;
  --verde-oscuro: #14504C;
  --verde-noche: #0E3B38;
  --salvia: #7A9E91;
  --salvia-claro: #E4EEEA;
  --arena: #E9DCC6;
  --sol: #F4A623;
  --crema: #F7F3EA;
  --blanco: #FFFFFF;
  --tinta: #13302D;
  --texto: #2A3C3A;
  --texto-suave: #4A5C59;
  --borde: #DCD3C2;
  --sombra: 0 10px 30px rgba(20, 80, 76, .10), 0 2px 6px rgba(20, 80, 76, .06);
  --radio: 20px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mano: 'Caveat', 'Segoe Script', cursive;
  --ancho: 1240px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--crema);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: hidden;
}
@media (min-width: 900px) { body { font-size: 1.1875rem; } }
.traduciendo body { visibility: hidden; }

img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
h1, h2, h3 { color: var(--tinta); margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; line-height: 1.08; }
h3 { font-family: var(--sans); font-weight: 700; font-size: 1.2rem; line-height: 1.3; }
p { margin: 0; }
p, li, h3, summary, label { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--verde-oscuro); }
:focus-visible { outline: 3px solid var(--sol); outline-offset: 3px; border-radius: 6px; }

.icono {
  width: 1.5em; height: 1.5em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.solo-lector {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
/* El campo trampa del formulario (sitioWeb): fuera de la vista y del lector; una persona no lo ve ni lo rellena. */
.trampa { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.saltar {
  position: absolute; left: 16px; top: -100px; z-index: 50;
  background: var(--verde-oscuro); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 700;
}
.saltar:focus { top: 12px; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .contenedor { padding: 0 32px; } }
.contenedor--estrecho { max-width: 900px; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 10px 26px; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; text-align: center; white-space: nowrap;
  transition: background-color .15s, transform .15s;
}
.boton .icono { width: 1.25em; height: 1.25em; }
.boton--oscuro { background: var(--verde-oscuro); color: #fff; }
.boton--oscuro:hover { background: var(--verde-noche); }
.boton--claro { background: #fff; color: var(--verde-oscuro); border-color: var(--verde-oscuro); }
.boton--claro:hover { background: var(--salvia-claro); }
.boton--grande { min-height: 58px; font-size: 1.125rem; padding: 12px 32px; }
.boton--whatsapp { background: #1B7F4B; color: #fff; }
.boton--whatsapp:hover { background: #146A3D; }

/* ---------- Cabecera ---------- */
.cabecera { position: relative; z-index: 20; }
.cabecera__dentro { display: flex; align-items: center; gap: 14px; min-height: 84px; padding-top: 10px; padding-bottom: 10px; }
.marca { display: inline-flex; align-items: center; flex: none; min-height: 48px; }
.marca img { width: 176px; height: auto; }
.menu { margin-left: auto; }
.menu ul { display: flex; gap: 4px; }
.menu a {
  display: block; padding: 10px 10px; border-radius: 10px;
  color: var(--tinta); font-weight: 500; font-size: 1.0625rem; text-decoration: none; white-space: nowrap;
}
.menu a:hover { background: rgba(255, 255, 255, .6); }
.cabecera__acciones { display: flex; align-items: center; gap: 12px; }
/* «La app» en el menú solo cuando el botón de la cabecera no se ve (móvil), e
   «Inicio» solo en el menú plegado (abierto, el logo ya lleva arriba). Así cabe
   «Contacto» sin que la cabecera se salga de la pantalla en francés o ruso. */
.menu .solo-movil, .menu .solo-plegado { display: none; }
.idioma {
  position: relative; display: inline-flex; align-items: center;
  background: rgba(255, 255, 255, .85); border: 1.5px solid var(--borde); border-radius: 999px; padding-left: 12px;
  color: var(--verde-oscuro);
}
.idioma .icono { width: 1.2em; height: 1.2em; pointer-events: none; }
.idioma select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent;
  font: 500 1rem var(--sans); color: var(--tinta); min-height: 44px; padding: 8px 34px 8px 8px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314504C' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
.idioma:focus-within { outline: 3px solid var(--sol); outline-offset: 2px; }
.idioma select:focus-visible { outline: none; }
.boton-menu {
  display: none; align-items: center; gap: 6px; min-height: 48px; padding: 8px 14px;
  border: 1.5px solid var(--borde); border-radius: 999px; background: #fff; color: var(--verde-oscuro);
  font: 700 1rem var(--sans); cursor: pointer;
}

@media (max-width: 1320px) {
  .menu a { padding: 10px 8px; font-size: 1rem; }
}
@media (max-width: 1200px) {
  .menu .solo-plegado { display: block; }
  .boton-menu { display: inline-flex; }
  .menu {
    display: none; position: absolute; left: 16px; right: 16px; top: 100%;
    background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); padding: 10px;
  }
  .menu.abierto { display: block; }
  .menu ul { flex-direction: column; }
  .menu a { padding: 14px 16px; font-size: 1.125rem; }
  .cabecera__acciones { margin-left: auto; }
}
@media (max-width: 640px) {
  .cabecera__cta { display: none; }
  .menu .solo-movil { display: block; }
  .cabecera__dentro { gap: 8px; min-height: 72px; }
  .marca img { width: 128px; }
  .cabecera__acciones { min-width: 0; gap: 8px; }
  .idioma { min-width: 0; }
  .idioma select { max-width: 128px; min-width: 0; text-overflow: ellipsis; }
  .boton-menu { padding: 8px 12px; }
  .boton-menu span {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}
@media (max-width: 380px) { .marca img { width: 112px; } .idioma { padding-left: 8px; } .idioma select { max-width: 112px; padding-right: 28px; background-position: right 6px center; } }

/* ---------- Portada ---------- */
.portada {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #F5F3EE 0%, var(--crema) 100%);
  margin-top: -84px; padding-top: 84px;
}
.portada__fondo { position: absolute; inset: 0 0 0 auto; width: 58%; }
.portada__fondo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 18%, rgba(0,0,0,.6) 34%, #000 52%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 18%, rgba(0,0,0,.6) 34%, #000 52%);
}
.portada::after {
  /* La ola de abajo, como en el diseño. */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; z-index: 1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C 240 90 420 0 720 30 S 1200 80 1440 20 V90 H0z' fill='%237A9E91' fill-opacity='.35'/%3E%3Cpath d='M0 62 C 260 100 520 30 780 52 S 1240 86 1440 50 V90 H0z' fill='%23F7F3EA'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
}
.portada__lugar {
  position: absolute; z-index: 2; right: 3%; top: 96px; margin: 0; text-align: center;
  font-family: var(--mano); font-weight: 600; font-size: clamp(2.6rem, 4.4vw, 4.4rem); line-height: 1;
  color: #fff; transform: rotate(-9deg); text-shadow: 0 2px 14px rgba(0, 40, 60, .45); width: 6.2em;
}
.portada__lugar::after {
  content: ""; display: block; width: 58%; height: 4px; margin: 10px auto 0; border-radius: 4px; background: #fff;
  transform: rotate(-3deg); box-shadow: 0 2px 10px rgba(0, 40, 60, .25);
}
.portada__dentro {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 32px; align-items: end;
  min-height: 600px;
}
.portada__texto { padding: 40px 0 96px; }
.portada h1 { font-size: clamp(2.5rem, 5.3vw, 4.7rem); color: var(--verde-oscuro); }
.portada h1 span { display: block; }
.portada__entrada { margin-top: 20px; font-size: 1.25rem; max-width: 34em; color: var(--tinta); }
.portada__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 26px; }
.portada__precios {
  display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--verde-oscuro);
  text-decoration: underline; text-underline-offset: 4px;
}
.portada__tiendas { display: none; }
.con-app .portada__tiendas { display: block; }
.tiendas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.tienda {
  display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 18px 8px 14px;
  background: #000; color: #fff; border-radius: 12px; border: 1.5px solid #555; text-decoration: none;
}
.tienda .icono { width: 30px; height: 30px; }
.tienda span { display: flex; flex-direction: column; line-height: 1.1; }
.tienda small { font-size: 1rem; letter-spacing: .01em; }
.tienda strong { font-size: 1.35rem; font-weight: 500; letter-spacing: -.01em; }
.tiendas__nota { margin-top: 10px; font-size: 1.0625rem; color: var(--texto-suave); max-width: 32em; }
.ventajas {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 14px; margin-top: 34px; max-width: 800px;
}
.ventajas li { min-width: 0; display: flex; align-items: center; gap: 10px; font-size: 1.0625rem; line-height: 1.25; color: var(--tinta); font-weight: 500; }
.ventajas span { min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.ventajas .icono { width: 36px; height: 36px; color: var(--verde-oscuro); stroke-width: 1.5; }

.portada__movil { display: flex; justify-content: flex-start; align-self: end; }
.movil {
  width: 272px; margin-bottom: -120px; border-radius: 44px; padding: 11px;
  background: #121816; box-shadow: 0 30px 60px rgba(14, 59, 56, .35), inset 0 0 0 2px #3a4442;
  position: relative;
}
.movil::before {
  content: ""; position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 24px; background: #121816; border-radius: 0 0 16px 16px; z-index: 1;
}
.movil__pantalla { border-radius: 34px; overflow: hidden; background: var(--crema); }
.movil__pantalla img { width: 100%; }

@media (max-width: 1080px) {
  .portada { margin-top: 0; padding-top: 0; }
  .cabecera { background: var(--crema); }
}
@media (max-width: 900px) {
  .portada__dentro { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .portada__texto { padding: 28px 0 8px; }
  .portada__fondo { inset: auto 0 0 0; width: 100%; height: 440px; }
  .portada__fondo img {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 35%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 35%);
    object-position: 60% 50%;
  }
  .portada__fondo { height: 500px; }
  .portada__lugar { top: auto; bottom: 250px; right: 12px; font-size: 2.3rem; }
  .portada__movil { justify-content: flex-start; padding: 110px 0 0 4%; }
  .movil { width: 200px; margin-bottom: -110px; border-radius: 34px; padding: 9px; }
  .movil::before { top: 9px; width: 70px; height: 18px; }
  .movil__pantalla { border-radius: 28px; }
  .ventajas { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 26px; }
  .portada__entrada { font-size: 1.15rem; margin-top: 14px; }
  /* En el teléfono, sin el móvil dibujado: la foto de Torrevieja queda como una franja corta. */
  .portada__movil { display: none; }
  .portada__texto { padding: 20px 0 210px; }
  .portada__fondo { height: 290px; }
  .portada__lugar { bottom: 70px; font-size: 2.1rem; }
}
@media (max-width: 400px) {
  .ventajas { gap: 14px 10px; }
  .ventajas li { gap: 8px; font-size: 1rem; }
  .ventajas .icono { width: 30px; height: 30px; }
}
@media (max-width: 520px) {
  .portada__acciones { flex-direction: column; align-items: stretch; text-align: center; }
  .portada__acciones .boton { width: 100%; }
  .portada__precios { justify-content: center; }
}

/* ---------- Secciones ---------- */
.seccion { padding: 88px 0; }
@media (max-width: 700px) { .seccion { padding: 52px 0; } }
.antetitulo {
  text-align: center; text-transform: uppercase; letter-spacing: .16em;
  font-size: 1rem; font-weight: 500; color: var(--verde-oscuro); margin-bottom: 10px;
}
.seccion h2 { text-align: center; font-size: clamp(2rem, 3.7vw, 3rem); color: var(--verde-oscuro); }
.seccion__intro { text-align: center; max-width: 40em; margin: 16px auto 0; color: var(--texto-suave); }
.burbuja {
  display: inline-grid; place-items: center; width: 64px; height: 64px; flex: none;
  border-radius: 50%; background: var(--salvia-claro); color: var(--verde-oscuro);
}
.burbuja .icono { width: 32px; height: 32px; stroke-width: 1.5; }

/* Tus ojos y tus manos */
.ojos { padding-top: 56px; }
.tarjetas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.tarjeta {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radio);
  box-shadow: var(--sombra); overflow: hidden; border: 1px solid #EFE8DA;
}
.tarjeta__cabeza { display: flex; gap: 14px; padding: 20px 18px 18px; flex: 1; }
.tarjeta__cabeza > div { min-width: 0; }
.tarjeta__cabeza .burbuja { width: 58px; height: 58px; }
.tarjeta h3 { font-size: 1.15rem; }
.tarjeta p { font-size: 1.0625rem; color: var(--texto-suave); margin-top: 4px; line-height: 1.45; }
.tarjeta img { width: 100%; aspect-ratio: 596 / 210; object-fit: cover; }
@media (max-width: 1080px) { .tarjetas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .tarjetas { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .tarjeta { flex-direction: row; }
  .tarjeta img { order: -1; flex: none; width: 104px; height: auto; align-self: stretch; aspect-ratio: auto; }
  .tarjeta__cabeza { padding: 16px; }
  .tarjeta__cabeza .burbuja { display: none; }
}

/* Cómo funciona */
.como { background: #fff; }
.pasos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 44px; counter-reset: paso; }
.paso {
  position: relative; background: var(--crema); border-radius: var(--radio); padding: 34px 28px 30px;
  border: 1px solid #EFE8DA;
}
.paso__num {
  position: absolute; top: -18px; left: 28px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--sol); color: var(--tinta);
  font: 700 1.2rem var(--sans);
}
.paso__icono { width: 44px; height: 44px; color: var(--verde-oscuro); stroke-width: 1.5; margin-bottom: 12px; }
.paso h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; margin-bottom: 8px; }
@media (max-width: 860px) { .pasos { grid-template-columns: 1fr; gap: 34px; } }
@media (max-width: 700px) {
  .pasos { gap: 12px; margin-top: 28px; }
  .paso { padding: 20px 18px 20px 70px; }
  .paso__num { top: 20px; left: 16px; }
  .paso__icono { display: none; }
  .paso h3 { font-size: 1.3rem; }
}

/* Precios */
.planes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 44px; align-items: stretch; }
.plan {
  background: #fff; border-radius: var(--radio); padding: 30px 28px; border: 2px solid #EFE8DA; box-shadow: var(--sombra);
  display: flex; flex-direction: column;
}
.plan--destacado { border-color: var(--verde); }
.plan__etiqueta {
  align-self: flex-start; background: var(--salvia-claro); color: var(--verde-oscuro);
  font-weight: 700; font-size: 1rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}
.plan--destacado .plan__etiqueta { background: var(--sol); color: var(--tinta); }
.plan h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; }
.plan__precio { margin-top: 10px; display: flex; align-items: baseline; gap: 4px; }
.plan__precio > span:first-child { font-family: var(--serif); font-weight: 700; font-size: 3.4rem; line-height: 1; color: var(--verde-oscuro); }
.plan__mes { font-size: 1.2rem; color: var(--texto-suave); font-weight: 500; }
/* De qué está hecho el precio grande: la cuota común y, con kit, los datos (y el kit prestado). */
.plan__cuota { margin-top: 6px; color: var(--texto-suave); font-size: 1rem; line-height: 1.4; }
.plan__para { margin-top: 10px; color: var(--tinta); font-size: 1.0625rem; line-height: 1.45; }
.plan__inicial { margin-top: 10px; font-weight: 700; color: var(--tinta); font-size: 1.1rem; }
.plan__desglose { margin-top: 4px; color: var(--texto-suave); font-size: 1.0625rem; }
.plan__anual { margin-top: 6px; font-weight: 700; color: var(--verde); font-size: 1.02rem; }
.plan__puntos { margin-top: 18px; display: grid; gap: 10px; }
.plan__puntos li, .incluido li { display: flex; gap: 10px; align-items: flex-start; font-size: 1.02rem; line-height: 1.4; }
.plan__puntos .icono, .incluido .icono { width: 1.35em; height: 1.35em; color: var(--verde); stroke-width: 2.4; margin-top: .05em; }
/* Tres planes en fila; lo que llevan Compra y Alquiler, debajo y a lo ancho. */
.incluido { grid-column: 1 / -1; background: var(--verde-oscuro); color: #F4F1E8; border-radius: var(--radio); padding: 30px 28px; }
/* «¿Quieres sensores en tu casa?»: la única diferencia entre los planes, encima de las tarjetas. */
.planes__pregunta { grid-column: 1 / -1; margin-top: 10px; }
.planes__pregunta h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--tinta); }
.planes__pregunta p { margin-top: 4px; color: var(--texto-suave); max-width: 60ch; }
/* Gratis: a lo ancho, debajo de los tres, baja y sin lista: la puerta de entrada, no el plan que se vende. */
.plan-gratis {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: #fff; border-radius: var(--radio); padding: 22px 28px; border: 2px dashed #E3DACA;
}
.plan-gratis h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.plan-gratis__texto > p:not(.plan__etiqueta) { margin-top: 6px; color: var(--tinta); font-size: 1.0625rem; line-height: 1.45; max-width: 70ch; }
.plan-gratis__texto .plan__desglose { color: var(--texto-suave); }
.plan-gratis .boton { flex-shrink: 0; }
@media (max-width: 680px) { .plan-gratis { flex-direction: column; align-items: stretch; padding: 20px; gap: 14px; } }
.incluido ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.incluido h3 { color: #fff; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; margin-bottom: 14px; }
.incluido ul { display: grid; gap: 10px; }
.incluido .icono { color: var(--sol); }
.beneficios { margin-top: 28px; background: #fff; border-radius: var(--radio); padding: 8px 28px; border: 1px solid #EFE8DA; }
.beneficios[open] { padding-bottom: 28px; }
.beneficios > summary { list-style: none; cursor: pointer; position: relative; display: flex; align-items: center; min-height: 64px; padding: 10px 44px 10px 0; }
.beneficios > summary::-webkit-details-marker { display: none; }
.beneficios h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.beneficios__intro { margin-top: 4px; color: var(--texto-suave); }
.beneficios ul { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; }
.beneficios li { display: flex; gap: 12px; align-items: flex-start; }
.beneficios .icono { flex: none; width: 1.35em; height: 1.35em; color: var(--verde); stroke-width: 2.4; margin-top: .1em; }
.beneficios h4 { margin: 0; font-size: 1.08rem; line-height: 1.3; color: var(--tinta); overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.beneficios li p { margin-top: 3px; color: var(--texto-suave); font-size: 1rem; line-height: 1.45; }
/* Debajo de las tarjetas: dos líneas con icono, los descuentos en chips y la letra pequeña plegada. */
.precios__notas { max-width: 860px; margin: 32px auto 0; display: grid; gap: 14px; justify-items: center; }
.nota { display: flex; gap: 10px; align-items: flex-start; max-width: 720px; color: var(--texto-suave); font-size: 1rem; line-height: 1.45; }
.nota .icono { flex: none; width: 1.3em; height: 1.3em; color: var(--verde); margin-top: .05em; }
.descuentos { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }
.descuento {
  display: inline-flex; gap: 8px; align-items: center; background: #FDF1DC; color: var(--tinta);
  padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 1rem; line-height: 1.3;
}
.descuento .icono { flex: none; width: 1.2em; height: 1.2em; color: #B86E00; }
.precios__condiciones { width: 100%; max-width: 720px; font-size: 1rem; color: var(--texto-suave); }
.precios__condiciones summary {
  cursor: pointer; text-align: center; font-weight: 700; color: var(--verde-oscuro);
  text-decoration: underline; text-underline-offset: 3px; padding: 10px 0; min-height: 44px;
}
.precios__condiciones ul { list-style: disc; padding: 4px 0 0 1.2em; display: grid; gap: 6px; line-height: 1.45; }
.precios__iva { font-size: 1rem; color: var(--texto-suave); text-align: center; }
@media (max-width: 680px) {
  .descuentos { flex-direction: column; align-items: stretch; width: 100%; }
  .descuento { border-radius: 14px; padding: 10px 14px; }
}
@media (max-width: 1000px) { .planes { grid-template-columns: repeat(2, minmax(0, 1fr)); } .incluido { grid-column: 1 / -1; } .incluido ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .plan { padding: 24px 20px; } .planes { grid-template-columns: 1fr; } .incluido ul { grid-template-columns: 1fr; } .beneficios { padding: 4px 18px; } .beneficios[open] { padding-bottom: 22px; } .beneficios > summary::after { right: 0; } .beneficios h3 { font-size: 1.3rem; } .beneficios ul { grid-template-columns: 1fr; gap: 16px; } }

/* Para quién */
.para-quien { background: #fff; }
.perfiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 44px; }
.perfil { background: var(--crema); border-radius: var(--radio); padding: 30px 28px; border: 1px solid #EFE8DA; }
.perfil h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; margin: 16px 0 8px; }
@media (max-width: 860px) {
  .perfiles { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .perfil { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px; padding: 20px 18px; }
  .perfil .burbuja { width: 48px; height: 48px; }
  .perfil .burbuja .icono { width: 26px; height: 26px; }
  .perfil h3 { margin: 0; font-size: 1.3rem; }
  .perfil p { grid-column: 1 / -1; margin-top: 10px; }
}

/* La lista gratis */
.lista { background: linear-gradient(180deg, var(--crema), #F1EADB); }
.lista .contenedor { max-width: 1160px; }
.lista__puntos { margin: 36px 0 30px; display: grid; gap: 10px; align-items: start; counter-reset: punto; }
@media (min-width: 1000px) { .lista__puntos { grid-template-columns: 1fr 1fr; } }
/* Cada punto, plegado: se lee el título y se abre al tocarlo (al imprimir, js/app.js los abre todos). */
.lista__puntos li {
  counter-increment: punto; position: relative; background: #fff; border-radius: 16px; border: 1px solid #EBE2D0;
}
.lista__puntos li::before {
  content: counter(punto); position: absolute; left: 18px; top: 12px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--verde-oscuro); color: #fff; font: 700 1.1rem var(--sans);
}
.lista__puntos summary {
  list-style: none; cursor: pointer; position: relative; display: flex; align-items: center;
  min-height: 64px; padding: 10px 56px 10px 74px;
}
.lista__puntos summary::-webkit-details-marker { display: none; }
.lista__puntos summary::after { right: 18px; }
.lista__puntos h3 { font-size: 1.15rem; }
.lista__puntos p { color: var(--texto); padding: 0 20px 18px 74px; }
.lista .boton { display: flex; margin: 0 auto; width: max-content; max-width: 100%; }
@media (max-width: 520px) {
  .lista__puntos li::before { left: 12px; }
  .lista__puntos summary { padding-left: 64px; padding-right: 50px; }
  .lista__puntos summary::after { right: 14px; }
  .lista__puntos p { padding: 0 16px 16px 16px; }
}

/* Preguntas */
.preguntas { background: #fff; }
.faq { margin-top: 36px; display: grid; gap: 12px; }
.faq details { background: var(--crema); border-radius: 16px; border: 1px solid #EBE2D0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 60px 20px 22px; position: relative;
  font-weight: 700; font-size: 1.15rem; color: var(--tinta); min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .beneficios > summary::after, .lista__puntos summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 26px; height: 26px; margin-top: -13px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314504C' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after, .beneficios[open] > summary::after, .lista__puntos details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 22px; }

/* Contacto */
.contacto { text-align: center; }
.contacto .boton--whatsapp { margin-top: 28px; }
.llamamos {
  text-align: left; max-width: 560px; margin: 32px auto 0; background: #fff; border-radius: var(--radio);
  padding: 30px 28px; box-shadow: var(--sombra); display: grid; gap: 8px;
}
.llamamos[hidden], .boton--whatsapp[hidden], .sin-canal[hidden] { display: none; }
/* Sin WhatsApp ni email: el aviso honesto en lugar del formulario. */
.sin-canal {
  text-align: left; max-width: 560px; margin: 32px auto 0; background: #fff; border-radius: var(--radio);
  padding: 26px 28px; box-shadow: var(--sombra); border-left: 5px solid var(--verde, #14504C);
}
.sin-canal h3 { margin: 0 0 8px; }
.sin-canal p { margin: 0; color: var(--texto-suave); }
.pie__legal a.enlace-legal { color: inherit; text-decoration: underline; }
.llamamos h3 { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.llamamos h3 .icono { color: var(--verde); }
.llamamos > p { color: var(--texto-suave); margin-bottom: 8px; }
.llamamos label { font-weight: 700; margin-top: 8px; color: var(--tinta); }
.llamamos input {
  font: 1.125rem var(--sans); min-height: 54px; padding: 10px 14px; border-radius: 12px;
  border: 1.5px solid #B9AF9C; background: #FFFDF8; color: var(--tinta); width: 100%;
}
.llamamos input:focus { border-color: var(--verde); outline: 3px solid rgba(244, 166, 35, .6); outline-offset: 1px; }
.llamamos button { margin-top: 16px; }
.llamamos__error { color: #9B2C1F; font-weight: 700; background: #FBEAE6; padding: 10px 14px; border-radius: 10px; margin-top: 8px; }
.llamamos__aviso { font-size: 1rem; color: #7A4B00; background: #FDF1DC; padding: 10px 14px; border-radius: 10px; }
.llamamos__nota { font-size: 1rem; color: var(--texto-suave); margin-top: 6px; }
.whatsapp-flotante {
  position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center; background: #1B7F4B; color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.whatsapp-flotante .icono { width: 34px; height: 34px; }

/* Banda final */
.banda { position: relative; background: var(--verde-oscuro); color: #EAF2EF; overflow: hidden; padding: 120px 0 70px; }
.banda::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 80px; z-index: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H1440 V30 C 1180 80 900 10 620 40 S 180 70 0 30z' fill='%23F7F3EA'/%3E%3C/svg%3E") no-repeat top / 100% 100%;
}
.banda__fondo { position: absolute; inset: 0; }
.banda__fondo img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; opacity: .55; }
.banda__fondo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 80, 76, .92) 30%, rgba(20, 80, 76, .6)); }
.banda__dentro { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.banda h2 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.3rem); }
.banda h2 span { display: block; }
.banda p { margin-top: 16px; font-size: 1.15rem; max-width: 30em; }
.banda__lado { display: grid; gap: 22px; justify-items: start; }
.banda .tiendas { margin-top: 0; }
.banda .tiendas__nota { margin-top: -8px; color: #D4E4DF; font-size: 1rem; }
.valores { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.valores li { display: flex; gap: 8px; align-items: center; font-size: 1.1rem; color: #fff; }
.valores .icono { width: 26px; height: 26px; }
@media (max-width: 860px) { .banda__dentro { grid-template-columns: 1fr; } .banda { padding-top: 100px; } }

/* Pie */
.pie { background: var(--verde-noche); color: #DDE8E4; padding: 56px 0 28px; font-size: 1rem; }
.pie a { color: #fff; }
.pie__dentro { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr; gap: 36px; }
.pie__marca img { width: 190px; margin-bottom: 14px; }
.pie__marca p + p { margin-top: 8px; color: #BFD2CC; }
.pie__enlaces { display: grid; gap: 0; align-content: start; }
.pie__enlaces a { text-decoration: none; display: flex; align-items: center; min-height: 44px; padding: 4px 0; }
.pie__enlaces a:hover { text-decoration: underline; }
.pie__legal { display: grid; gap: 10px; align-content: start; }
.pie__legal details { border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: 0 16px; }
.pie__legal summary { cursor: pointer; font-weight: 700; color: #fff; padding: 12px 0; min-height: 44px; }
.pie__legal details p { padding-bottom: 12px; color: #C9D9D4; }
.pie__derechos { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); color: #A9C0B9; font-size: 1rem; }
@media (max-width: 860px) { .pie__dentro { grid-template-columns: 1fr; } }

/* ---------- Imprimir: solo la lista ---------- */
@media print {
  body { background: #fff; font-size: 12pt; }
  .cabecera, .portada, .ojos, .como, .precios, .para-quien, .preguntas, .contacto, .empezar, .banda, .pie, .saltar, .whatsapp-flotante, #imprimir { display: none !important; }
  .lista { background: #fff; padding: 0; }
  .lista__puntos li { break-inside: avoid; border-color: #ccc; }
  .lista__puntos li::before { background: #fff; color: #000; border: 2px solid #000; }
  .lista__puntos summary::after { display: none; }
  .lista::after { content: "Vivamigo · Torrevieja"; display: block; text-align: center; margin-top: 12pt; }
}

/* ---------------------------------------------------------------------------
   Aviso legal y privacidad (legal.html, privacidad.html: los genera
   tools/sincronizar.js con los borradores de la app). Sin JavaScript se ve
   el inglés; con él, el idioma elegido.
   --------------------------------------------------------------------------- */
body.legal { background: var(--crema); color: var(--texto); }
.legal-cab { background: var(--blanco); border-bottom: 1px solid var(--borde); padding: 14px 0; }
.legal-cab__dentro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.legal-idiomas { display: flex; flex-wrap: wrap; gap: 0 4px; font-size: 1rem; }
/* Cada idioma, una zona táctil de 44 px. */
.legal-idiomas a { color: var(--verde-oscuro); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
.legal-idiomas a[aria-current] { font-weight: 700; text-decoration: underline; }
.legal-cuerpo { padding-top: 24px; padding-bottom: 64px; }
.legal-idioma { display: none; }
.legal-idioma[lang="en"] { display: block; }
.js .legal-idioma[lang="en"] { display: none; }
.js .legal-idioma.activa { display: block; }
.legal-idioma h1 { font-family: var(--serif); color: var(--tinta); font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 8px 0 18px; }
.legal-idioma h2 { font-family: var(--serif); color: var(--tinta); font-size: 1.3rem; margin: 28px 0 8px; }
.legal-idioma p { margin: 0 0 10px; line-height: 1.6; overflow-wrap: anywhere; }
.legal-volver a { color: var(--verde-oscuro); display: inline-flex; align-items: center; min-height: 44px; }
.legal-borrador { background: #FDF1DC; border: 1px solid var(--sol); border-radius: 12px; padding: 14px 18px; color: #6B4300; }
.legal-borrador strong { display: block; margin-bottom: 4px; }
.legal-borrador p { margin: 0; }
.legal-empresa { width: 100%; border-collapse: collapse; background: var(--blanco); border-radius: 12px; overflow: hidden; }
.legal-empresa th, .legal-empresa td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--borde); vertical-align: top; overflow-wrap: anywhere; }
.legal-empresa th { width: 38%; font-weight: 600; color: var(--texto-suave); }
.legal-empresa td.pendiente { color: #9A5B00; font-weight: 600; }
.legal-version { margin-top: 28px; font-size: 1rem; color: var(--texto-suave); }
@media print { .legal-cab, .legal-volver { display: none; } }

/* ---------------------------------------------------------------------------
   «Quiero empezar»: el formulario de interés (js/app.js). Para el móvil de
   una persona de 70 años: opciones grandes que se tocan enteras, una columna
   y botones a todo el ancho.
   --------------------------------------------------------------------------- */
.empezar { background: var(--salvia-claro); text-align: center; }
.empezar[hidden] { display: none; }
.interes { max-width: 640px; gap: 10px; }
.llamamos select {
  font: 1.125rem var(--sans); min-height: 54px; padding: 10px 14px; border-radius: 12px;
  border: 1.5px solid #B9AF9C; background-color: #FFFDF8; color: var(--tinta); width: 100%;
}
.llamamos select:focus { border-color: var(--verde); outline: 3px solid rgba(244, 166, 35, .6); outline-offset: 1px; }
.interes__grupo { border: 0; padding: 0; margin: 10px 0 0; min-width: 0; display: grid; gap: 8px; }
.interes__grupo legend { font-weight: 700; color: var(--tinta); padding: 0; margin-bottom: 8px; }
.interes__grupo--fila { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.llamamos .interes__opcion {
  display: flex; align-items: center; gap: 12px; min-height: 56px; margin: 0; padding: 10px 14px;
  border: 1.5px solid #B9AF9C; border-radius: 12px; background: #FFFDF8; cursor: pointer; font-weight: 400;
}
.interes__opcion input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--verde-oscuro); }
.interes__opcion:has(input:checked) { border-color: var(--verde); background: var(--salvia-claro); box-shadow: inset 0 0 0 1px var(--verde); }
.interes__opcion:focus-within { outline: 3px solid rgba(244, 166, 35, .6); outline-offset: 1px; }
.interes__opcion small { display: block; color: var(--texto-suave); font-size: 1rem; }
.interes__ayuda { font-size: 1rem; color: var(--texto-suave); margin: 0; }
.interes__rgpd { background: var(--crema); border-radius: 12px; padding: 14px 16px; margin-top: 12px; font-size: 1rem; line-height: 1.5; }
.llamamos .interes__rgpd h3 { font: 700 1.05rem var(--sans); color: var(--tinta); margin: 0 0 4px; }
.interes__rgpd p + p { margin-top: 6px; }
.interes__rgpd a { color: var(--verde-oscuro); text-decoration: underline; display: inline-flex; min-height: 44px; align-items: center; }
.llamamos .interes__casilla { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; cursor: pointer; margin-top: 4px; }
.interes__casilla input { flex: none; width: 28px; height: 28px; margin: 2px 0 0; accent-color: var(--verde-oscuro); }
.interes button[type="submit"] { white-space: normal; }
.interes__hecho { text-align: left; max-width: 640px; gap: 12px; }
.interes__hecho:focus { outline: none; }
.interes__hecho h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--tinta); }
.interes__hecho .boton { white-space: normal; width: 100%; }
.interes__canales { display: grid; gap: 10px; }
.interes__resumen-titulo { font-weight: 700; color: var(--tinta); margin-top: 6px; }
.interes__resumen { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 1rem; background: var(--crema); border-radius: 12px; padding: 12px 16px; }
.interes__resumen dt { color: var(--texto-suave); }
.interes__resumen dd { margin: 0; font-weight: 600; color: var(--tinta); overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .interes__grupo--fila { grid-template-columns: 1fr; }
  .interes__resumen { grid-template-columns: 1fr; }
  .interes__resumen dd + dt { margin-top: 6px; }
  .interes button[type="submit"] { width: 100%; }
  .llamamos.interes, .interes__hecho { padding: 24px 18px; }
}
/* El botón de cada plan, abajo de la tarjeta. */
.plan__puntos { margin-bottom: 22px; }
.plan .plan__boton { margin-top: auto; white-space: normal; }
/* Los cinco textos legales, en el pie. */
.pie__titulo { font: 700 1rem var(--sans); color: #fff; margin: 0; }
.pie__legales ul { display: grid; gap: 0; }
.pie__legales a { display: flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
/* En las páginas legales: el formulario de desistimiento, los botones y los otros textos. */
.legal-idioma h3 { font-family: var(--serif); color: var(--tinta); font-size: 1.15rem; margin: 20px 0 8px; }
.legal-formulario { background: var(--blanco); border: 1.5px dashed var(--borde); border-radius: 12px; padding: 18px 20px; margin: 12px 0; }
.legal-boton { margin: 12px 0 4px; }
.legal-boton .boton { white-space: normal; }
.legal-copiado { display: inline-block; margin-left: 8px; color: var(--verde-oscuro); font-weight: 600; }
.legal-nota { font-size: 1rem; color: var(--texto-suave); margin-top: 8px; }
.legal-otros { margin-top: 32px; padding-top: 8px; border-top: 1px solid var(--borde); }
.legal-otros ul { list-style: disc; padding-left: 1.2em; }
.legal-otros a { color: var(--verde-oscuro); display: inline-flex; align-items: center; min-height: 44px; }

/* ---------------------------------------------------------------------------
 * La portada en el móvil (auditoría 5, I15): de 16 pantallas a unas 8.
 * Orden: qué es → cómo funciona → planes → «Quiero empezar»; lo demás, plegado.
 * - Las tres tarjetas de pago, en fila y deslizables (se ve el borde de la
 *   siguiente: se nota que hay más). En el ordenador, `display: contents`
 *   las deja en la rejilla de siempre.
 * - «Para quién», preguntas, contacto y la lista, plegadas por js/app.js
 *   (`plegarSecciones`): el título y un botón para abrirlas.
 * - El formulario, más compacto: los planes en dos columnas.
 * ------------------------------------------------------------------------- */
.planes__lista { display: contents; }
.plegable__boton { display: none; }
@media (max-width: 680px) {
  .planes__lista { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin: 0 -16px; padding: 6px 16px 14px; scroll-padding: 0 16px; }
  .planes__lista:focus-visible { outline: 3px solid rgba(244, 166, 35, .6); outline-offset: -3px; }
  .planes__lista > .plan { flex: 0 0 84%; scroll-snap-align: center; }
  .planes { margin-top: 28px; gap: 16px; }
  .seccion__intro { margin-top: 10px; }
  .ojos { padding-top: 40px; }
  .seccion.plegada { padding: 22px 0; }
  .plegada .contenedor > :not(h2):not(.plegable__cabeza) { display: none !important; }
  .plegable__cabeza { display: flex; align-items: center; justify-content: center; gap: 12px; }
  .plegable__cabeza h2 { cursor: pointer; font-size: 1.5rem; margin: 0; }
  .plegable__boton { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--verde-oscuro); background: #fff; color: var(--verde-oscuro); font-size: 1.6rem; line-height: 1; cursor: pointer; }
  .plegable__boton::before { content: '+'; }
  .plegable__boton[aria-expanded='true']::before { content: '−'; }
  .plegable__boton:focus-visible { outline: 3px solid rgba(244, 166, 35, .6); outline-offset: 2px; }
  .interes__grupo:not(.interes__grupo--fila) { grid-template-columns: 1fr 1fr; }
  .interes__grupo:not(.interes__grupo--fila) .interes__opcion:last-child { grid-column: 1 / -1; }
  .interes__rgpd p { font-size: .95rem; }
}
@media (max-width: 680px) {
  .planes__lista > .plan-gratis { flex: 0 0 84%; scroll-snap-align: center; justify-content: space-between; }
  .descuentos { display: none; }
  .precios__notas .nota { font-size: .98rem; }
  .pasos { gap: 20px; margin-top: 28px; }
  .tarjetas { margin-top: 24px; }
  .banda { padding: 56px 0 40px; }
  .banda .valores { display: none; }
  .llamamos .interes__grupo--fila { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .llamamos .interes__grupo--fila .interes__opcion { min-height: 48px; padding: 8px 10px; gap: 8px; }
  .interes__rgpd details > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
  .interes__rgpd details > summary::-webkit-details-marker { display: none; }
  .interes__rgpd details > summary::after { content: '+'; font-size: 1.4rem; color: var(--verde-oscuro); }
  .interes__rgpd details[open] > summary::after { content: '−'; }
}
@media (max-width: 680px) {
  .precios .seccion__intro { display: none; }
  .plan__para { display: none; }
  .pie__enlaces, .pie__legales ul { grid-template-columns: 1fr 1fr; column-gap: 12px; }
  html:not(.con-app) .banda__lado { display: none; }
}
@media (max-width: 680px) {
  .seccion { padding: 40px 0; }
  /* El ejemplo de la urbanización va de marcador en el campo (sigue siendo su descripción, aria-describedby). */
  #fi-zona-ayuda { display: none; }
}
