/* Landing de Emet Alpha. Página estática: sin framework ni dependencias.
   Mismos colores y letras que la app: dorado #cba51e, negro #0c0c0c, Oswald fina para títulos y Jost para texto.
   Formas: botones en píldora, tarjetas y teléfonos con esquinas grandes. */

@font-face { font-family: "Oswald"; font-weight: 300; font-style: normal; font-display: swap; src: url("/fuentes/oswald-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fuentes/oswald-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fuentes/oswald-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fuentes/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fuentes/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fuentes/jost-latin-600-normal.woff2") format("woff2"); }

:root {
  --ink: #0c0c0c;
  --ink-2: #151412;
  --ink-3: #1d1b17;
  --texto: #f2eee3;
  --suave: #a9a496;
  --linea: rgb(255 255 255 / 0.1);
  --oro: #cba51e;
  --oro-claro: #dcc36e;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --sans: "Jost", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --nav: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav) + 16px);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  color: var(--texto);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, a, summary { touch-action: manipulation; }

/* Grano sobre toda la página: capa fija que no recibe toques (no se pinta en el contenido que se desplaza). */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.ico { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

:where(a, summary, button):focus-visible { outline: 2px solid var(--oro-claro); outline-offset: 3px; border-radius: 8px; }

.saltar {
  position: absolute; left: 12px; top: -60px; z-index: 60;
  background: var(--oro); color: var(--ink); padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.saltar:focus { top: 12px; }

/* ── Botones ─────────────────────────────────────────────── */
.boton {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  height: 52px; padding-inline: 32px; border-radius: 999px;
  background: var(--oro); color: var(--ink);
  font-family: var(--display); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.3s var(--ease), opacity 0.12s;
}
.boton:active { transform: scale(0.97); opacity: 0.85; }
.boton-chico { height: 40px; padding-inline: 20px; font-size: 0.75rem; letter-spacing: 0.16em; }
.boton-grande { height: 60px; padding-inline: 44px; font-size: 0.9375rem; }
@media (hover: hover) and (pointer: fine) {
  .boton:hover { background: var(--oro-claro); transform: translateY(-1px); box-shadow: 0 14px 34px -12px rgb(203 165 30 / 0.6); }
  .boton:active { transform: scale(0.97); }
}

.enlace-flecha .ico { transition: transform 0.3s var(--ease); }
.enlace-flecha {
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px;
  color: var(--texto); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid transparent; transition: color 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .enlace-flecha:hover { color: var(--oro-claro); }
  .enlace-flecha:hover .ico { transform: translate(3px, 3px); }
}

/* ── Barra superior ──────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav);
  background: rgb(12 12 12 / 0);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.nav.baja { background: rgb(12 12 12 / 0.82); border-bottom-color: var(--linea); }
.tope { position: absolute; top: 0; left: 0; width: 1px; height: 120px; pointer-events: none; }
.nav-fila { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.marca { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.marca img { width: auto; height: 26px; }
.marca span { font-family: var(--display); font-weight: 400; font-size: 0.9375rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--oro-claro); }
.nav-enlaces { display: none; gap: 32px; }
.nav-enlaces a {
  position: relative; color: var(--suave); text-decoration: none; font-size: 0.9375rem; transition: color 0.2s;
}
.nav-enlaces a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--oro-claro);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav-acciones { display: flex; align-items: center; gap: 20px; }
.entrar { display: none; color: var(--suave); text-decoration: none; font-size: 0.9375rem; }
@media (hover: hover) and (pointer: fine) {
  .nav-enlaces a:hover, .entrar:hover { color: var(--texto); }
  .nav-enlaces a:hover::after { transform: scaleX(1); }
}
@media (min-width: 760px) { .nav-enlaces { display: flex; } .entrar { display: inline; } }

/* ── Portada ─────────────────────────────────────────────── */
.portada {
  position: relative; overflow: clip;
  background:
    radial-gradient(55% 80% at 85% 30%, rgb(203 165 30 / 0.17), transparent 70%),
    radial-gradient(40% 60% at 0% 110%, rgb(203 165 30 / 0.08), transparent 70%);
}
.portada-rejilla { display: grid; gap: 48px; padding-block: 40px 72px; align-items: center; }
.portada h1 {
  font-family: var(--display); font-weight: 300; line-height: 1.04;
  font-size: clamp(2.6rem, 9.4vw, 3.6rem); letter-spacing: -0.005em; text-wrap: balance;
}
.portada h1 em { font-style: normal; color: var(--oro-claro); }
.portada-sub { margin-top: 24px; max-width: 34ch; font-size: 1.1875rem; color: var(--suave); }
.portada-botones { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }

.portada-visual { position: relative; display: grid; justify-items: center; padding-top: 8px; }
.portada-visual figcaption { margin-top: 20px; font-size: 0.9375rem; color: var(--suave); }
.halo {
  position: absolute; inset: 4% 0 10%; z-index: 0;
  background: radial-gradient(closest-side, rgb(203 165 30 / 0.22), transparent);
}

/* Teléfono: marco con la captura real de la app. La proporción es la de la pantalla (390x844) para que no salte al cargar. */
.tel {
  position: relative; z-index: 1; width: min(272px, 74vw);
  padding: 9px; border-radius: 44px;
  background: #1a1916; border: 1px solid rgb(255 255 255 / 0.16);
  box-shadow: 0 50px 80px -40px rgb(203 165 30 / 0.28), 0 30px 60px -30px rgb(0 0 0 / 0.9);
}
.tel-pantalla { aspect-ratio: 390 / 844; border-radius: 36px; overflow: hidden; background: #0c0c0c; }
.tel-pantalla img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tel-celda .tel-pantalla img { height: 124%; }
.hoja-hero { display: none; }

@media (min-width: 900px) {
  .portada-rejilla { grid-template-columns: 1.05fr 0.95fr; gap: 24px; padding-block: 56px 96px; min-height: calc(100svh - var(--nav)); }
  .portada h1 { font-size: clamp(3.4rem, 5.6vw, 5.1rem); }
  .portada-visual { min-height: 600px; align-content: center; justify-items: center; }
  .tel-grande { width: 290px; }
  .portada-visual figcaption { position: relative; z-index: 1; }
}

@media (min-width: 1100px) {
  .portada-visual { justify-items: start; padding-left: 4%; }
  .hoja-hero { display: block; position: absolute; z-index: 1; width: clamp(250px, 21vw, 350px); right: -5%; bottom: 3%; transform: rotate(5deg); }
  .hoja-hero img {
    display: block; width: 100%; height: auto; border-radius: 4px; background: #fff;
    box-shadow: 0 50px 80px -34px rgb(203 165 30 / 0.3), 0 30px 60px -30px rgb(0 0 0 / 0.9), 0 0 0 1px rgb(255 255 255 / 0.14);
  }
}

/* ── Secciones ───────────────────────────────────────────── */
.seccion { padding-block: clamp(72px, 11vw, 144px); }
.seccion-alt { background: rgb(255 255 255 / 0.03); border-block: 1px solid var(--linea); }
h2 {
  font-family: var(--display); font-weight: 300; line-height: 1.08;
  font-size: clamp(2rem, 5.2vw, 3.5rem); text-wrap: balance;
}
h3 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1.2; letter-spacing: 0.01em; }
.titulo-seccion { max-width: 22ch; }
.parrafo-ancho { margin-top: 20px; max-width: 56ch; color: var(--suave); font-size: 1.125rem; }

/* Qué incluye: 6 celdas, 6 contenidos */
.bento { display: grid; gap: 16px; margin-top: 56px; }
.celda {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px;
  padding: 28px; border-radius: 28px; background: var(--ink-3); border: 1px solid var(--linea);
  transition: translate 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.celda > * { position: relative; }
.celda p { color: var(--suave); max-width: 44ch; }
.celda-icono { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgb(203 165 30 / 0.12); color: var(--oro-claro); font-size: 1.375rem; }
.celda h3 { margin-top: 8px; }

.celda-precios { background: linear-gradient(150deg, #dcc36e 0%, #cba51e 55%, #a98613 100%); border-color: transparent; color: var(--ink); }
.celda-precios p { color: rgb(12 12 12 / 0.82); }
.celda-precios .celda-icono { background: rgb(12 12 12 / 0.12); color: var(--ink); }

.celda-voz { background: radial-gradient(120% 100% at 100% 0%, rgb(203 165 30 / 0.16), transparent 60%), var(--ink-3); }
.celda-clientes { background: linear-gradient(180deg, var(--ink-3), #12110f); }
.celda-instalar {
  background:
    repeating-linear-gradient(135deg, rgb(255 255 255 / 0.035) 0 1px, transparent 1px 14px),
    var(--ink-3);
}

.celda-enlace { padding-bottom: 0; }
.celda-captura { margin: 8px -12px 0; display: flex; justify-content: center; max-height: 260px; overflow: hidden; }
.tel-celda { width: 232px; flex: none; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }
.tel-celda .tel-pantalla { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .celda { padding: 36px; }
  .celda-voz { grid-column: span 2; }
  .celda-precios { grid-column: span 4; justify-content: flex-end; min-height: 300px; }
  .celda-precios h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
  .celda-enlace { grid-column: span 4; flex-direction: row; align-items: stretch; justify-content: space-between; gap: 24px; padding-bottom: 0; }
  .celda-enlace .celda-texto { display: flex; flex-direction: column; gap: 12px; padding-bottom: 36px; flex: 1 1 0; }
  .celda-captura { margin: 0; align-items: flex-start; flex: 0 0 232px; max-height: 300px; overflow: hidden; }
  .celda-pdf { grid-column: span 2; }
  .celda-clientes, .celda-instalar { grid-column: span 3; }
}

/* Oficios */
.oficios { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 12px; }
.oficios li {
  padding: 12px 26px; border-radius: 999px; border: 1px solid var(--linea);
  font-family: var(--display); font-weight: 300; font-size: clamp(1.125rem, 2.4vw, 1.5rem); letter-spacing: 0.01em;
  transition: border-color 0.2s, color 0.2s;
}
.oficios .oficio-otro { border-color: rgb(203 165 30 / 0.55); color: var(--oro-claro); }
@media (hover: hover) and (pointer: fine) {
  .oficios li:hover { border-color: rgb(203 165 30 / 0.55); color: var(--oro-claro); }
}

/* Tú decides */
.afirmaciones { margin-top: 48px; display: grid; }
.afirmacion { position: relative; display: grid; gap: 10px; padding-block: 32px; }
.afirmacion::before, .afirmacion:last-child::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--linea); transform-origin: left;
}
.afirmacion::before { top: 0; }
.afirmacion:last-child::after { bottom: 0; }
.afirmacion h3 { font-size: clamp(1.4rem, 3vw, 1.875rem); font-weight: 300; }
.afirmacion p { color: var(--suave); max-width: 46ch; }
@media (min-width: 900px) {
  .afirmacion { grid-template-columns: 1fr 1fr; gap: 48px; align-items: baseline; padding-block: 40px; }
}

/* Preguntas */
.preguntas-rejilla { display: grid; gap: 40px; }
.faq details { border-bottom: 1px solid var(--linea); }
.faq details:first-child { border-top: 1px solid var(--linea); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding-block: 18px;
  cursor: pointer; list-style: none; font-weight: 500; font-size: 1.125rem; -webkit-user-select: none; user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px; margin-right: 4px;
  background:
    linear-gradient(var(--oro-claro), var(--oro-claro)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--oro-claro), var(--oro-claro)) center / 1.5px 100% no-repeat;
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 24px; max-width: 62ch; color: var(--suave); animation: abrir 0.3s var(--ease) both; }
.faq p a { color: var(--oro-claro); }
@keyframes abrir { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) { .preguntas-rejilla { grid-template-columns: 4fr 8fr; gap: 80px; align-items: start; } .preguntas-rejilla h2 { position: sticky; top: calc(var(--nav) + 40px); } }

/* Invitación */
.invitacion {
  position: relative; overflow: clip; text-align: center;
  padding-block: clamp(88px, 13vw, 168px);
  border-top: 1px solid var(--linea);
}
.invitacion::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 90% at 50% 120%, rgb(203 165 30 / 0.22), transparent 70%);
}
.invitacion-cuerpo { position: relative; }
.invitacion-cuerpo { display: grid; justify-items: center; gap: 20px; }
.invitacion h2 { font-size: clamp(2.4rem, 7vw, 4.75rem); }
.invitacion-cuerpo > p { max-width: 36ch; color: var(--suave); font-size: 1.1875rem; }
.invitacion-cuerpo > div { margin-top: 16px; }
.invitacion-nota { font-size: 1rem !important; }
.invitacion-nota a { color: var(--oro-claro); }
.invitacion-correo { font-size: 1rem !important; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; }
.invitacion-correo a { color: var(--texto); text-underline-offset: 3px; }
.copiar {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgb(203 165 30 / 0.5); background: transparent; color: var(--oro-claro);
  font: inherit; font-size: 0.9375rem; cursor: pointer; transition: background-color 0.2s, border-color 0.2s;
}
@media (hover: hover) and (pointer: fine) { .copiar:hover { background: rgb(203 165 30 / 0.12); border-color: var(--oro-claro); } }

/* Pie */
.pie { border-top: 1px solid var(--linea); padding-block: 40px calc(40px + env(safe-area-inset-bottom)); }
.pie-fila { display: grid; gap: 24px; justify-items: start; }
.pie-enlaces { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.pie-enlaces a { color: var(--suave); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.pie-nota { color: var(--suave); font-size: 0.875rem; max-width: 52ch; }
@media (hover: hover) and (pointer: fine) { .pie-enlaces a:hover { color: var(--texto); } }
@media (min-width: 900px) {
  .pie-fila { grid-template-columns: auto 1fr; align-items: center; }
  .pie-enlaces { justify-self: end; }
  .pie-nota { grid-column: 1 / -1; }
}

