/* sitio.css — v464: estilos compartidos de la portada y de las páginas por giro (antes vivían dentro de
   inicio.html). Lo que solo usa la portada (el día, "también", la frase de giros) sigue en inicio.html. */
/* Portada v407. Idea: un día con el asistente. La página empieza de noche (11:42 p.m.), el cielo cambia con cada
   escena y termina otra vez de noche. Una sola familia de letra (Bricolage Grotesque, servida desde /fuentes). */
@font-face {
  font-family: 'Bricolage';
  src: url('/fuentes/bricolage-opsz.woff2') format('woff2-variations'), url('/fuentes/bricolage-opsz.woff2') format('woff2');
  font-weight: 200 800; font-style: normal; font-display: swap;
}
:root {
  --noche: #0C1136; --noche-2: #161C4F; --luna: #FFE58A;
  --tinta: #0C1136; --tinta-2: #454A6B; --papel: #FFFFFF; --linea: rgba(12, 17, 54, .14);
  --wa: #1FA855; --wa-2: #17873F; --palomita: #34B7F1;
  --letra: 'Bricolage', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --ancho: 1220px; --margen: clamp(20px, 5vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--letra); font-size: 18px; line-height: 1.55; color: var(--tinta); background: var(--papel);
  font-variation-settings: 'opsz' 16; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--palomita); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--luna); color: var(--tinta); }
.saltar { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--tinta); padding: 10px 16px; border-radius: 8px; z-index: 50; }
.saltar:focus { left: 8px; }
.caja { width: min(100% - 2 * var(--margen), var(--ancho)); margin-inline: auto; }

.titulo {
  font-weight: 750; font-variation-settings: 'opsz' 96; letter-spacing: -.035em; line-height: .98;
  font-size: clamp(38px, 5.6vw, 76px); text-wrap: balance;
}
.bajada { font-size: clamp(18px, 1.55vw, 21px); line-height: 1.5; color: var(--tinta-2); max-width: 34em; text-wrap: pretty; }

.boton {
  display: inline-flex; align-items: center; gap: .6em; padding: .95em 1.5em; border-radius: 999px;
  background: var(--wa); color: #fff; font-weight: 650; font-size: 18px; line-height: 1; text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 12px 28px -12px rgba(31, 168, 85, .7);
  transition: background-color .15s ease, transform .15s ease;
}
.boton:hover { background: var(--wa-2); }
.boton:active { transform: translateY(1px); }
.boton svg { width: 1.25em; height: 1.25em; flex: none; }
.boton--chico { font-size: 15px; padding: .7em 1.1em; box-shadow: none; }

/* ---------- Cielos: de noche se ven estrellas y el texto va en claro ---------- */
.noche { background-color: var(--noche); color: #fff; position: relative; isolation: isolate; }
.noche::before, .dia::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(2.3px 2.3px at 8% 14%, rgba(255,255,255,.9) 50%, transparent 52%),
    radial-gradient(1.9px 1.9px at 17% 62%, rgba(255,255,255,.6) 50%, transparent 52%),
    radial-gradient(2.5px 2.5px at 26% 31%, rgba(255,255,255,.8) 50%, transparent 52%),
    radial-gradient(1.9px 1.9px at 34% 78%, rgba(255,255,255,.5) 50%, transparent 52%),
    radial-gradient(2.1px 2.1px at 43% 9%, rgba(255,255,255,.7) 50%, transparent 52%),
    radial-gradient(1.9px 1.9px at 52% 47%, rgba(255,255,255,.45) 50%, transparent 52%),
    radial-gradient(2.4px 2.4px at 61% 22%, rgba(255,255,255,.85) 50%, transparent 52%),
    radial-gradient(1.9px 1.9px at 69% 71%, rgba(255,255,255,.5) 50%, transparent 52%),
    radial-gradient(2.2px 2.2px at 77% 38%, rgba(255,255,255,.7) 50%, transparent 52%),
    radial-gradient(1.9px 1.9px at 86% 12%, rgba(255,255,255,.6) 50%, transparent 52%),
    radial-gradient(2.4px 2.4px at 93% 56%, rgba(255,255,255,.8) 50%, transparent 52%),
    radial-gradient(1.9px 1.9px at 4% 88%, rgba(255,255,255,.5) 50%, transparent 52%),
    radial-gradient(2.1px 2.1px at 58% 90%, rgba(255,255,255,.55) 50%, transparent 52%),
    radial-gradient(1.9px 1.9px at 97% 84%, rgba(255,255,255,.5) 50%, transparent 52%);
}
.noche .bajada { color: rgba(255, 255, 255, .78); }

/* ---------- Encabezado ---------- */
.cabeza { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; }
.marca { font-weight: 800; font-size: 26px; letter-spacing: -.03em; text-decoration: none; display: inline-flex; align-items: baseline; gap: .45em; }
/* v424: "ia" con la luz del farol sobre noche; sobre fondo claro, bronce oscuro (contraste 5.5:1) */
.marca .ia { color: #FFD25A; }
:not(.noche) > .cabeza .marca .ia { color: #8A5420; }
.marca small { font-weight: 450; font-size: 13px; letter-spacing: 0; opacity: .6; }
.menu { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); font-size: 16px; }
.menu a:not(.boton) { text-decoration: none; opacity: .82; }
.menu a:not(.boton):hover { opacity: 1; text-decoration: underline; text-underline-offset: .3em; }
@media (max-width: 760px) { .menu a:not(.boton) { display: none; } }

/* ---------- Portada ---------- */
.portada { overflow: hidden; }
.portada__cuerpo {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(24px, 5vw, 72px);
  padding-block: clamp(28px, 6vh, 72px) clamp(56px, 10vh, 120px); min-height: calc(100svh - 84px);
}
.portada h1 {
  font-weight: 780; font-variation-settings: 'opsz' 96; letter-spacing: -.04em; line-height: .93;
  font-size: clamp(46px, 7.6vw, 112px); text-wrap: balance;
}
.portada h1 .hora { font-variant-numeric: tabular-nums; white-space: nowrap; }
.portada h1 .hora i { font-style: normal; animation: pulso 2s steps(1, end) infinite; }
@keyframes pulso { 50% { opacity: .25; } }
.portada .bajada { margin-top: clamp(20px, 3vh, 32px); }
.portada__accion { margin-top: clamp(26px, 4vh, 40px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
/* v408: QR solo en pantallas grandes con mouse (en el celular el botón ya abre WhatsApp) */
.qr-caja { display: none; }
.qr-caja:has(svg) { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 960px) {
  .portada__cuerpo .qr-caja:has(svg) { display: none; }
  .qr-caja:has(svg) { display: flex; align-items: center; gap: 16px; margin-top: 30px; max-width: 26em; }
  .qr-caja .qr { width: 104px; height: 104px; flex: none; border-radius: 10px; padding: 0; background: #fff; }
  .qr-caja p { font-size: 15px; line-height: 1.4; color: rgba(255, 255, 255, .66); }
}
@media (hover: hover) and (pointer: fine) and (min-width: 960px) and (min-height: 880px) {
  .portada__cuerpo .qr-caja:has(svg) { display: flex; }
}
.portada__nota { font-size: 15px; color: rgba(255, 255, 255, .66); max-width: 19em; line-height: 1.35; }
.portada__tel { justify-self: center; position: relative; }
.portada__tel .tel { --tel-ancho: clamp(250px, 26vw, 330px); transform: perspective(1500px) rotateY(-15deg) rotateX(5deg) rotateZ(1.2deg); transform-style: preserve-3d; }
.portada__tel::before { /* la pantalla ilumina el cuarto oscuro */
  content: ''; position: absolute; inset: -18% -30%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(170, 255, 205, .22), rgba(170, 255, 205, 0) 70%);
}
.luna {
  position: absolute; right: 2.2%; top: 128px; font-size: clamp(46px, 5.2vw, 76px); width: 1em; height: 1em; border-radius: 50%; z-index: -1;
  box-shadow: inset -.26em .1em 0 0 var(--luna); transform: rotate(-18deg); filter: drop-shadow(0 0 22px rgba(255, 229, 138, .35));
}
@media (max-width: 860px) {
  .portada__cuerpo { grid-template-columns: 1fr; min-height: 0; padding-bottom: 56px; }
  .portada__tel { margin-top: 8px; }
  .portada__tel .tel { --tel-ancho: min(78vw, 310px); transform: perspective(1500px) rotateY(-9deg) rotateX(4deg); }
  .luna { top: 78px; right: 7%; }
}

/* ---------- Teléfono (todo en unidades del ancho del teléfono para que escale parejo) ---------- */
.tel { --tel-ancho: 320px; width: var(--tel-ancho); container-type: inline-size; flex: none; }
.tel__marco {
  position: relative; aspect-ratio: 100 / 204; border-radius: 15cqw; padding: 2.6cqw; background: #05071A;
  box-shadow: 0 0 0 .5cqw rgba(255, 255, 255, .16), 0 40px 80px -30px rgba(3, 5, 25, .75), 0 18px 30px -18px rgba(3, 5, 25, .6);
}
.tel__isla { position: absolute; top: 4.6cqw; left: 50%; width: 27cqw; height: 7cqw; margin-left: -13.5cqw; border-radius: 99px; background: #05071A; z-index: 3; }
.tel__pantalla { position: relative; height: 100%; border-radius: 12.6cqw; overflow: hidden; background: #EFEAE2; }
.wa { position: absolute; inset: 0; display: flex; flex-direction: column; font-size: 15px; font-size: 4.9cqw; line-height: 1.3; color: #111B21; font-variation-settings: 'opsz' 14; }
.wa__estado { display: flex; justify-content: space-between; align-items: center; padding: 5.4cqw 8cqw 1.6cqw; font-weight: 650; font-size: .9em; background: #fff; }
.wa__estado span:last-child { display: inline-flex; gap: 1.2cqw; align-items: center; }
.wa__estado i { display: block; background: currentColor; border-radius: 1cqw; }
.wa__estado i:nth-child(1) { width: 4.6cqw; height: 3cqw; clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.wa__estado i:nth-child(2) { width: 6.6cqw; height: 3.2cqw; border-radius: 1.2cqw; opacity: .9; }
.wa__barra { display: flex; align-items: center; gap: 2.6cqw; padding: 1.8cqw 4cqw 2.6cqw; background: #fff; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.wa__barra::before { content: ''; width: 2.4cqw; height: 2.4cqw; border-left: .7cqw solid #111B21; border-bottom: .7cqw solid #111B21; transform: rotate(45deg); margin: 0 1cqw 0 1.4cqw; flex: none; }
.wa__foto { width: 10cqw; height: 10cqw; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .82em; color: #fff; background: #2E6BE6; flex: none; }
.wa__foto svg { width: 58%; height: 58%; }
.wa__foto--asis { background: var(--noche); color: var(--luna); }
.wa__quien { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.wa__quien b { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa__quien small { font-size: .78em; color: #667781; }
.wa__chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: .6cqw; padding: 3.4cqw 3.2cqw; overflow: hidden; }
.wa--auto .wa__chat { justify-content: flex-start; }
.wa__dia + .b, .b + .wa__dia { margin-top: 1.4cqw; }
.wa__dia { align-self: center; font-size: .74em; background: #fff; color: #54656F; padding: .9cqw 2.6cqw; border-radius: 2cqw; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); margin-bottom: 1cqw; }
.b { max-width: 86%; padding: 1.7cqw 2.4cqw 1.5cqw; border-radius: 2.4cqw; background: #fff; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); align-self: flex-start; border-top-left-radius: .6cqw; }
/* v408: como en WhatsApp: pegados si escribe la misma persona, un poco de aire cuando cambia */
.b--yo + .b:not(.b--yo), .b:not(.b--yo) + .b--yo, .aviso + .b { margin-top: 1.6cqw; }
.b--yo { align-self: flex-end; background: #D9FDD3; border-top-left-radius: 2.4cqw; border-top-right-radius: .6cqw; }
.b time { float: right; font-size: .68em; color: #667781; margin: .9cqw 0 -.8cqw 2.4cqw; display: inline-flex; align-items: center; gap: .8cqw; white-space: nowrap; }
.b time svg { width: 4.2cqw; height: 2.8cqw; color: var(--palomita); }
.b strong { font-weight: 650; }
.b__boton { display: block; margin: 1.8cqw -2.4cqw -1.5cqw; padding: 2cqw; text-align: center; color: #008069; font-weight: 600; border-top: 1px solid rgba(0, 0, 0, .08); }
.b--puntos { display: none; padding: 2.8cqw 3cqw; }
.b--puntos.se-ve { display: block; }
.b--puntos i { display: inline-block; width: 1.7cqw; height: 1.7cqw; border-radius: 50%; background: #8696A0; margin-right: 1cqw; animation: punto 1s infinite; }
.b--puntos i:nth-child(2) { animation-delay: .15s; } .b--puntos i:nth-child(3) { animation-delay: .3s; margin: 0; }
@keyframes punto { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-1.2cqw); opacity: 1; } }
.wa__entrada { display: flex; align-items: center; gap: 2cqw; padding: 1.8cqw 2.6cqw 5cqw; }
.wa__entrada span { flex: 1; background: #fff; border-radius: 99px; padding: 2.2cqw 4cqw; color: #8696A0; font-size: .92em; }
.wa__entrada i { width: 9.6cqw; height: 9.6cqw; border-radius: 50%; background: #00A884; flex: none; }
/* pantalla bloqueada (de noche) */
.wa--bloqueo { background: linear-gradient(180deg, #0B0F33 0%, #1B2260 100%); color: #fff; align-items: center; }
.wa--bloqueo .wa__estado { background: none; align-self: stretch; }
.bloqueo__fecha { margin-top: 12cqw; font-size: 1.05em; opacity: .85; }
.bloqueo__hora { font-size: 5.2em; font-weight: 650; letter-spacing: -.04em; line-height: 1; font-variation-settings: 'opsz' 96; font-variant-numeric: tabular-nums; }
.bloqueo__pie { margin-top: auto; align-self: stretch; display: flex; justify-content: space-between; padding: 0 10cqw 9cqw; }
.bloqueo__pie i { width: 12cqw; height: 12cqw; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.aviso { align-self: stretch; margin: 12cqw 3.4cqw 0; padding: 3cqw 3.4cqw; border-radius: 5cqw; background: rgba(255, 255, 255, .16); display: grid; grid-template-columns: auto 1fr; gap: .4cqw 2.6cqw; line-height: 1.28; }
.aviso svg { grid-row: span 2; width: 9cqw; height: 9cqw; align-self: center; }
.aviso b { font-weight: 650; font-size: .9em; display: flex; justify-content: space-between; }
.aviso b small { font-weight: 400; opacity: .7; }
.aviso span { font-size: .9em; }
/* las burbujas aparecen una por una (solo si hay JavaScript y el visitante no pidió menos movimiento) */
@media (prefers-reduced-motion: no-preference) {
  .js .wa--auto .b:not(.se-ve):not(.b--puntos) { display: none; }
  .js .wa--auto .b.se-ve, .js .wa--escena.activa .b, .js .wa--escena.activa .aviso { animation: sale .42s cubic-bezier(.2, .9, .25, 1.15) both; }
  .js .wa--escena.activa .b, .js .wa--escena.activa .aviso { animation-delay: calc(var(--i, 0) * .65s + .35s); }
  .js .wa--escena.activa .antes { animation: none; }
  html { scroll-behavior: smooth; }
}
@keyframes sale { from { opacity: 0; transform: translateY(2.6cqw) scale(.96); } }

/* ---------- Secciones de día ---------- */
.seccion { padding-block: clamp(72px, 12vh, 150px); }
.seccion + .seccion { padding-top: 0; }
.seccion__cabeza { margin-bottom: clamp(32px, 6vh, 64px); display: grid; gap: 18px; }

.empezar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.empezar li { border-top: 3px solid var(--tinta); padding-top: 20px; }
.empezar__cuando { font-weight: 650; color: var(--wa-2); font-size: 17px; }
.empezar h3 { margin: 6px 0 10px; font-size: clamp(24px, 2.3vw, 32px); font-weight: 720; letter-spacing: -.025em; line-height: 1.08; font-variation-settings: 'opsz' 48; text-wrap: balance; }
.empezar p:last-child { color: var(--tinta-2); text-wrap: pretty; }
@media (max-width: 760px) { .empezar { grid-template-columns: 1fr; } }

.precio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: end; }
.precio__monto { font-weight: 800; font-variation-settings: 'opsz' 96; letter-spacing: -.055em; line-height: .82; font-size: clamp(110px, 19vw, 280px); font-variant-numeric: tabular-nums; }
.precio__unidad { margin-top: 18px; font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: -.015em; }
.precio__lanzamiento { margin-top: 12px; max-width: 24em; font-size: 15px; line-height: 1.45; color: var(--tinta-2, #4A5160); }
.precio__lista li { padding-block: 13px; border-top: 1px solid var(--linea); font-size: clamp(18px, 1.5vw, 21px); }
.precio__lista li:last-child { border-bottom: 1px solid var(--linea); }
.precio .boton { margin-top: 28px; }
.precio__letra { margin-top: 20px; font-size: 15px; line-height: 1.45; color: var(--tinta-2); max-width: 34em; }
@media (max-width: 760px) { .precio { grid-template-columns: 1fr; align-items: start; } }

.dudas__cuerpo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.dudas__cuerpo .titulo { position: sticky; top: 40px; }
@media (max-width: 860px) { .dudas__cuerpo { grid-template-columns: 1fr; } .dudas__cuerpo .titulo { position: static; } }
.dudas details { border-top: 1px solid var(--linea); }
.dudas details:last-child { border-bottom: 1px solid var(--linea); }
.dudas summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 22px; font-size: clamp(19px, 1.8vw, 24px); font-weight: 650; letter-spacing: -.015em; line-height: 1.25; }
.dudas summary::-webkit-details-marker { display: none; }
.dudas summary::after { content: ''; flex: none; width: 16px; height: 16px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; transition: transform .25s ease; }
.dudas details[open] summary::after { transform: rotate(45deg); }
.dudas details p { padding-bottom: 24px; max-width: 38em; color: var(--tinta-2); text-wrap: pretty; }

/* ---------- Cierre (otra vez de noche) y pie ---------- */
.cierre { overflow: hidden; }
.cierre__cuerpo { padding-block: clamp(90px, 18vh, 190px); position: relative; }
.cierre h2 { font-weight: 780; font-variation-settings: 'opsz' 96; letter-spacing: -.04em; line-height: .95; font-size: clamp(42px, 7vw, 104px); text-wrap: balance; max-width: 11em; }
.cierre .bajada { margin-top: 26px; }
.cierre .boton { margin-top: 34px; }
.cierre .luna { top: 22%; right: 9%; }
.pie { background: var(--noche); color: rgba(255, 255, 255, .62); font-size: 14px; line-height: 1.6; }
.pie .caja { border-top: 1px solid rgba(255, 255, 255, .14); padding-block: 28px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; }
.pie a { color: rgba(255, 255, 255, .85); }
.pie p { max-width: 46em; }

.flota { position: fixed; right: 16px; bottom: 16px; z-index: 30; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .25s ease, transform .25s ease; box-shadow: 0 10px 30px -8px rgba(12, 17, 54, .45); }
.flota.se-ve { opacity: 1; transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- v464: barra fija (computadora), aparecer al llegar y giros en el pie ---------- */
.barra {
  position: fixed; inset: 0 0 auto; z-index: 40; color: #fff; background: rgba(12, 17, 54, .9);
  -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .1); transform: translateY(-105%); transition: transform .3s ease;
}
.barra.se-ve { transform: none; }
.barra .cabeza { padding-block: 10px; }
.barra .marca { font-size: 21px; }
.barra > .cabeza .marca .ia { color: #FFD25A; }  /* la barra es de noche aunque no lleve la clase .noche */
@media (max-width: 760px) { .barra { display: none; } }
@media (min-width: 761px) { .flota { display: none; } }
.con-revela .revela { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.con-revela .revela.visto { opacity: 1; transform: none; }
.pie__giros { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; max-width: 30em; }
.pie__giros p { margin: 0; }
