/* Vive Alacant — landing pública (DESIGN-FINAL v1.1)
   Hoja propia de index.html: no la comparte con el CMS ni con el portal de partners. */

:root {
  --azul-noche: #0B3D5C;
  --azul-profundo: #072B42;
  --azul-med: #1E7FB5;
  --azul-cielo: #7FC1E3;
  --turquesa: #20B7C4;
  --terracota: #E07A5F;
  --ambar: #F2A541;
  --arena: #F5EBDD;
  --tinta: #16232E;
  --pizarra: #5A6B78;
  --niebla: #9BA9B4;
  --borde: #E2E8ED;
  --fondo: #F7FAFB;
  --sombra-1: 0 2px 10px rgba(11, 61, 92, 0.06);
  --sombra-2: 0 8px 28px rgba(11, 61, 92, 0.12);
  --sombra-3: 0 28px 60px rgba(7, 31, 48, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 78px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--tinta);
  background: var(--fondo);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Sora', sans-serif; text-wrap: balance; line-height: 1.15; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 800px; }

/* ---------------- Aviso de idioma ---------------- */
.aviso-idioma {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  flex-wrap: wrap; padding: 10px 44px 10px 16px; position: relative;
  background: var(--arena); color: var(--tinta); font-size: 14.5px;
  border-bottom: 1px solid rgba(11, 61, 92, 0.12);
}
.aviso-idioma a { color: var(--azul-med); font-weight: 600; }
.aviso-idioma-cerrar {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  border: none; background: none; cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--pizarra); padding: 4px 8px;
}

/* Selector de idioma del pie */
footer .f-idiomas { margin-top: 14px; display: flex; gap: 12px; flex-wrap: wrap; }
footer .f-idiomas a { font-size: 13px; color: rgba(191, 224, 242, 0.75); }
footer .f-idiomas strong { font-size: 13px; color: #fff; font-weight: 600; }

/* ---------------- Navegación ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 61, 92, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(191, 224, 242, 0.14);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; position: relative; }
.nav-brand {
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 17px;
  color: #fff; text-decoration: none; white-space: nowrap;
}
.nav-brand span { color: var(--turquesa); }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-menu { display: flex; gap: 22px; align-items: center; }
.nav-links a {
  color: #CFE6F4; text-decoration: none; font-size: 14.5px; font-weight: 500;
}
.nav-links a:hover { color: #fff; }

/* Botón del menú en móvil. Solo existe por debajo de 900 px, que es donde la
   media query recoge los cinco enlaces; en escritorio no pinta nada. */
.nav-toggle {
  display: none; background: transparent; cursor: pointer;
  border: 1.5px solid rgba(191, 224, 242, 0.45); border-radius: 10px;
  padding: 9px 11px; align-items: center; justify-content: center;
}
.nav-toggle:hover { border-color: #CFE6F4; }
.nav-toggle:focus-visible { outline: 2px solid var(--turquesa); outline-offset: 2px; }
/* Las tres rayas, dibujadas con bordes: sin imagen y sin emoji. */
.nav-burger, .nav-burger::before, .nav-burger::after {
  display: block; width: 18px; height: 2px; background: #CFE6F4; border-radius: 2px;
}
.nav-burger { position: relative; }
.nav-burger::before, .nav-burger::after { content: ""; position: absolute; left: 0; }
.nav-burger::before { top: -6px; }
.nav-burger::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-burger { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-burger::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-burger::after { top: 0; transform: rotate(-45deg); }
.nav-cta {
  background: var(--turquesa); color: #04303A !important; font-weight: 600;
  border-radius: 10px; padding: 9px 16px; font-size: 14.5px; white-space: nowrap;
}
.nav-cta:hover { background: #35C9D5; }

/* ---------------- Botones ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15.5px; padding: 15px 26px;
  border-radius: 12px; text-decoration: none; cursor: pointer; border: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-amber { background: var(--ambar); color: #4A2E00; }
.btn-amber:hover { background: #F6B45F; }
.btn-light { background: #fff; color: var(--azul-noche); }
.btn-light:hover { background: var(--arena); }
.btn-ghost { background: transparent; color: #CFE6F4; border: 1.5px solid rgba(191, 224, 242, 0.45); }
.btn-ghost:hover { border-color: #CFE6F4; color: #fff; }
.btn-solid { background: var(--azul-med); color: #fff; }
.btn-solid:hover { background: #1B74A6; }
.btn-outline { background: transparent; color: var(--azul-noche); border: 1.5px solid var(--borde); }
.btn-outline:hover { border-color: var(--azul-med); color: var(--azul-med); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 78% 8%, rgba(32,183,196,0.22), transparent 62%),
    linear-gradient(168deg, var(--azul-profundo) 0%, var(--azul-noche) 52%, #14618C 100%);
  color: #fff;
  overflow: hidden;
}
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center;
  padding-top: 76px; padding-bottom: 104px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(32, 183, 196, 0.14);
  border: 1px solid rgba(32, 183, 196, 0.42);
  color: #8FE6EE;
  border-radius: 999px; padding: 7px 15px;
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--turquesa);
  box-shadow: 0 0 0 3px rgba(32,183,196,0.25);
}
.hero h1 { font-size: clamp(34px, 4.9vw, 55px); font-weight: 700; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--ambar); }
.hero .lead {
  font-size: 18.5px; color: rgba(255, 255, 255, 0.86);
  max-width: 48ch; margin-bottom: 30px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-note { font-size: 13.5px; color: rgba(191, 224, 242, 0.72); margin-top: 16px; max-width: 44ch; }

/* Marco de teléfono */
.device {
  position: relative; width: 100%; max-width: 296px; justify-self: center;
  border-radius: 42px; padding: 10px;
  background: linear-gradient(160deg, #24404F, #050F17);
  box-shadow: var(--sombra-3);
}
.device img { border-radius: 33px; width: 100%; }
.device::after {
  content: ""; position: absolute; inset: 10px;
  border-radius: 33px; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
}
.device-float { animation: flotar 7s ease-in-out infinite; }
@keyframes flotar { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .device-float { animation: none; } }

.wave { display: block; width: 100%; height: 26px; }

/* ---------------- Bloques ---------------- */
section.block { padding: 84px 0; }
section.block.white { background: #fff; }
section.block.sand { background: var(--arena); }
section.block.night { background: var(--azul-noche); color: #fff; }
section.block.deep {
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(224,122,95,0.20), transparent 60%),
    linear-gradient(160deg, var(--azul-profundo), #0E4A6E);
  color: #fff;
}

.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--azul-med); margin-bottom: 12px;
}
.night .kicker, .deep .kicker { color: var(--turquesa); }
h2.title { font-size: clamp(27px, 3.7vw, 40px); margin-bottom: 14px; }
p.sub { color: var(--pizarra); max-width: 64ch; font-size: 17.5px; }
.night p.sub, .deep p.sub { color: rgba(255,255,255,0.80); }
.center { text-align: center; }
.center p.sub { margin-left: auto; margin-right: auto; }

/* ---------------- Cifras ---------------- */
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin-top: 42px;
}
.stat {
  background: #fff; border-radius: 18px; padding: 26px 24px;
  box-shadow: var(--sombra-1); border-top: 3px solid var(--turquesa);
}
.stat:nth-child(2) { border-top-color: var(--ambar); }
.stat:nth-child(3) { border-top-color: var(--terracota); }
.stat:nth-child(4) { border-top-color: var(--azul-med); }
.stat:nth-child(5) { border-top-color: var(--turquesa); }
.stat:nth-child(6) { border-top-color: var(--ambar); }
.stat .n {
  font-family: 'Sora', sans-serif; font-weight: 700;
  font-size: clamp(30px, 3.4vw, 38px); color: var(--azul-noche);
  line-height: 1.05; letter-spacing: -0.01em;
}
.stat .l { font-weight: 600; font-size: 15px; margin: 6px 0 4px; }
.stat .d { color: var(--pizarra); font-size: 13.5px; }
.fuente { margin-top: 26px; font-size: 13px; color: var(--niebla); max-width: 76ch; }

/* ---------------- Filas de producto ---------------- */
.rows { margin-top: 56px; display: grid; gap: 74px; }
.row {
  display: grid; grid-template-columns: 1fr 0.82fr;
  gap: 56px; align-items: center;
}
.row.flip .r-media { order: -1; }
.row h3 { font-size: clamp(22px, 2.5vw, 28px); margin-bottom: 12px; }
.row p { color: var(--pizarra); font-size: 16.5px; }
.night .row p, .deep .row p { color: rgba(255,255,255,0.78); }
.tagline {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--terracota); margin-bottom: 10px;
}
.bullets { margin-top: 18px; display: grid; gap: 11px; }
.bullets li { list-style: none; padding-left: 28px; position: relative; font-size: 15.5px; color: var(--pizarra); }
.night .bullets li, .deep .bullets li { color: rgba(255,255,255,0.82); }
.bullets li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 14px; height: 8px; border-left: 2.5px solid var(--turquesa);
  border-bottom: 2.5px solid var(--turquesa); transform: rotate(-45deg);
}
.r-media { display: flex; justify-content: center; }
.r-media .device { max-width: 268px; }

/* ---------------- Tarjetas ---------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
.card {
  background: #fff; border-radius: 18px; padding: 28px 26px; box-shadow: var(--sombra-1);
}
.night .card, .deep .card {
  background: rgba(255,255,255,0.055); box-shadow: none;
  border: 1px solid rgba(191,224,242,0.16);
}
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--pizarra); font-size: 15.5px; }
.night .card p, .deep .card p { color: rgba(255,255,255,0.76); }
.card .ico {
  width: 46px; height: 46px; border-radius: 14px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(30,127,181,0.12);
}
.night .card .ico, .deep .card .ico { background: rgba(32,183,196,0.16); }

/* Pasos numerados */
.steps { counter-reset: paso; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.step { background: #fff; border-radius: 18px; padding: 26px 24px; box-shadow: var(--sombra-1); }
.night .step, .deep .step {
  background: rgba(255,255,255,0.055); box-shadow: none;
  border: 1px solid rgba(191,224,242,0.16);
}
.step::before {
  counter-increment: paso; content: counter(paso);
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px; margin-bottom: 14px;
  background: var(--ambar); color: #4A2E00;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16px;
}
.step h3 { font-size: 17.5px; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--pizarra); }
.night .step p, .deep .step p { color: rgba(255,255,255,0.76); }

/* La portada explica el plan en cuatro pasos, no en tres */
.steps.cuatro { grid-template-columns: repeat(4, 1fr); }

/* Cita / argumento fuerte */
.pull {
  margin-top: 44px; border-left: 4px solid var(--ambar);
  padding: 6px 0 6px 24px; font-family: 'Sora', sans-serif;
  font-size: clamp(19px, 2.3vw, 25px); font-weight: 600; max-width: 40ch; line-height: 1.35;
}
.pull small {
  display: block; font-family: 'Inter', sans-serif; font-weight: 400;
  font-size: 15px; color: rgba(255,255,255,0.7); margin-top: 12px; line-height: 1.5;
}

/* Marcador de estado real */
.livebar {
  margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px; background: var(--borde); border-radius: 16px; overflow: hidden;
}
.livebar div { background: #fff; padding: 22px 18px; text-align: center; }
.livebar .n { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 27px; color: var(--azul-noche); }
.livebar .l { font-size: 13.5px; color: var(--pizarra); margin-top: 2px; }

/* ---------------- FAQ ---------------- */
.faq { margin-top: 40px; display: grid; gap: 12px; }
.faq details {
  background: #fff; border-radius: 14px; box-shadow: var(--sombra-1);
  padding: 4px 22px; border: 1px solid transparent;
}
.faq details[open] { border-color: rgba(30,127,181,0.25); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0;
  font-family: 'Sora', sans-serif; font-weight: 600; font-size: 17px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 22px; color: var(--azul-med); font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--pizarra); font-size: 16px; padding: 0 0 20px; max-width: 72ch; }

/* ---------------- CTA final ---------------- */
.final { text-align: center; }
.final h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; }
.final p { color: rgba(255,255,255,0.82); font-size: 18px; max-width: 56ch; margin: 0 auto 30px; }
.final .cta-row { justify-content: center; }

/* ---------------- Footer ---------------- */
footer { background: var(--azul-profundo); color: #BFE0F2; padding: 46px 0 34px; }
footer .wrap { display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
footer .f-brand { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 17px; color: #fff; }
footer .f-brand span { color: var(--turquesa); }
footer .f-note { font-size: 13px; color: rgba(191, 224, 242, 0.55); margin-top: 8px; max-width: 42ch; }
footer nav { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
footer a { color: #BFE0F2; text-decoration: none; font-size: 14px; }
footer a:hover { color: #fff; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 72px; }
  .device { max-width: 258px; margin-top: 12px; }
  .row, .row.flip { grid-template-columns: 1fr; gap: 32px; }
  .row.flip .r-media { order: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .steps, .steps.cuatro { grid-template-columns: 1fr; }
  .livebar { grid-template-columns: repeat(2, 1fr); }
  /* Los cinco enlaces se recogen en un desplegable, NO se esconden a secas.
     Hasta el 07-ago-2026 aquí ponía `.nav-links a:not(.nav-cta){display:none}`
     y no había botón: a 375 px el encabezado se quedaba con cero botones y a
     esas cinco secciones solo se llegaba bajando al pie. */
  .nav-toggle { display: inline-flex; }
  .nav-menu { display: none; }
  .nav-menu.abierto {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 64px; left: 0; right: 0; z-index: 55;
    background: var(--azul-noche);
    border-bottom: 1px solid rgba(191, 224, 242, 0.14);
    box-shadow: var(--sombra-2); padding: 6px 22px 12px;
  }
  .nav-menu.abierto a {
    padding: 13px 0; font-size: 16px;
    border-top: 1px solid rgba(191, 224, 242, 0.12);
  }
  .nav-menu.abierto a:first-child { border-top: none; }
  section.block { padding: 62px 0; }
}
@media (max-width: 560px) {
  .stats-grid, .grid-2 { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .cta-row { flex-direction: column; align-items: stretch; }
}
