/* Lo que la demo añade a la landing: los botones de los vídeos, la ventana del presupuesto
   (presupuesto.js), la barra del móvil y el interruptor del «permiso de los cuatro». */
:root {
  --letra: Inter, "Segoe UI", system-ui, sans-serif;
  --p-tinta: #f3f5fa; --p-gris: #a3acbd; --p-gris-2: #6f7889;
  --p-linea: rgba(255,255,255,.08); --p-linea-2: rgba(255,255,255,.16);
}

/* Portada: los dos vídeos y «mírala paso a paso» */
button.btn-borde { background: transparent; }
.nav-marca img { width: 140px; height: auto; border-radius: 0; }
.btn small { font-size: 13px; font-weight: 700; opacity: .7; }
.btn-play { display: grid; place-items: center; width: 30px; height: 30px; margin-left: -10px; border-radius: 50%; background: rgba(255,255,255,.2); }
.btn-play svg { margin-left: 2px; }
.hero-tocar { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 15px; font-weight: 700; color: rgba(255,255,255,.72); text-decoration: none; }
.hero-tocar:hover { color: #fff; }
.hero-tocar svg { color: var(--bola); }
.hero-sellos { margin-top: 30px; }

/* El botón flotante para ver la demo cuando ya no se ve el de arriba */
.guia-lanzar { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; border: 1px solid rgba(56,189,248,.4); background: rgba(7,10,18,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; font-weight: 800; font-size: 14.5px; box-shadow: 0 16px 40px rgba(0,0,0,.35), 0 0 30px rgba(0,166,199,.25); animation: aparecer .5s ease both; }
.guia-lanzar[hidden] { display: none; }
.guia-lanzar span { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--azul); }
.guia-lanzar span svg { width: 16px; height: 16px; margin-left: 2px; }
.guia-lanzar span::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(251,191,36,.55); animation: onda 2s ease-out infinite; }
@keyframes onda { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }

/* Pie: la nota de la demo */
.pie-links { flex-wrap: wrap; row-gap: 8px; }
.pie-marca img { width: 91px; height: auto; border-radius: 0; }
.pie-nota { grid-column: 1 / -1; margin: 0; font-size: 12.5px; line-height: 1.6; color: rgba(255,255,255,.45); }

/* ── Tu presupuesto (presupuesto.js): la ventana, encima de la página o del vídeo ── */
html.presu-abierto { overflow: hidden; }
.presu { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 16px; background: rgba(5,8,15,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fundido .25s ease both; }
.presu[hidden] { display: none; }
@keyframes fundido { from { opacity: 0; } }
.presu-caja { position: relative; width: min(620px, 100%); max-height: calc(100vh - 32px); max-height: calc(100svh - 32px); overflow-y: auto; overscroll-behavior: contain; padding: 30px; border-radius: 30px; background: var(--papel); color: var(--tinta); box-shadow: 0 40px 100px rgba(0,0,0,.5); animation: aparecer .3s ease both; }
.presu-cerrar { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--claro); color: var(--tinta); font-size: 24px; line-height: 1; }
.presu h2 { margin: 12px 0 6px; font-size: clamp(26px, 4vw, 36px); line-height: 1.08; padding-right: 40px; }
.presu-que { margin: 0 0 20px; color: var(--gris); font-size: 15.5px; line-height: 1.5; }
.presu-fila { display: grid; gap: 8px; margin-bottom: 18px; }
.presu-fila > label, .presu-fila > span { font-size: 14px; font-weight: 800; color: var(--gris); }
.presu-pistas { display: flex; align-items: center; gap: 10px; }
.presu-pistas button { width: 44px; height: 44px; border-radius: 14px; border: 1.5px solid var(--linea); background: #fff; font-size: 22px; font-weight: 800; color: var(--tinta); }
.presu-pistas button:hover { border-color: var(--azul); }
.presu-pistas output { min-width: 56px; text-align: center; font-size: 30px; font-weight: 900; letter-spacing: -.02em; }
.presu-pistas small { color: var(--gris); font-weight: 700; }
.presu-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.presu-campos input { height: 50px; min-width: 0; border-radius: 14px; border: 1.5px solid var(--linea); background: #fff; padding: 0 14px; font: 600 15.5px var(--letra); color: var(--tinta); outline: none; }
.presu-campos input:focus { border-color: var(--azul); }
/* La casilla de la política de privacidad: obligatoria y sin marcar de inicio (regla de Agustín, 7-oct-2026). */
.presu-acepto { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: var(--gris); cursor: pointer; }
.presu-acepto input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--azul); cursor: pointer; }
.presu-acepto a { font-weight: 700; color: var(--azul-o); }
.presu-acepto.mal { color: var(--rojo); }
.presu-acepto.mal input { outline: 2px solid var(--rojo); outline-offset: 2px; }
.presu-hecho.falta { background: #fef2f2; color: #b91c1c; }
.presu-botones { display: flex; flex-wrap: wrap; gap: 10px; }
.presu-botones .btn { flex: 1 1 200px; justify-content: center; }
.presu-hecho { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: #ecfdf3; color: #166534; font-size: 14px; font-weight: 600; line-height: 1.45; }
.presu-hecho[hidden] { display: none; }
.presu-priv { margin: 14px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--gris); }

/* ── El móvil: una barra fija abajo con lo importante ── */
.barra-movil { display: none; }
@media (max-width: 760px) {
  .barra-movil { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; gap: 8px; padding: 8px; border-radius: 22px; background: rgba(7,10,18,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
  .barra-movil button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 48px; padding: 0 8px; border-radius: 16px; border: 0; font-weight: 800; font-size: 14px; white-space: nowrap; }
  .bm-ver { flex: 1; background: var(--azul); color: #fff; }
  .bm-presu { flex: 1; background: #fff; color: var(--tinta); }
  .en-peli .barra-movil, .presu-abierto .barra-movil { display: none; }
  .guia-lanzar { display: none !important; }
  .pie { padding-bottom: 110px; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .presu-caja { padding: 24px 18px; border-radius: 24px; }
  .presu-campos { grid-template-columns: 1fr; }
}
