/* Tipografías propias (Google Fonts, licencia OFL, servidas desde el sitio) */
@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/fonts/geist-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/fonts/geistmono-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/instrumentserif-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/fonts/instrumentserif-italic.woff2") format("woff2");
}

:root {
  --paper: #ffffff;
  --paper-2: #f7f6f4;
  --ink: #0c0c0e;
  --ink-2: #2b2b30;
  --muted: #62626b;
  --line: #e7e6e3;
  --red: #d61f2c;
  --red-deep: #b0141f;
  --red-soft: #fdecee;
  --radius: 20px;
  --wrap: 76rem;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Grano sutil para quitarle lo plano al blanco */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .035;
  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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, p, figure, blockquote { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
em { font-style: italic; }
::selection { background: var(--red); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -5rem; z-index: 60;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 8px; }

/* Barra de progreso de lectura */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 50; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* Encabezado */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.top.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(12, 12, 14, .25); }
.top__inner { display: flex; align-items: center; gap: 1rem; height: 4rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; font-weight: 650; letter-spacing: -.02em; font-size: 1.05rem; }
.logo__mark {
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 9px;
  background: var(--red); color: #fff; font: 700 .78rem/1 var(--sans); letter-spacing: -.02em;
}
.nav { display: none; gap: 2rem; margin-left: auto; font-size: .95rem; color: var(--ink-2); }
.nav a { position: relative; padding: .25rem 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.top__end { display: flex; align-items: center; gap: .6rem; margin-left: auto; }

.lang { display: inline-flex; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang__btn {
  font: 600 .78rem/1 var(--mono); color: var(--muted); background: transparent; border: 0; border-radius: 999px;
  min-width: 2.75rem; min-height: 2.25rem; padding: 0 .7rem; cursor: pointer; transition: background-color .2s, color .2s;
}
.lang__btn:hover { color: var(--ink); }
.lang__btn[aria-pressed="true"] { background: var(--ink); color: #fff; }

.top__yt {
  display: none; align-items: center; gap: .45rem; min-height: 2.5rem; padding: 0 1rem; border-radius: 999px;
  background: var(--red); color: #fff; font-weight: 600; font-size: .9rem; transition: background-color .2s;
}
.top__yt:hover { background: var(--red-deep); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 3.5rem 0 4rem; }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 70%);
  opacity: .7;
}
.hero__inner { position: relative; display: grid; gap: 3rem; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 500 .78rem/1 var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--ink-2);
  padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
}
.dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(214, 31, 44, .5); animation: pulse 2.4s infinite; }

.hero__title { margin-top: 1.5rem; line-height: .92; letter-spacing: -.045em; }
.hero__first, .hero__last { display: block; }
.hero__first { font-weight: 650; font-size: clamp(3.4rem, 15vw, 8.5rem); }
.hero__last {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em;
  font-size: clamp(3.8rem, 16.5vw, 9.4rem); color: var(--red); margin-top: -.04em;
}
.lead { margin-top: 1.75rem; max-width: 34rem; font-size: clamp(1.1rem, 2.4vw, 1.28rem); line-height: 1.55; color: var(--ink-2); }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.btn {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 3.25rem; padding: 0 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; transition: transform .3s var(--ease), background-color .2s, border-color .2s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 14px 30px -14px rgba(214, 31, 44, .7); }
.btn--red:hover { background: var(--red-deep); box-shadow: 0 18px 36px -14px rgba(214, 31, 44, .8); }
.btn--line { border: 1px solid #cfcdc9; color: var(--ink); background: var(--paper); }
.btn--line:hover { border-color: var(--ink); }
.btn--line .icon { transition: transform .3s var(--ease); }
.btn--line:hover .icon { transform: translateY(3px); }

.hero__visual { position: relative; }
.hero__frame {
  position: relative; border-radius: 28px; overflow: hidden; background: var(--paper-2);
  border: 1px solid var(--line); box-shadow: 0 40px 80px -50px rgba(12, 12, 14, .45);
  aspect-ratio: 4 / 3;
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.hero__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(214, 31, 44, 0) 45%, rgba(214, 31, 44, .14));
  mix-blend-mode: multiply;
}
.is-loaded .hero__frame img { transform: scale(1); }
.hero__net { position: absolute; inset: 0; width: 100%; height: 100%; }
.net__line {
  fill: none; stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 6 8; opacity: .8;
  animation: dash 18s linear infinite;
}
.net__line--2 { animation-duration: 24s; animation-direction: reverse; opacity: .5; }
.net__node { fill: #fff; stroke: var(--red); stroke-width: 2; }

.chip {
  position: absolute; display: inline-flex; align-items: center; gap: .45rem;
  padding: .6rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line); box-shadow: 0 16px 30px -18px rgba(12, 12, 14, .45);
  font-weight: 600; font-size: .85rem; white-space: nowrap;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: float 7s ease-in-out infinite;
}
.chip .icon { color: var(--red); }
.chip--a { top: 8%; left: -4%; }
.chip--b { top: 46%; right: -3%; animation-delay: -2.3s; }
.chip--c { bottom: -5%; left: 10%; animation-delay: -4.6s; }

/* Cinta */
.ticker { background: var(--ink); color: #fff; overflow: hidden; padding: 1.1rem 0; }
.ticker__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ticker__set { display: flex; align-items: center; flex: none; }
.ticker__set span { font-family: var(--serif); font-size: clamp(1.4rem, 3.5vw, 2rem); font-style: italic; padding: 0 1.6rem; white-space: nowrap; }
.ticker__set i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--red); flex: none; }

/* Secciones */
.section { padding: 5.5rem 0; }
.section__head { max-width: 46rem; }
.label {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 500 .78rem/1 var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--red);
}
.label::before { content: ""; width: 1.75rem; height: 1.5px; background: var(--red); }
.display {
  margin-top: 1rem; font-weight: 600; letter-spacing: -.035em; line-height: 1;
  font-size: clamp(2.5rem, 8vw, 4.75rem);
}
.display em { font-family: var(--serif); font-weight: 400; color: var(--red); letter-spacing: -.01em; }
.section__lead { margin-top: 1rem; color: var(--muted); font-size: 1.1rem; }

/* Temas */
.topics { display: grid; gap: 1.25rem; margin-top: 3rem; }
.topic {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.topic:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -40px rgba(12, 12, 14, .45); border-color: #d9d7d3; }
.topic__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.topic__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.topic__media::after {
  content: ""; position: absolute; inset: 0; background: var(--red); mix-blend-mode: multiply;
  opacity: 0; transition: opacity .5s var(--ease);
}
.topic:hover .topic__media img { transform: scale(1.06); }
.topic:hover .topic__media::after { opacity: .55; }
.topic__body { padding: 1.4rem 1.4rem 1.6rem; }
.topic__meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.topic__num { font: 500 .85rem/1 var(--mono); color: var(--muted); letter-spacing: .06em; }
.topic__icon {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 12px;
  background: var(--red-soft); color: var(--red); font-size: 1.1rem; transition: background-color .3s, color .3s;
}
.topic:hover .topic__icon { background: var(--red); color: #fff; }
.topic h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.topic p { margin-top: .55rem; color: var(--muted); }

/* Galería */
.gallery { overflow: hidden; padding: 0 0 5.5rem; }
.gallery__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.gallery:hover .gallery__track { animation-play-state: paused; }
.gallery__set { display: flex; gap: 1rem; padding-right: 1rem; flex: none; }
.gallery__set img {
  height: clamp(11rem, 30vw, 19rem); width: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 18px; border: 1px solid var(--line); background: var(--paper-2);
  transition: filter .5s var(--ease);
}
.gallery__set img:nth-child(2), .gallery__set img:nth-child(4) { aspect-ratio: 3 / 4; }

/* Principio */
.principle { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: #fff; padding: 6rem 0; }
.principle__bg {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .55;
  transform: scale(1.08) translateY(var(--py, 0px)); will-change: transform;
}
.principle::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(12, 12, 14, .55), rgba(12, 12, 14, .92));
}
.principle__quote { position: relative; max-width: 58rem; margin: 0 auto; text-align: center; }
.principle__mark { display: block; font-family: var(--serif); font-size: 6rem; line-height: .6; color: #ff4a55; height: 2.6rem; }
.principle__quote p {
  font-family: var(--serif); font-size: clamp(2.2rem, 7vw, 4.5rem); line-height: 1.05; letter-spacing: -.02em; color: #fff;
}
.principle__quote em { color: #ff4a55; }

/* Redes */
.social { display: grid; gap: 1rem; margin-top: 3rem; }
.yt {
  position: relative; display: flex; flex-direction: column; height: 100%; min-height: 17rem;
  padding: 1.75rem; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  background: var(--red); color: #fff; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.yt::before {
  content: ""; position: absolute; z-index: -1; width: 26rem; height: 26rem; right: -9rem; bottom: -12rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 65%);
  transition: transform .8s var(--ease);
}
.yt__bg {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: multiply; opacity: .55; transition: transform 1s var(--ease);
}
.yt:hover .yt__bg { transform: scale(1.05); }
.yt:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(214, 31, 44, .75); }
.yt:hover::before { transform: scale(1.15); }
.yt__icon { font-size: 2.6rem; line-height: 0; }
.yt__name { margin-top: auto; padding-top: 2rem; font-size: clamp(2rem, 6vw, 2.75rem); font-weight: 650; letter-spacing: -.035em; line-height: 1; }
.yt__handle { margin-top: .4rem; opacity: .85; }
.yt__cta {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.5rem;
  min-height: 3rem; padding: 0 1.3rem; border-radius: 999px; background: #fff; color: var(--red); font-weight: 650;
  transition: transform .3s var(--ease);
}
.yt:hover .yt__cta { transform: translateX(4px); }

.card {
  display: flex; align-items: center; gap: 1rem; height: 100%; min-height: 5.75rem;
  padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  transition: border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: 0 20px 40px -30px rgba(214, 31, 44, .6); }
.card__icon {
  display: grid; place-items: center; width: 3rem; height: 3rem; flex: none; border-radius: 14px;
  background: var(--paper-2); color: var(--ink); font-size: 1.15rem; transition: background-color .3s, color .3s;
}
.card:hover .card__icon { background: var(--red); color: #fff; }
.card__text { display: flex; flex-direction: column; min-width: 0; }
.card__name { font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.card__handle { color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.card__arrow { margin-left: auto; color: var(--muted); transition: transform .3s var(--ease), color .3s; }
.card:hover .card__arrow { color: var(--red); transform: translate(3px, -3px); }

/* Pie */
.foot { border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; overflow: hidden; }
.foot__word {
  font-weight: 650; letter-spacing: -.055em; line-height: .85; white-space: nowrap;
  font-size: clamp(2.5rem, 14.5vw, 12rem); color: transparent; -webkit-text-stroke: 1.5px #d8d6d2;
  user-select: none;
}
.foot__row { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; margin-top: 2rem; color: var(--muted); font-size: .92rem; }
.foot__top { margin-left: auto; color: var(--ink); font-weight: 500; }
.foot__top:hover { color: var(--red); }

/* Animaciones de entrada (solo con JS) */
.js .load { opacity: 0; transform: translateY(18px); }
.js.is-loaded .load {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms + 80ms);
}
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .topic[data-reveal].is-in:hover { transform: translateY(-6px); transition-delay: 0s; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(214, 31, 44, .45); }
  70% { box-shadow: 0 0 0 10px rgba(214, 31, 44, 0); }
  100% { box-shadow: 0 0 0 0 rgba(214, 31, 44, 0); }
}
@keyframes dash { to { stroke-dashoffset: -280; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Tableta */
@media (min-width: 40rem) {
  .wrap { padding: 0 2rem; }
  .topics { grid-template-columns: repeat(2, 1fr); }
  .social { grid-template-columns: repeat(2, 1fr); }
  .social__yt { grid-column: 1 / -1; }
  .top__yt { display: inline-flex; }
}

/* Escritorio */
@media (min-width: 64rem) {
  .nav { display: flex; }
  .top__end { margin-left: 2rem; }
  .hero { padding: 5rem 0 7rem; }
  .hero__inner { grid-template-columns: 1.08fr .92fr; gap: 4rem; }
  .section { padding: 8rem 0; }
  .topics { grid-template-columns: repeat(4, 1fr); }
  .principle { padding: 10rem 0; }
  .gallery { padding-bottom: 8rem; }
  .social { grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: auto auto auto; }
  .social__yt { grid-column: 1; grid-row: 1 / span 3; }
  .yt { min-height: 100%; padding: 2.25rem; }
}

/* Teléfonos pequeños */
@media (max-width: 23.5rem) {
  .chip { font-size: .78rem; padding: .5rem .75rem; }
  .lang__btn { min-width: 2.5rem; padding: 0 .55rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .load, .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__frame img, .principle__bg { transform: none; }
  .gallery { overflow-x: auto; }
}
