/* AntojoStudio · web
   Estudio de IA: negro de cine, la comida a pantalla completa, una barra de prompt al centro.
   Un solo color propio: la brasa (naranja de parrilla), solo en el botón de crear y en lo destacado. */
:root {
  --negro: #000;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-2: rgba(255, 255, 255, 0.08);
  --linea: rgba(255, 255, 255, 0.12);
  --linea-fuerte: rgba(255, 255, 255, 0.22);
  --texto: #F7F7F5;
  --suave: #A3A3A0;
  --brasa: #FF6A1F;
  --brasa-2: #FFB23F;
  --f: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--negro); color: var(--texto); font: 400 16px/1.55 var(--f); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--brasa-2); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Navegación ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 14px var(--gutter); background: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.marca { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.marca-punto { width: 20px; height: 20px; filter: drop-shadow(0 0 10px rgba(255, 106, 31, 0.5)); }
.nav-links { display: none; gap: 22px; font-size: 14px; color: var(--suave); }
.nav-links a:hover { color: var(--texto); }
.nav-acc { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 14px; }
.nav-entrar { color: var(--suave); }
.btn-blanco { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--texto); color: #000; font-weight: 600; font-size: 14px; white-space: nowrap; }
.btn-blanco:hover { background: #fff; }
.btn-blanco.grande { height: 52px; padding: 0 28px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 96px var(--gutter) 56px; overflow: hidden; isolation: isolate; }
.muro { position: absolute; inset: -10% -6% -30%; z-index: -2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; transform: rotate(-4deg) scale(1.12); filter: blur(14px) saturate(1.15); }
.col { display: flex; flex-direction: column; gap: 10px; }
.col:nth-child(even) { margin-top: -18%; }
.col video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; background: #111; filter: brightness(0.95); }
.col-ancha { display: none; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 70% 55% at 50% 52%, rgba(0,0,0,0.72), rgba(0,0,0,0.38) 60%, rgba(0,0,0,0.12)),
  linear-gradient(rgba(0,0,0,0.5), transparent 22%, transparent 84%, #000); }
@media (prefers-reduced-motion: no-preference) {
  .col { animation: subir 26s ease-in-out infinite alternate; }
  .col:nth-child(even) { animation-name: bajar; }
  @keyframes subir { to { transform: translateY(-9%); } }
  @keyframes bajar { to { transform: translateY(9%); } }
}
.hero-centro { width: 100%; max-width: 760px; text-align: center; display: grid; justify-items: center; }
.hero h1 { margin: 0; font-weight: 600; font-size: clamp(42px, 11vw, 84px); line-height: 0.98; letter-spacing: -0.045em; text-wrap: balance; }
.hero-sub { margin: 18px 0 30px; color: #CFCFCB; font-size: 17px; max-width: 34rem; text-wrap: pretty; }

/* Barra de prompt */
.prompt { width: 100%; text-align: left; background: rgba(20, 20, 20, 0.72); border: 1px solid var(--linea-fuerte); border-radius: 22px; padding: 14px 14px 12px; backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.06); }
.prompt:focus-within { border-color: rgba(255, 178, 63, 0.55); }
.prompt textarea { width: 100%; border: 0; background: transparent; color: var(--texto); font: 400 17px/1.45 var(--f); resize: none; padding: 4px 6px 10px; }
.prompt textarea::placeholder { color: #8A8A86; }
.prompt textarea:focus { outline: none; }
.prompt-fila { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prompt-ops { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.op { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--linea); font-size: 13px; color: #D8D8D4; white-space: nowrap; }
.op svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.op:nth-child(n+2) { display: none; }
.generar { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer; font: 600 15px var(--f); color: #1A0A00;
  background: linear-gradient(135deg, var(--brasa-2), var(--brasa)); box-shadow: 0 0 0 1px rgba(255,255,255,0.15) inset, 0 8px 30px rgba(255, 106, 31, 0.45); }
.generar svg { width: 16px; height: 16px; fill: currentColor; }
.generar:hover { filter: brightness(1.06); }
.hero-nota { margin: 16px 0 0; font-size: 13px; color: var(--suave); }

/* ---------- Secciones ---------- */
.sec { padding: 72px var(--gutter); max-width: 1240px; margin: 0 auto; }
.sec-cab { margin-bottom: 28px; max-width: 40rem; }
.sec h2, .cierre h2 { margin: 0 0 10px; font-weight: 600; font-size: clamp(30px, 6.5vw, 46px); letter-spacing: -0.035em; line-height: 1.05; }
.sec-cab p { margin: 0; color: var(--suave); }

/* Herramientas */
.herramientas { list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 320px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.herramientas::-webkit-scrollbar { display: none; }
.her { scroll-snap-align: start; }
.her { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--linea); background: #0A0A0A; min-height: 420px; display: flex; align-items: flex-end; }
.her video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.82; transition: opacity 0.3s, transform 0.6s; }
.her::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0,0,0,0.92)); }
.her-txt { position: relative; z-index: 1; padding: 20px; }
.her h3 { margin: 0 0 6px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.her p { margin: 0; color: #CFCFCB; font-size: 15px; line-height: 1.5; }
.her:hover video { opacity: 1; transform: scale(1.03); }

/* Comparador */
.comparar { display: grid; gap: 4px; }
.comparador { position: relative; width: min(360px, 100%); aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; border: 1px solid var(--linea-fuerte); background: #111; margin: 0 auto; box-shadow: 0 40px 100px rgba(255, 106, 31, 0.12); }
.comparador video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-despues { clip-path: inset(0 0 0 var(--corte)); }
.c-linea { position: absolute; top: 0; bottom: 0; left: var(--corte); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; box-shadow: 0 0 12px rgba(0,0,0,0.5); }
.c-mango { position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: rgba(255,255,255,0.92); box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
.c-mango::before, .c-mango::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -5px; border: 5px solid transparent; }
.c-mango::before { left: 7px; border-right-color: #000; }
.c-mango::after { right: 7px; border-left-color: #000; }
.c-tag { position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none; }
.c-tag-a { left: 12px; }
.c-tag-d { right: 12px; color: var(--brasa-2); }
.comparador input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
.comparador:focus-within { outline: 2px solid var(--brasa-2); outline-offset: 4px; }

/* Galería */
.galeria { columns: 2; column-gap: 10px; }
.g { position: relative; margin: 0 0 10px; break-inside: avoid; border-radius: 14px; overflow: hidden; background: #111; }
.g video { width: 100%; aspect-ratio: 9 / 13; object-fit: cover; }
.g.alto video { aspect-ratio: 9 / 16; }
.g figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 12px 11px; font-size: 13px; font-weight: 500; background: linear-gradient(transparent, rgba(0,0,0,0.85)); opacity: 0.95; }
.nota-galeria { margin: 14px 0 0; font-size: 13px; color: var(--suave); }

/* Expertos */
.modelos { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linea); }
.modelos li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 18px 0; border-bottom: 1px solid var(--linea); }
.m-nombre { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.m-para { justify-self: end; align-self: center; font-size: 13px; color: var(--brasa-2); border: 1px solid rgba(255, 178, 63, 0.35); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.m-desc { grid-column: 1 / -1; color: var(--suave); font-size: 15px; }

/* Precios */
.planes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.plan { border: 1px solid var(--linea); border-radius: 18px; padding: 18px 16px; background: var(--panel); }
.plan h3 { margin: 0 0 14px; font-size: 15px; font-weight: 500; color: var(--suave); }
.p-precio { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.p-cred { margin: 2px 0 10px; font-size: 14px; }
.p-para { margin: 0; font-size: 13px; color: var(--suave); }
.plan.destacado { border-color: rgba(255, 106, 31, 0.6); background: linear-gradient(160deg, rgba(255, 106, 31, 0.16), rgba(255, 106, 31, 0.02) 60%); }
.plan.destacado h3 { color: var(--brasa-2); }
.gasto { max-width: 560px; border: 1px solid var(--linea); border-radius: 16px; padding: 14px 16px; background: var(--panel); }
.gasto summary { cursor: pointer; font-weight: 500; }
.gasto dl { margin: 12px 0 0; }
.gasto dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--linea); font-size: 14px; }
.gasto dt { color: var(--suave); }
.gasto dd { margin: 0; white-space: nowrap; }

/* Cierre */
.cierre { padding: 96px var(--gutter); text-align: center; display: grid; justify-items: center; gap: 22px; background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(255, 106, 31, 0.22), transparent 70%); }
.cierre h2 { max-width: 14ch; text-wrap: balance; }
.pie { border-top: 1px solid var(--linea); padding: 28px var(--gutter) 40px; display: grid; gap: 10px; max-width: 1240px; margin: 0 auto; color: var(--suave); font-size: 13px; }
.pie .marca { color: var(--texto); font-size: 15px; }
.pie p { margin: 0; max-width: 44rem; }

/* ---------- Pantallas medianas y grandes ---------- */
@media (min-width: 640px) {
  .op:nth-child(n+2) { display: inline-flex; }
  .galeria { columns: 3; }
  .planes { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .nav-links { display: flex; }
  .muro { grid-template-columns: repeat(5, 1fr); inset: -12% -3%; }
  .col-ancha { display: flex; }
  .herramientas { margin: 0; padding: 0; grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; }
  .her { min-height: 480px; }
  .comparar { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
  .comparador { margin: 0; justify-self: center; }
  .galeria { columns: 4; }
  .modelos { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 0; gap: 12px; }
  .modelos li { border: 1px solid var(--linea); border-radius: 18px; padding: 20px; background: var(--panel); grid-template-columns: 1fr; align-content: start; gap: 8px; }
  .m-para { justify-self: start; }
}
