/* PAUTA — styles.css — violeta tinta + vainilla + coral. Jamás azules de plantilla (regla 12).
   Glassmorphism 3 capas + auroras + reduced-motion + tabulares (ESTANDAR-UI-UX-APP). */
:root {
  --noche: #170D28;         /* violeta noche: la base dark de venta */
  --noche-2: #241540;
  --noche-card: #1E1136;
  --tinta: #F7EFE2;         /* vainilla sobre dark: texto principal */
  --tinta-2: #4A2D6E;
  --vainilla: #FFF4E0;
  --vainilla-2: #F6E8D3;
  --coral: #FF6B4A;
  --coral-osc: #E8532F;
  --violeta-vivo: #C9A7F5;
  --ok: #4CD964;
  --error: #FF6B6B;
  --vidrio: rgba(30, 17, 54, 0.72);
  --vidrio-borde: rgba(255, 244, 224, 0.14);
  --sombra: 0 24px 70px rgba(0, 0, 0, 0.45);
  --glow: 0 10px 40px rgba(255, 107, 74, 0.45);
  --radio: 18px;
  --curva: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ===== TIPOGRAFÍA PROPIA (el fin del look-plantilla: Sora para voz, Inter para texto) ===== */
@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-latin-800-normal.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-variant-numeric: tabular-nums;
  background: var(--noche);
  color: var(--tinta);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .marca, .btn-venta, .titulo-venta, .titulo-seccion, .g-item strong, .est-nombre {
  font-family: "Sora", "Inter", system-ui, sans-serif;
}
.auroras { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.auroras .a1, .auroras .a2, .auroras .a3 { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.auroras .a1 { width: 640px; height: 640px; background: #6B3FA8; top: -200px; left: -160px; }
.auroras .a2 { width: 560px; height: 560px; background: #FF6B4A; top: 22%; right: -200px; opacity: 0.28; }
.auroras .a3 { width: 520px; height: 520px; background: #C9A7F5; bottom: -180px; left: 26%; opacity: 0.3; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .auroras .a1, .auroras .a2, .auroras .a3 { animation: none !important; }
  * { transition: none !important; }
}

/* topbar + vidrio (capa 1: fondo translúcido, capa 2: borde, capa 3: sombra) */
.glass {
  background: var(--vidrio);
  backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid var(--vidrio-borde);
  box-shadow: var(--sombra);
}
.topbar {
  position: sticky; top: 12px; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  margin: 12px clamp(12px, 4vw, 48px);
  padding: 10px 18px;
  border-radius: var(--radio);
}
.marca { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--tinta); text-decoration: none; }
.logo { width: 34px; height: 34px; }
.nav-desktop { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.nav-desktop a { color: var(--tinta); text-decoration: none; font-weight: 600; opacity: 0.82; }
.nav-desktop a:hover { opacity: 1; }
.btn-primario, .btn-ghost, .btn-chico {
  font: inherit; font-weight: 700; cursor: pointer;
  border-radius: 12px; border: none; transition: transform 0.15s var(--curva), box-shadow 0.15s var(--curva);
}
.btn-primario { background: var(--coral); color: #fff; padding: 11px 20px; box-shadow: 0 8px 22px rgba(255, 107, 74, 0.35); }
.btn-primario:hover { background: var(--coral-osc); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--tinta); padding: 10px 16px; border: 1.5px solid var(--vidrio-borde); }
.btn-ghost:hover { background: rgba(46, 26, 71, 0.06); }
.btn-chico { padding: 7px 12px; font-size: 0.85rem; }
.btn-grande { padding: 15px 26px; font-size: 1.08rem; }

/* ===== SISTEMA DE VENTA (el estándar apob aprendido: la muestra es la venta) ===== */
.btn-venta {
  font: inherit; font-weight: 800; letter-spacing: 0.04em; cursor: pointer;
  background: var(--coral); color: #fff; border: none; cursor: pointer;
  padding: 18px 34px; border-radius: 14px; font-size: 1.05rem;
  box-shadow: var(--glow); transition: transform 0.15s var(--curva), box-shadow 0.15s var(--curva);
}
.btn-venta:hover { background: var(--coral-osc); transform: translateY(-2px); box-shadow: 0 16px 50px rgba(255, 107, 74, 0.55); }
.hero-vende {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 30px; align-items: center;
  margin-top: 26px; padding: clamp(28px, 5vw, 60px);
  border-radius: calc(var(--radio) + 10px);
  background: linear-gradient(135deg, #2A1747 0%, #1B1030 55%, #301B52 100%);
  border: 1px solid var(--vidrio-borde);
  box-shadow: var(--sombra);
  overflow: hidden; position: relative;
}
.hero-vende::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,107,74,0.35), transparent 70%);
}
.hero-copy { position: relative; z-index: 1; }
.kicker-venta { color: var(--violeta-vivo); font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem; margin: 0 0 10px; }
.titulo-venta { font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.05; margin: 0 0 16px; font-weight: 900; }
.titulo-venta em { color: var(--coral); font-style: normal; }
.sub-venta { font-size: clamp(1rem, 2vw, 1.18rem); opacity: 0.92; max-width: 560px; }
.cta-venta { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; align-items: flex-start; }
.cta-micro { font-size: 0.86rem; opacity: 0.72; }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.chip-vidrio {
  padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 0.88rem;
  background: rgba(255, 244, 224, 0.08); border: 1px solid var(--vidrio-borde);
  backdrop-filter: blur(8px);
}
.hero-persona { position: relative; z-index: 1; border-radius: 20px; overflow: hidden; box-shadow: var(--sombra); border: 1px solid rgba(255, 244, 224, 0.18); }
.hero-persona svg { display: block; width: 100%; height: auto; }
.hero-persona::after {
  content: "7 posts por semana · la misma cara SIEMPRE"; position: absolute; bottom: 14px; left: 14px; right: 14px;
  padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 0.9rem; color: var(--tinta);
  background: rgba(23, 13, 40, 0.78); backdrop-filter: blur(10px); border: 1px solid var(--vidrio-borde); text-align: center;
}
.muestras { margin-top: 56px; }
.titulo-seccion { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 6px; }
.sub-seccion { opacity: 0.75; margin: 0 0 22px; }
.muro-muestras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.muestra-card { border-radius: 16px; overflow: hidden; border: 1px solid var(--vidrio-borde); background: var(--noche-card); box-shadow: var(--sombra); transition: transform 0.2s var(--curva); }
.muestra-card:hover { transform: translateY(-8px) scale(1.02); border-color: rgba(255, 107, 74, 0.5); }
.muestra-card svg { display: block; width: 100%; height: auto; }
.muestra-pie { padding: 10px 14px; font-weight: 700; font-size: 0.88rem; opacity: 1; color: #D8CCBC; }
.imperio { margin-top: 56px; }
.imperio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.imperio-card {
  border-radius: 18px; overflow: hidden; background: var(--noche-card);
  border: 1px solid var(--vidrio-borde); box-shadow: var(--sombra);
  animation: pauta-entrada 0.7s var(--curva) backwards;
}
.imperio-grid .imperio-card:nth-child(1) { animation-delay: 0.1s; }
.imperio-grid .imperio-card:nth-child(2) { animation-delay: 0.2s; }
.imperio-grid .imperio-card:nth-child(3) { animation-delay: 0.3s; }
.imperio-grid .imperio-card:nth-child(4) { animation-delay: 0.4s; }
.imperio-grid .imperio-card:nth-child(5) { animation-delay: 0.5s; }
.imperio-grid .imperio-card:nth-child(6) { animation-delay: 0.6s; }
.imperio-card:hover { border-color: rgba(255, 107, 74, 0.5); transform: translateY(-6px); }
.imperio-marca { padding: 14px 18px; font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.02rem; color: var(--vainilla); background: rgba(201, 167, 245, 0.1); border-bottom: 1px solid var(--vidrio-borde); }
.imperio-visuales { display: grid; grid-template-columns: 1fr 1fr; }
.imperio-visuales svg { display: block; width: 100%; height: auto; }
.imperio-visuales svg + svg { border-left: 1px solid var(--vidrio-borde); }
.imperio-pie { padding: 12px 18px; font-size: 0.88rem; color: #D8CCBC; }
.imperio-pie strong { color: var(--vainilla); }
.como-vende { display: grid; gap: 26px; margin-top: 56px; }
.bloque-vende {
  display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: center;
  padding: 26px; border-radius: calc(var(--radio) + 6px);
  background: var(--noche-card); border: 1px solid var(--vidrio-borde);
}
.bloque-vende.invertido { grid-template-columns: 1fr 300px; }
.bloque-vende.invertido .bv-visual { order: 2; }
.bloque-vende.invertido .bv-copy { order: 1; }
.bv-visual { border-radius: 14px; overflow: hidden; border: 1px solid var(--vidrio-borde); }
.bv-visual svg { display: block; width: 100%; height: auto; }
.bv-copy h3 { font-size: 1.35rem; margin: 0 0 8px; }
.bv-copy p { opacity: 0.85; margin: 0; }
.garantias { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px; }
.g-item {
  padding: 22px 20px; border-radius: 16px; text-align: center;
  background: linear-gradient(160deg, rgba(201,167,245,0.12), rgba(255,107,74,0.08));
  border: 1px solid var(--vidrio-borde);
}
.g-item strong { display: block; font-size: 1.9rem; color: var(--coral); font-weight: 900; }
.g-item span { opacity: 0.8; font-size: 0.9rem; }
.cta-final { text-align: center; margin: 64px 0 30px; padding: 44px 24px; border-radius: calc(var(--radio) + 10px); background: linear-gradient(135deg, #301B52, #1B1030); border: 1px solid var(--vidrio-borde); }
.cta-final h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin: 0 0 20px; }
.cta-final .btn-venta { font-size: 1.15rem; padding: 20px 44px; }

/* ===== CONTRASTE REAL (el dueño lo marcó: gris-apagado sobre dark no se lee) ===== */
.sub-venta, .bv-copy p, .sub-seccion, .plan-features li, .nota-legal, .pie { opacity: 1; color: #E8DCC8; }
.cta-micro { opacity: 1; color: #B8A8D8; }
.g-item span, .muestra-pie, .est-bio { opacity: 1; color: #D8CCBC; }
.sub-vista, .post-tags { opacity: 1; color: #C8BCD8; }
.kicker-venta { color: #D8BFFF; }
.sub-venta strong, .bv-copy h3, .titulo-seccion, .cta-final h2 { color: var(--vainilla); }

/* ===== ANIMACIÓN (la vida — curva propia de la casa, reduced-motion respeta todo) ===== */
@keyframes pauta-entrada {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pauta-flotar {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}
@keyframes pauta-aurora {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 24px) scale(0.95); }
}
@keyframes pauta-brillo {
  0%, 100% { box-shadow: var(--glow); }
  50% { box-shadow: 0 10px 44px rgba(255, 107, 74, 0.62); }
}
@keyframes pauta-tipeo {
  from { width: 0; }
}
.hero-vende .kicker-venta { animation: pauta-entrada 0.55s var(--curva) 0.05s backwards; }
.hero-vende .titulo-venta { animation: pauta-entrada 0.6s var(--curva) 0.15s backwards; }
.hero-vende .sub-venta { animation: pauta-entrada 0.6s var(--curva) 0.28s backwards; }
.hero-vende .cta-venta { animation: pauta-entrada 0.6s var(--curva) 0.4s backwards; }
.hero-vende .cta-micro { animation: pauta-entrada 0.6s var(--curva) 0.5s backwards; }
.hero-vende .hero-chips { animation: pauta-entrada 0.6s var(--curva) 0.6s backwards; }
.hero-vende .hero-chips .chip-vidrio:nth-child(1) { animation: pauta-entrada 0.5s var(--curva) 0.65s backwards; }
.hero-vende .hero-chips .chip-vidrio:nth-child(2) { animation: pauta-entrada 0.5s var(--curva) 0.75s backwards; }
.hero-vende .hero-chips .chip-vidrio:nth-child(3) { animation: pauta-entrada 0.5s var(--curva) 0.85s backwards; }
.hero-persona { animation: pauta-entrada 0.7s var(--curva) 0.3s backwards, pauta-flotar 7s ease-in-out 1.2s infinite; }
.btn-venta { animation: pauta-brillo 3.2s ease-in-out 1.6s infinite; }
.auroras .a1 { animation: pauta-aurora 26s ease-in-out infinite; }
.auroras .a2 { animation: pauta-aurora 34s ease-in-out infinite reverse; }
.auroras .a3 { animation: pauta-aurora 42s ease-in-out infinite; }
.muestra-card { animation: pauta-entrada 0.6s var(--curva) backwards; }
.muro-muestras .muestra-card:nth-child(1) { animation-delay: 0.1s; }
.muro-muestras .muestra-card:nth-child(2) { animation-delay: 0.25s; }
.muro-muestras .muestra-card:nth-child(3) { animation-delay: 0.4s; }
.muro-muestras .muestra-card:nth-child(4) { animation-delay: 0.55s; }
.muestra-card:hover { transform: translateY(-8px) scale(1.02); border-color: rgba(255, 107, 74, 0.5); }
.bloque-vende, .g-item, .cta-final { animation: pauta-entrada 0.7s var(--curva) backwards; }
.bloque-vende:nth-of-type(1) { animation-delay: 0.15s; }
.bloque-vende:nth-of-type(2) { animation-delay: 0.3s; }
.bloque-vende:nth-of-type(3) { animation-delay: 0.45s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* wizard */
.tarjeta-wizard { max-width: 640px; margin: 26px auto; border-radius: calc(var(--radio) + 4px); padding: 28px 30px 22px; }
.wizard-progreso { height: 8px; border-radius: 4px; background: rgba(46, 26, 71, 0.1); overflow: hidden; margin-bottom: 18px; }
.wizard-progreso span { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, var(--coral), #C9A7F5); transition: width 0.3s var(--curva); }
.wiz-campo { margin: 16px 0; }
.wiz-campo label { font-weight: 700; display: block; margin-bottom: 6px; }
.wiz-campo input, .wiz-campo select {
  width: 100%; font: inherit; padding: 13px 16px; border-radius: 12px;
  border: 1.5px solid var(--vidrio-borde); background: var(--noche-card); color: var(--vainilla);
}
.wiz-campo input::placeholder { color: #9D8FB8; }
.wiz-campo input:focus, .wiz-campo select:focus { outline: 2px solid var(--coral); border-color: transparent; }
.wiz-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.wiz-chip {
  font: inherit; cursor: pointer; padding: 12px 20px; border-radius: 16px;
  border: 1.5px solid var(--vidrio-borde); background: var(--noche-card); color: var(--tinta);
  font-weight: 700; display: inline-flex; align-items: center; gap: 10px;
  transition: transform 0.15s var(--curva), border-color 0.15s var(--curva), background 0.15s var(--curva), box-shadow 0.15s var(--curva);
}
.wiz-chip:hover { transform: translateY(-2px); border-color: var(--coral); }
.wiz-chip[aria-pressed="true"] { background: var(--coral); color: #fff; border-color: var(--coral); box-shadow: var(--glow); }
.wiz-chip .chip-ejemplo { font-weight: 500; font-size: 0.85rem; opacity: 1; color: #D8BFFF; }
.wiz-chip[aria-pressed="true"] .chip-ejemplo { color: #FFE0D4; }
.wizard-nav { display: flex; justify-content: space-between; margin-top: 22px; gap: 12px; }
.wiz-error { color: var(--error); font-weight: 600; min-height: 1.2em; margin: 10px 0 0; }

/* estudio */
.est-bio { opacity: 0.8; margin-top: -6px; }
.est-grid { display: grid; grid-template-columns: 240px 1fr; gap: 22px; margin-top: 20px; }
.est-cara { border-radius: var(--radio); padding: 22px; text-align: center; }
.est-cara svg { width: 100%; border-radius: 12px; }
.est-nombre { font-weight: 800; font-size: 1.2rem; margin: 12px 0 10px; }
.est-semana { display: grid; gap: 12px; }
.post-card { border-radius: 14px; padding: 16px 18px; background: var(--noche-card); border: 1px solid var(--vidrio-borde); display: grid; gap: 8px; }
.post-cabecera { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.post-fecha { font-weight: 800; }
.chip-tipo { padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; color: #fff; }
.chip-tipo.PROMO { background: var(--coral); }
.chip-tipo.PRODUCTO { background: #B45309; }
.chip-tipo.CASA { background: var(--tinta-2); }
.chip-tipo.FONDO { background: #6D4A9E; }
.chip-tipo.FECHA { background: var(--ok); }
.chip-plataforma { padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; border: 1.5px solid var(--vidrio-borde); }
.post-texto { margin: 0; white-space: pre-line; }
.post-tags { opacity: 0.65; font-size: 0.85rem; }
.post-tags b { color: var(--coral); }
.post-acciones { display: flex; gap: 8px; flex-wrap: wrap; }
.post-estado { margin-left: auto; font-weight: 800; font-size: 0.85rem; }
.post-estado.APROBADO { color: var(--ok); }
.post-estado.DESCARTADO { color: var(--error); opacity: 0.75; text-decoration: line-through; }

/* banco / planes / pie / toasts / modal */
.sub-vista { opacity: 0.78; margin-top: -6px; }
.banco-item { border-radius: 14px; padding: 14px 18px; background: var(--noche-card); border: 1px solid var(--vidrio-borde); margin-bottom: 10px; }
.planes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 18px; }
.plan-card { border-radius: var(--radio); padding: 22px 24px; position: relative; }
.plan-card.destacado { border: 2px solid var(--coral); }
.plan-precio { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.plan-precio small { font-size: 1rem; font-weight: 600; opacity: 0.7; }
.plan-features { margin: 12px 0 18px; padding-left: 20px; }
.plan-features li { margin: 4px 0; }
.plan-cobro-aviso { font-size: 0.85rem; opacity: 0.75; }
.nota-legal { font-size: 0.85rem; opacity: 0.7; }
.pie { border-radius: var(--radio); margin: 0 clamp(12px, 4vw, 48px) 24px; padding: 18px 24px; font-size: 0.92rem; }
.pie-red { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pie-red a { color: var(--tinta); font-weight: 700; }
.pie-ref { opacity: 0.6; font-size: 0.8rem; }
.pie-legal { margin-top: 10px; opacity: 0.75; display: flex; gap: 12px; flex-wrap: wrap; }
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { border-radius: 12px; padding: 12px 16px; color: #fff; font-weight: 600; box-shadow: var(--sombra); animation: toast-in 0.25s var(--curva); }
.toast.ok { background: var(--ok); }
.toast.error { background: var(--error); }
.toast.info { background: var(--tinta); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.modal-fondo { position: fixed; inset: 0; z-index: 70; background: rgba(46, 26, 71, 0.45); display: grid; place-items: center; padding: 16px; }
.modal { max-width: 480px; width: 100%; border-radius: calc(var(--radio) + 4px); padding: 26px 28px; position: relative; }
.modal-cerrar { position: absolute; top: 12px; right: 14px; font: inherit; font-weight: 800; cursor: pointer; background: none; border: none; color: var(--tinta); opacity: 0.6; padding: 6px; }
.modal-cerrar:hover { opacity: 1; }
[hidden] { display: none !important; }

/* móvil */
@media (max-width: 900px) {
  .muro-muestras { grid-template-columns: repeat(2, 1fr); }
  .garantias { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-desktop a { display: none; }
  .hero-vende { grid-template-columns: 1fr; }
  .hero-persona { max-width: 340px; margin: 0 auto; }
  .est-grid { grid-template-columns: 1fr; }
  .bloque-vende, .bloque-vende.invertido { grid-template-columns: 1fr; }
  .bloque-vende.invertido .bv-visual { order: 0; }
  .bloque-vende.invertido .bv-copy { order: 1; }
  .confianza { grid-template-columns: 1fr; }
  .hero-cta { justify-content: center; }
}
