/* ==========================================================================
   I Feria Literaria Agustina — estilos
   Paleta "papel": crema, tinta, naranja, azul, amarillo.
   ========================================================================== */

:root {
  --bg: #FBF6EC;
  --surface: #FFFFFF;
  --ink: #1B1714;
  --muted: #6E6456;
  --accent: #FF5A2C;
  --accent2: #1F3BD6;
  --accent3: #FFC53D;
  --line: #E7DECC;
  --mascot-turquoise: #14C7D6;
  --mascot-magenta: #FF2E88;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

button { font: inherit; }

::selection { background: var(--accent3); color: var(--ink); }

.container {
  padding-inline: clamp(20px, 5vw, 64px);
}

.eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 4px;
  gap: 9px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: currentColor;
}
.eyebrow.on-dark { color: var(--accent3); }
.eyebrow.on-accent2 { color: var(--accent2); }
.eyebrow a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.eyebrow a:hover, .eyebrow a:focus-visible {
  border-bottom-color: currentColor;
}

h1, h2, h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0;
}

.italic-accent {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
}

/* -------------------------- top color bar -------------------------- */
.top-bar {
  height: 6px;
  display: flex;
}
.top-bar span { flex: 1; }
.top-bar span:nth-child(1) { background: var(--accent); }
.top-bar span:nth-child(2) { background: var(--accent2); }
.top-bar span:nth-child(3) { background: var(--accent3); }
.top-bar span:nth-child(4) { background: var(--ink); }

/* -------------------------------- header -------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 64px);
  min-height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--ink);
  transform: rotate(-4deg);
}
.brand-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.brand-sub {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 12.5px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav-link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  transition: background-color 0.15s ease;
}
.nav-link:hover, .nav-link:focus-visible { background: var(--accent3); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-cta {
  color: var(--bg);
  background: var(--ink);
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--accent);
}
.btn-cta:hover, .btn-cta:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--accent);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle svg { width: 20px; height: 20px; }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 10px clamp(20px, 5vw, 64px) 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav-mobile .nav-link { padding: 12px 8px; font-size: 16px; }
.nav-mobile .btn-cta { justify-content: center; margin-top: 10px; }

/* ------------------------------------------------------------------------ */

section { position: relative; }

/* ---------------------------------- hero --------------------------------- */
.hero {
  padding: clamp(32px, 5vw, 64px) clamp(20px, 5vw, 64px) clamp(40px, 5vw, 64px);
  overflow: hidden;
}
.hero-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(52%, 900px);
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 32%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.hero h1 {
  font-size: clamp(36px, 6.2vw, 84px);
}
.hero h1 span { display: block; }
.hero h1 .italic-accent { color: var(--accent); }

.hero-lede {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.3;
  margin: 18px 0 0;
  max-width: 26ch;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  background: var(--bg);
}
.hero-tag i { font-style: normal; }
.hero-tag .c1 { color: var(--accent2); }
.hero-tag .c2 { color: var(--accent); }
.hero-tag .c3 { color: var(--accent3); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}
.btn-solid {
  color: var(--bg);
  background: var(--ink);
  font-size: 15.5px;
  padding: 13px 22px;
  box-shadow: 6px 6px 0 var(--accent);
}
.btn-solid:hover, .btn-solid:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--accent);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  font-size: 15.5px;
  padding: 13px 22px;
  box-shadow: 6px 6px 0 var(--accent3);
}
.btn-outline:hover, .btn-outline:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--accent3);
}

/* -------------------------------- mascota --------------------------------- */
@keyframes mascot-pop {
  0%   { opacity: 0; transform: scale(0.6); }
  60%  { opacity: 1; transform: scale(1.08); }
  80%  { transform: scale(0.96); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes mascot-bob {
  0%, 100% { transform: translateY(0)      rotate(-2deg); }
  50%      { transform: translateY(-14px)  rotate(2deg); }
}
@keyframes mascot-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95%           { transform: scaleY(0.1); }
}
@keyframes mascot-wave {
  0%, 100% { transform: rotate(6deg); }
  50%      { transform: rotate(-24deg); }
}

.hero-mascot-parallax {
  position: fixed;
  top: calc(var(--header-h) + clamp(10px, 2vw, 24px));
  right: clamp(10px, 2vw, 24px);
  z-index: 3;
  width: clamp(108px, 13.5vw, 176px);
  aspect-ratio: 1;
  pointer-events: none;
  will-change: transform, opacity;
}
.hero-mascot {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--mascot-turquoise);
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  opacity: 0;
  animation: mascot-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;
}
.hero-mascot svg { display: block; width: 100%; height: 100%; }

.mascot-body {
  transform-box: view-box;
  transform-origin: 110px 112px;
  animation: mascot-bob 4.5s ease-in-out infinite;
}

.mascot-eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: mascot-blink 5s ease-in-out infinite;
}
.mascot-eye.eye-r { animation-delay: 0.12s; }

.mascot-arm {
  transform-box: view-box;
  transform-origin: 172px 92px;
  animation: mascot-wave 1.6s ease-in-out infinite;
}

@media (max-width: 700px) {
  .hero-mascot-parallax { width: clamp(84px, 16vw, 120px); }
}

@media (max-width: 520px) {
  .hero-mascot-parallax {
    top: clamp(64px, 15vw, 100px);
    width: clamp(64px, 18vw, 88px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mascot-parallax,
  .hero-mascot,
  .mascot-body,
  .mascot-eye,
  .mascot-arm {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* -------------------------------- marquee -------------------------------- */
@keyframes feria-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee {
  background: var(--ink);
  color: var(--bg);
  padding: 15px 0;
  overflow: hidden;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: feria-marquee 30s linear infinite;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}
.marquee-group { display: inline-flex; gap: 0; }
.marquee-group span:not(.star) { padding: 0 22px; }
.star.c1 { color: var(--accent3); }
.star.c2 { color: var(--accent); }
.star.c3 { color: var(--accent2); }

/* -------------------------------- pillars -------------------------------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.section-head h2 { font-size: clamp(32px, 5.4vw, 64px); max-width: 20ch; }
.section-head .lede {
  max-width: 380px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.pillars {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 64px);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.pillar-card {
  background: var(--surface);
  border: 2px solid var(--ink);
  padding: 30px 28px 32px;
  box-shadow: 6px 6px 0 var(--ink);
}
.pillar-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  margin-bottom: 18px;
}
.pillar-card:nth-child(1) .pillar-num { color: var(--accent); }
.pillar-card:nth-child(2) .pillar-num { color: var(--accent2); }
.pillar-card:nth-child(3) .pillar-num { color: var(--accent3); }
.pillar-card h3 {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.pillar-card p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* --------------------------------- zonas ---------------------------------- */
.zonas {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 64px);
  background: var(--ink);
  color: var(--bg);
}
.zonas .section-head { margin-bottom: 48px; }
.zonas .lede { color: color-mix(in srgb, var(--bg) 80%, transparent); }
.zona-card { display: flex; flex-direction: column; }
.zona-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 18px;
  margin-bottom: 20px;
  border: 2px solid var(--ink);
  background: var(--bg);
}
.zona-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 0.85;
  margin-bottom: 12px;
}
.zona-card:nth-child(1) .zona-num { color: var(--accent); }
.zona-card:nth-child(2) .zona-num { color: var(--accent2); }
.zona-card:nth-child(3) .zona-num { color: var(--accent3); }
.zona-card h3 {
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.zona-card p {
  font-size: 16px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--bg) 80%, transparent);
  margin: 0;
}

/* ------------------------------ mesas redondas ----------------------------- */
.mesas {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 64px);
}
.mesas .section-head { margin-bottom: 42px; }
.mesa-list {
  display: grid;
  gap: 14px;
}
.mesa-row {
  text-decoration: none;
  color: inherit;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  background: var(--surface);
  border: 2px solid var(--ink);
  padding: 22px 26px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mesa-row .mesa-num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 34px;
  width: 38px;
}
.mesa-row .mesa-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 27px);
  letter-spacing: -0.01em;
}
.mesa-row .mesa-time {
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.mesa-row:nth-child(1) .mesa-num { color: var(--accent); }
.mesa-row:nth-child(2) .mesa-num { color: var(--accent2); }
.mesa-row:nth-child(3) .mesa-num { color: var(--accent3); }
.mesa-row:nth-child(4) .mesa-num { color: var(--accent); }
.mesa-row:nth-child(5) .mesa-num { color: var(--accent2); }
.mesa-row:nth-child(1):hover { transform: translateX(4px); box-shadow: -6px 0 0 var(--accent); }
.mesa-row:nth-child(2):hover { transform: translateX(4px); box-shadow: -6px 0 0 var(--accent2); }
.mesa-row:nth-child(3):hover { transform: translateX(4px); box-shadow: -6px 0 0 var(--accent3); }
.mesa-row:nth-child(4):hover { transform: translateX(4px); box-shadow: -6px 0 0 var(--accent); }
.mesa-row:nth-child(5):hover { transform: translateX(4px); box-shadow: -6px 0 0 var(--accent2); }

/* --------------------------------- banner --------------------------------- */
.banner {
  padding: 0 clamp(20px, 5vw, 64px) clamp(56px, 8vw, 96px);
}
.banner-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.banner-head h2 { font-size: clamp(26px, 4.4vw, 52px); }
.banner-head p {
  max-width: 340px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.banner img {
  width: 100%;
  height: clamp(220px, 42vw, 460px);
  object-fit: cover;
  object-position: center 32%;
  border-radius: 22px;
  border: 2px solid var(--ink);
}

/* ------------------------------ info práctica ------------------------------ */
.info {
  padding: 0 clamp(20px, 5vw, 64px) clamp(56px, 8vw, 96px);
}
.info-box {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  padding: clamp(28px, 4vw, 52px);
}
.info-box h2 {
  font-size: clamp(26px, 4vw, 46px);
  margin: 0 0 28px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 26px;
}
.info-item {
  border-top: 2px solid #fff;
  padding-top: 14px;
}
.info-label {
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 6px;
}
.info-value {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 21px;
}
.info-note {
  font-size: 13.5px;
  opacity: 0.9;
  margin-top: 3px;
}

/* ------------------------------- inscripción -------------------------------- */
.inscripcion {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 64px);
  background: var(--surface);
  border-top: 2px solid var(--ink);
}
.inscripcion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
  max-width: 1100px;
}
.inscripcion h2 {
  font-size: clamp(32px, 5vw, 60px);
  margin: 0 0 18px;
}
.inscripcion-copy p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 44ch;
}
.inscripcion-quote {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 24px;
  line-height: 1.3;
  margin: 0;
}
.form-card {
  background: var(--bg);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  padding: clamp(24px, 3vw, 36px);
}
.field {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
}
.field input, .field select {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  outline: none;
  width: 100%;
}
.field input:focus, .field select:focus {
  outline: 2px solid var(--accent2);
  outline-offset: 1px;
}
#inscripcion-form { display: grid; gap: 16px; }
.field-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
}
.field-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.btn-submit {
  margin-top: 6px;
  font-size: 17px;
  padding: 15px;
  color: var(--bg);
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--accent);
  width: 100%;
  justify-content: center;
}
.btn-submit:hover, .btn-submit:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--accent);
}

.success {
  display: grid;
  gap: 14px;
  place-items: start;
  padding: 8px 0;
}
.success-check {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: var(--accent3);
  color: var(--ink);
  font-size: 28px;
  transform: rotate(-5deg);
  box-shadow: 4px 4px 0 var(--ink);
}
.success h3 {
  font-size: 27px;
  margin: 0;
}
.success p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.btn-ghost {
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  background: transparent;
  color: var(--ink);
  padding: 10px 18px;
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: var(--ink);
  color: var(--bg);
}

[hidden] { display: none !important; }

/* --------------------------------- footer --------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(48px, 7vw, 80px) clamp(20px, 5vw, 64px) 40px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}
.footer-brand { max-width: 420px; }
.footer-brand .title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 3.4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.footer-brand .tag {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--accent3);
  margin: 10px 0 0;
}
.footer-meta {
  display: grid;
  gap: 18px;
  font-size: 14.5px;
  line-height: 1.5;
}
.footer-meta .label {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--bg) 60%, transparent);
  margin-bottom: 5px;
}
.footer-meta .value { font-weight: 600; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid color-mix(in srgb, var(--bg) 22%, transparent);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
  color: color-mix(in srgb, var(--bg) 65%, transparent);
}
.footer-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.footer-link:hover, .footer-link:focus-visible {
  color: var(--bg);
  border-bottom-color: currentColor;
}

/* -------------------------------- responsive ------------------------------- */
@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: grid; }
  .nav-mobile.is-open { display: flex; }
}

@media (max-width: 700px) {
  .hero-art { width: 46%; opacity: 0.55; }
}

@media (max-width: 520px) {
  .hero-art { display: none; }
  .hero-tags { gap: 8px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
}
