/* ============================================================
   LOS PROMPTS DE GUILLE — editorial system
   Blanco, negro y amarillo de marca. Precisión antes que efectos.
   ============================================================ */

:root {
  --paper: #f4f2ed;
  --white: #fff;
  --ink: #0b0b0a;
  --soft: #686762;
  --line: rgba(11, 11, 10, .16);
  --yellow: #ffd600;
  --green: #21a667;
  --sans: "Inter", Arial, sans-serif;
  --mono: "DM Mono", monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
::selection { background: var(--yellow); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { color: inherit; }
.container { width: min(1380px, calc(100% - 64px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[data-lang="en"] { display: none; }

/* Navigation */
.progreso {
  position: fixed; inset: 0 auto auto 0; z-index: 80;
  width: 100%; height: 3px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left;
}
.nav {
  position: sticky; top: 0; z-index: 70;
  background: rgba(244, 242, 237, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav-inner { min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: -.025em; white-space: nowrap; }
.brand-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--yellow); border: 1px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { position: relative; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 1px; background: currentColor; transition: right .35s var(--ease); }
.nav-links a:hover::after, .nav-links a.activo::after { right: 0; }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 12px; }
.lang-toggle { display: flex; border: 1px solid var(--ink); background: var(--paper); }
.lang-toggle button { border: 0; background: transparent; padding: 8px 10px; cursor: pointer; font: 500 10px/1 var(--mono); }
.lang-toggle button + button { border-left: 1px solid var(--ink); }
.lang-toggle button.activo { color: var(--paper); background: var(--ink); }
.nav-sponsor { border: 1px solid var(--ink); padding: 9px 13px; font: 500 9px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; transition: background .25s, color .25s; }
.nav-sponsor strong { color: inherit; }
.nav-sponsor:hover { background: var(--yellow); }
.menu-toggle { display: none; height: 34px; align-items: center; gap: 10px; border: 1px solid var(--ink); background: var(--paper); padding: 0 11px; cursor: pointer; font: 500 9px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.menu-icon { position: relative; width: 14px; height: 10px; }
.menu-icon i { position: absolute; left: 0; width: 100%; height: 1px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-icon i:first-child { top: 2px; }
.menu-icon i:last-child { top: 8px; }
.menu-toggle[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
.menu-toggle[aria-expanded="true"] .menu-icon i:first-child { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon i:last-child { top: 5px; transform: rotate(-45deg); }
.mobile-menu { position: absolute; top: 100%; left: 0; width: 100%; z-index: 69; background: var(--ink); color: var(--paper); border-top: 1px solid rgba(255,255,255,.2); box-shadow: 0 20px 50px rgba(0,0,0,.22); }
.mobile-menu[hidden] { display: none; }
.mobile-menu-inner { padding-block: 12px 18px; }
.mobile-menu a { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; min-height: 62px; border-bottom: 1px solid rgba(255,255,255,.2); }
.mobile-menu a > span { color: rgba(255,255,255,.45); font: 400 9px/1 var(--mono); }
.mobile-menu a > strong { font-size: 18px; font-weight: 500; letter-spacing: -.035em; }
.mobile-menu a > i { color: var(--yellow); font-style: normal; font-size: 17px; }

/* Hero */
.hero-wrap { border-bottom: 1px solid var(--ink); overflow: hidden; }
.hero { min-height: calc(88svh - 72px); padding-block: 34px 26px; display: flex; flex-direction: column; justify-content: space-between; }
.hero-kicker, .section-label { display: flex; align-items: center; gap: 18px; font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.hero-kicker span:first-child, .section-label span:first-child { color: var(--soft); }
.hero-kicker::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.hero-brand { width: 75%; margin: auto; padding-block: clamp(42px, 7vh, 96px); }
.hero-brand img { width: 100%; max-height: 58vh; object-fit: contain; mix-blend-mode: multiply; }
.hero-brand img[data-lang="en"] { width: 75%; margin-inline: auto; }
.hero-bottom { display: grid; grid-template-columns: minmax(280px, 520px) 1fr; align-items: end; gap: 40px; border-top: 1px solid var(--ink); padding-top: 20px; }
.hero-sub { max-width: 500px; font-size: clamp(18px, 1.55vw, 24px); line-height: 1.28; letter-spacing: -.035em; }
.hero-index { justify-self: end; display: flex; gap: 70px; align-items: center; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.hero-index span:last-child { display: grid; place-items: center; width: 44px; height: 44px; background: var(--ink); color: var(--paper); font-size: 18px; transition: transform .35s var(--ease), background .25s, color .25s; }
.hero-index:hover span:last-child { transform: rotate(45deg); background: var(--yellow); color: var(--ink); }

/* Sections */
.seccion { padding-block: clamp(76px, 9vw, 132px); }
#prompts { padding-top: 42px; }
.section-label { margin-bottom: 34px; }
.section-label-wide { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.seccion-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 22px; margin-bottom: 32px; }
.seccion-head .section-label { grid-column: 1 / -1; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.titulo-display { font-size: clamp(58px, 9vw, 142px); font-weight: 700; line-height: .78; letter-spacing: -.085em; }
.contador { font: 400 13px/1 var(--mono); letter-spacing: 0; vertical-align: top; color: var(--soft); }
.nota-mano { padding-bottom: 4px; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.nota-mano::after { content: " ↓"; color: var(--soft); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; padding-block: 28px 34px; }
.chip { appearance: none; border: 1px solid var(--ink); background: transparent; padding: 10px 18px; cursor: pointer; font: 500 10px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; transition: background .2s, color .2s; }
.chip:hover, .chip.activo { background: var(--ink); color: var(--paper); }

/* Prompt gallery */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.card { min-width: 0; background: transparent; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: flex; flex-direction: column; overflow: hidden; }
.card-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #d9d7d1; }
.card-media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); pointer-events: none; }
.card-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.87) contrast(1.03); transition: transform .8s var(--ease), filter .4s; }
.card:hover .card-media img { transform: scale(1.045); filter: saturate(1) contrast(1); }
.card-num { position: absolute; top: 14px; left: 14px; z-index: 2; display: grid; place-items: center; min-width: 34px; height: 24px; padding-inline: 7px; color: var(--paper); background: var(--ink); font: 500 9px/1 var(--mono); }
.card-body { flex: 1; display: grid; grid-template-columns: 1fr auto; grid-template-rows: minmax(74px, auto); align-items: center; gap: 12px; padding: 16px; background: var(--paper); }
.card-titulo { font-size: 14px; line-height: 1.25; font-weight: 600; letter-spacing: -.025em; }
.btn-copiar { width: 36px; height: 36px; overflow: hidden; border: 1px solid var(--ink); background: transparent; color: transparent; cursor: pointer; font-size: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: width .4s var(--ease), background .2s, color .2s; }
.btn-copiar::before { content: "+"; display: block; flex: 0 0 auto; color: var(--ink); font: 400 21px/1 var(--sans); transform: translateY(-1px); }
.card:hover .btn-copiar { width: 112px; color: var(--ink); font: 500 9px/1 var(--mono); text-transform: uppercase; }
.card:hover .btn-copiar::before { margin-right: 0; }
.btn-copiar:hover { background: var(--yellow); }
.btn-copiar.copiado { width: 92px; background: var(--green); border-color: var(--green); color: white; font: 500 9px/1 var(--mono); }
.btn-copiar.copiado::before { content: "✓"; color: white; margin-right: 0; }
.ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 54px; }
.g1,.g2,.g3,.g4,.g5,.g6,.g7,.g8 { background: #dedbd4; }

/* Moving rule */
.marquee { overflow: hidden; border-block: 1px solid var(--ink); background: var(--yellow); padding-block: 14px; }
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track span { padding-right: 18px; white-space: nowrap; font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Editorial panels */
.newsletter { position: relative; min-height: 570px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: clamp(30px, 6vw, 86px); overflow: hidden; color: var(--white); background: var(--ink); }
.newsletter::before { content: ""; position: absolute; width: clamp(250px, 38vw, 590px); aspect-ratio: 1; right: -5%; top: -22%; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }
.newsletter::after { content: ""; position: absolute; width: clamp(150px, 24vw, 370px); aspect-ratio: 1; right: 8%; top: -2%; border-radius: 50%; background: var(--yellow); mix-blend-mode: difference; }
.newsletter > * { position: relative; z-index: 1; }
.newsletter-badge { margin-bottom: 22px; font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.newsletter h2 { max-width: 880px; font-size: clamp(38px, 6.1vw, 88px); font-weight: 600; line-height: .96; letter-spacing: -.065em; }
.newsletter > p { max-width: 620px; margin-top: 26px; color: rgba(255,255,255,.66); font-size: 16px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; margin-top: 30px; padding: 0 22px; border: 1px solid currentColor; font: 500 10px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; transition: background .25s, color .25s, transform .3s var(--ease); }
.btn:hover { transform: translateY(-3px); }
.btn-accent { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }
.newsletter-nota { margin-top: 14px !important; font: 400 10px/1.4 var(--mono) !important; color: rgba(255,255,255,.42) !important; }
.newsletter-language { display: none; margin-top: 10px !important; padding: 8px 10px; border: 1px solid rgba(255,214,0,.65); color: var(--yellow) !important; font: 500 10px/1 var(--mono) !important; text-transform: uppercase; letter-spacing: .04em; }
.syntx-panel {
  border-left: 12px solid var(--yellow);
  clip-path: polygon(0 0, calc(100% - 92px) 0, 100% 92px, 100% 100%, 0 100%);
}
.syntx-panel::before {
  inset: 0;
  width: auto;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: repeating-linear-gradient(135deg, transparent 0 38px, rgba(255,255,255,.045) 38px 39px);
}
.syntx-panel::after {
  width: 240px;
  right: 7%;
  top: -150px;
  border-radius: 0;
  background: transparent;
  border: 1px solid rgba(255,214,0,.55);
  transform: rotate(45deg);
  mix-blend-mode: normal;
}
.descuento { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 24px; width: min(610px, 100%); margin-top: 30px; padding-block: 16px; border-block: 1px solid rgba(255,255,255,.25); }
.descuento-label { font: 500 10px/1.5 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.codigo { grid-row: 1 / 3; grid-column: 2; border: 0; background: var(--yellow); padding: 16px 21px; cursor: pointer; font: 500 16px/1 var(--mono); letter-spacing: .12em; }
.descuento-pista { margin: 0 !important; font: 400 9px/1 var(--mono) !important; color: rgba(255,255,255,.42) !important; }

/* About */
.sobre-mi { display: grid; grid-template-columns: minmax(300px, 42%) 1fr; min-height: 690px; border: 1px solid var(--ink); background: var(--paper); }
.sobre-mi-foto { min-height: 100%; overflow: hidden; border-right: 1px solid var(--ink); }
.sobre-mi-foto img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); transition: filter .5s; }
.sobre-mi:hover .sobre-mi-foto img { filter: grayscale(0); }
.sobre-mi > div:last-child { align-self: end; padding: clamp(34px, 6vw, 88px); }
.sobre-mi h2 { max-width: 600px; margin-bottom: 28px; font-size: clamp(52px, 7vw, 100px); font-weight: 600; line-height: .9; letter-spacing: -.075em; }
.sobre-mi p { max-width: 540px; margin-bottom: 12px; color: var(--soft); font-size: clamp(16px, 1.4vw, 20px); letter-spacing: -.025em; }
.sobre-mi .btn { margin-top: 24px; background: var(--ink); color: var(--paper); }
.about-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.about-actions .btn { margin-top: 24px; }
.about-email {
  margin-top: 24px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font: 500 11px/1 var(--mono);
  letter-spacing: .02em;
  transition: border-color .2s, color .2s;
}
.about-email:hover { color: var(--soft); border-color: var(--soft); }

/* Footer */
.footer { padding: 0 0 34px; border-top: 1px solid var(--ink); }
.footer-wordmark { overflow: hidden; padding: 22px 2vw 30px; border-bottom: 1px solid var(--ink); white-space: nowrap; text-align: center; font-size: clamp(52px, 10.5vw, 160px); font-weight: 700; line-height: .85; letter-spacing: -.09em; }
.footer-inner { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; padding-top: 44px; }
.footer-brand { max-width: 300px; }
.footer-brand .nav-brand { margin-bottom: 13px; }
.footer-brand p, .footer-col a, .footer-legal { color: var(--soft); font-size: 12px; }
.footer-col h4 { margin-bottom: 14px; font: 500 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { transition: color .2s; }
.footer-col a:hover { color: var(--ink); }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }

/* Legal pages */
.legal { max-width: 820px; margin: 0 auto; padding: 80px 0; }
.legal h1 { margin-bottom: 12px; font-size: clamp(42px, 7vw, 78px); line-height: .95; letter-spacing: -.06em; }
.legal .legal-fecha { margin-bottom: 48px; color: var(--soft); font: 400 10px/1 var(--mono); text-transform: uppercase; }
.legal h2 { margin: 42px 0 12px; font-size: 21px; letter-spacing: -.03em; }
.legal p, .legal li { margin-bottom: 12px; color: var(--soft); font-size: 15px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal .legal-aviso { margin-bottom: 30px; padding: 18px; border: 1px solid var(--ink); }

/* Feedback */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; display: flex; gap: 8px; align-items: center; padding: 12px 18px; color: var(--paper); background: var(--ink); border: 1px solid var(--paper); opacity: 0; transform: translate(-50%, 70px); transition: opacity .3s, transform .4s var(--ease); font: 500 10px/1 var(--mono); text-transform: uppercase; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.toast .check { color: var(--yellow); }
.cursor-anillo { display: none; }

/* Responsive */
@media (max-width: 1050px) {
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-inner > nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 2fr repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1380px); }
  .nav-inner { min-height: 62px; gap: 8px; }
  .nav-brand { font-size: 12px; }
  .nav-sponsor { display: none; }
  .hero { min-height: 0; padding-block: 18px 20px; }
  .hero-brand { width: 92%; margin-block: 0; padding-block: 24px; }
  .hero-brand img { max-height: none; }
  .hero-bottom { grid-template-columns: 1fr; gap: 16px; padding-top: 16px; }
  .hero-index { justify-self: stretch; justify-content: space-between; }
  .seccion { padding-block: 72px; }
  #prompts { padding-top: 34px; }
  .titulo-display { font-size: clamp(52px, 19vw, 92px); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card-body { grid-template-columns: 1fr; grid-template-rows: auto 36px; }
  .btn-copiar, .card:hover .btn-copiar { width: 100%; color: var(--ink); font: 500 9px/1 var(--mono); text-transform: uppercase; }
  .btn-copiar::before { margin-right: 0; }
  .newsletter { min-height: 620px; }
  .syntx-panel { border-left-width: 8px; clip-path: polygon(0 0, calc(100% - 48px) 0, 100% 48px, 100% 100%, 0 100%); }
  .sobre-mi { grid-template-columns: 1fr; }
  .sobre-mi-foto { min-height: 520px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; margin-bottom: 20px; }
}
@media (max-width: 440px) {
  .brand-dot { width: 9px; height: 9px; box-shadow: 2px 2px 0 var(--ink); }
  .lang-toggle button { padding: 7px 8px; }
  .hero-sub { font-size: 18px; }
  .grid { grid-template-columns: 1fr; }
  .seccion-head { grid-template-columns: 1fr; }
  .nota-mano { justify-self: start; }
  .newsletter { min-height: 660px; padding: 26px; }
  .newsletter h2 { font-size: 39px; }
  .descuento { grid-template-columns: 1fr; }
  .codigo { grid-column: 1; grid-row: auto; width: 100%; }
  .sobre-mi-foto { min-height: 430px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
