/* FRAPA · Landing de expectativa
   Colores y tipografías tomados del manual de marca.
   Títulos: Montserrat Black (alternativa web a Gotham Black). Texto: Lato. */

:root {
  --ivory: #F5F2E9;      /* fondo marfil */
  --ink: #1B1B19;        /* negro de marca (texto) */
  --muted: #4A4A45;      /* texto de apoyo, contraste 7:1 sobre marfil */
  --green: #6BAD27;      /* verde FRAPA */
  --orange: #E9692E;     /* naranja FRAPA */
  --line: rgba(27, 27, 25, .16);
  --display: "Montserrat", "Gotham", "Helvetica Neue", Arial, sans-serif;
  --text: "Lato", "Helvetica Neue", Arial, sans-serif;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.55;
  padding: env(safe-area-inset-top, 0px) var(--gutter-r) env(safe-area-inset-bottom, 0px) var(--gutter);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--ivory); padding: 10px 14px; border-radius: 4px; z-index: 5; }
.skip:focus { top: 12px; }

/* Estructura */
.top, .stage, .close { width: 100%; max-width: 1120px; margin-inline: auto; }
.top { padding-block: 22px 8px; }
.brand { display: inline-block; }
.brand img { width: clamp(132px, 38vw, 190px); }

.stage { display: grid; gap: 26px; padding-block: 6px 34px; }

/* Tela */
.tela { margin: 0; display: grid; place-items: center; }
.tela svg { display: block; width: 100%; height: auto; max-width: min(440px, 46vh); max-width: min(440px, 46svh);
  transform-origin: 50% 100%;
  transform: perspective(1100px) rotateY(calc(var(--cx, 0) * 5deg)) rotateX(calc(var(--cy, 0) * -3deg)) skewX(calc(var(--cx, 0) * -1.2deg));
  will-change: transform; }

/* Texto */
h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 8.6vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.lead { margin: 16px 0 0; max-width: 34ch; font-size: clamp(1.05rem, 3.6vw, 1.25rem); color: var(--muted); }

/* Botones */
.actions { display: grid; gap: 12px; margin-top: 26px; }
.btn {
  display: flex; align-items: center; gap: 12px;
  min-height: 58px; padding: 0 20px;
  border-radius: 6px;
  color: var(--ink); text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: .95rem; letter-spacing: .01em;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn span:not(.sr) { flex: 1; }
.btn-ig { background: var(--orange); }
.btn-fb { background: var(--green); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(27, 27, 25, .16); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico.arrow { width: 18px; height: 18px; }

.note { margin: 16px 0 0; font-size: .95rem; color: var(--muted); }

/* Cierre */
.close { padding-block: 22px 40px; border-top: 1px solid var(--line); }
.rule { display: block; width: 64px; height: 4px; margin-bottom: 18px; background: linear-gradient(90deg, var(--green) 0 50%, var(--orange) 50% 100%); }
.close p { margin: 0; }
.close-1 { font-family: var(--display); font-weight: 900; font-size: clamp(1.25rem, 4.6vw, 1.7rem); letter-spacing: -.015em; }
.close-2 { margin-top: 6px; color: var(--muted); }

/* Aparición suave (opcional: la página funciona igual sin animación) */
@media (prefers-reduced-motion: no-preference) {
  .tela svg { animation: fade 1s ease both; }
  .copy > *, .close > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .copy > :nth-child(2) { animation-delay: .08s; }
  .copy > :nth-child(3) { animation-delay: .16s; }
  .copy > :nth-child(4) { animation-delay: .24s; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Celulares de pantalla corta (iPhone SE, Android pequeños): tela más baja
   para que al menos el botón de Instagram se vea sin desplazarse. */
@media (max-width: 899px) and (max-height: 700px) {
  .tela svg { max-width: min(440px, 34vh); max-width: min(440px, 34svh); }
  .stage { gap: 18px; }
  h1 { font-size: clamp(1.8rem, 8vw, 3.5rem); }
}

/* Tablet y escritorio */
@media (min-width: 640px) {
  .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .top { padding-block: 34px 10px; }
  .stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; padding-block: 24px 56px; min-height: 62vh; }
  .tela { order: 2; }
  .tela svg { max-width: none; }
  .copy { order: 1; }
  .actions { grid-template-columns: 1fr; max-width: 360px; }
  .close { padding-block: 26px 56px; }
}
