/* La mayor parte del estilo va en línea en index.html (viene tal cual del diseño).
   Aquí solo está lo que no puede ir en línea: tipografías, animación, ventanas legales y formulario. */

/* Tipografías (licencia OFL), servidas desde aquí */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cal Sans";
  src: url("assets/cal-sans-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
a { color: #2E4D8F; }
a:hover { color: #1F3A70; }

:focus-visible { outline: 3px solid #6FA8FF; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Maquetas de pantallas del producto y saltos para pantallas estrechas (vienen del diseño) */
body > div { overflow-x: clip; }
.v3-m { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.v3-lbl {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #6B655C;
  text-transform: uppercase;
}
.v3-dots {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
}
.v3-app {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(7, 20, 43, 0.22), 0 0 0 1px rgba(7, 20, 43, 0.08);
}
.v3-shotwrap { flex: 0 0 680px; min-width: 0; }
.v3-shot { width: 680px; position: relative; }
.v3-burger { display: none !important; }
[hidden] { display: none !important; }
@media (max-width: 760px) {
  .v3-burger { display: flex !important; }
  .v3-navavisa { display: none !important; }
  .v3-shotwrap { flex: 1 1 100%; }
  .v3-shot { zoom: 0.5; }
  .v3-navlinks { display: none !important; }
  .v3-nav { padding: 18px 20px !important; }
  .v3-hero { padding: 24px 20px 64px !important; gap: 40px !important; }
  .v3-h1 { font-size: 42px !important; }
  .v3-sec { padding: 64px 20px !important; gap: 36px !important; }
  .v3-h2 { font-size: 30px !important; }
  .v3-acc { padding: 28px !important; gap: 24px !important; }
  .v3-fecha { font-size: 56px !important; }
}
@media (max-width: 380px) {
  .v3-shot { zoom: 0.4; }
}

/* Formulario de aviso */
.trampa {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.enlace-claro {
  padding: 0;
  border: 0;
  background: none;
  color: #FFFFFF;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
#aviso-enviar[disabled] { opacity: 0.6; cursor: default; }

/* Ventanas de los textos legales */
.legal {
  box-sizing: border-box;
  width: calc(100% - 48px);
  max-width: 880px;
  max-height: 80vh;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #FFFFFF;
  color: #14181F;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  box-shadow: 0 24px 64px rgba(6, 18, 38, 0.35);
}
.legal[open] { display: flex; flex-direction: column; }
.legal::backdrop { background: rgba(6, 18, 38, 0.72); }
.legal-cabecera {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
  border-bottom: 1px solid #E7E3DB;
}
.legal-cabecera h2 { margin: 0; font-size: 22px; font-weight: 800; }
.legal-cerrar {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #2E4D8F;
  border-radius: 8px;
  background: #FFFFFF;
  color: #2E4D8F;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.legal-cuerpo {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 28px 28px;
  font-size: 14px;
  line-height: 1.5;
  color: #4E4A44;
}
