/* ============================================================
   Héctor Rodríguez — Consultor de eventos extraordinarios
   Diseño: editorial, claro, cinético
   ============================================================ */

:root {
  --paper: #faf7f1;
  --paper-2: #f3eee4;
  --ink: #16130e;
  --ink-soft: #4d463c;
  --accent: #f04a23;
  --accent-dark: #c93a18;
  --line: rgba(22, 19, 14, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-w: 1200px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

h2 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); }

.accent { color: var(--accent); }
.italic { font-style: italic; }

a { color: inherit; }

::selection { background: var(--accent); color: var(--paper); }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  z-index: 200;
  transition: width 80ms linear;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--pad);
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.35s ease;
}

/* Sobre el vídeo del hero: textos en blanco */
.site-header:not(.scrolled) { color: #fff; }
.site-header:not(.scrolled) .logo-mark { background: #fff; color: var(--ink); }
.site-header:not(.scrolled) .nav-cta { background: #fff; color: var(--ink); }
.site-header:not(.scrolled) .nav-cta:hover { background: var(--accent); color: #fff; }

.site-header.scrolled {
  background: rgba(250, 247, 241, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.site-header.hidden { transform: translateY(-110%); }

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 600;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
}

.logo-text { font-size: 0.95rem; letter-spacing: 0.01em; }

.site-nav {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.site-nav a:not(.nav-cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 0.55rem 1.2rem;
  border-radius: 100px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.nav-cta:hover { background: var(--accent); transform: translateY(-2px); }

.nav-toggle { display: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.95rem 1.8rem;
  border-radius: 100px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(240, 74, 35, 0.6);
}

.btn-primary:hover {
  background: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px -12px rgba(22, 19, 14, 0.5);
}

.btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover { border-color: var(--ink); transform: translateY(-3px); }

/* ---------- Hero (vídeo de fondo) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(5rem + 5vh) 0 0;
  overflow: hidden;
  background: var(--ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  /* El monográfico lleva un marco difuminado de origen; este zoom lo recorta */
  transform: scale(1.32);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(10, 8, 5, 0.72) 0%, rgba(10, 8, 5, 0.32) 45%, rgba(10, 8, 5, 0.42) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--pad) clamp(5rem, 11vh, 8rem);
  color: #fff;
}

.hero-eyebrow {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}

.hero-title {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 480;
  max-width: 14ch;
  color: #fff;
}

.hero-title .line { display: block; }

.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-title .word.in {
  opacity: 1;
  transform: translateY(0);
}

.hero-proof {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.9s forwards;
}

.hero-proof .stars {
  color: var(--accent);
  letter-spacing: 0.15em;
  font-size: 1.05rem;
}

.hero-ctas {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.1s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: #fff;
  color: var(--ink);
}

.btn-white:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.5); }

.btn-arrow {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn-white:hover .btn-arrow { background: var(--accent); transform: translateX(3px); }

.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-glass:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-3px); }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: relative;
  z-index: 3;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 2.2rem;
  padding: 1rem 0;
  animation: marquee 28s linear infinite;
  will-change: transform;
}

.hero-marquee .marquee-track {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Secciones base ---------- */
section { padding: clamp(4.5rem, 10vh, 8rem) var(--pad); }

.section-head { max-width: var(--max-w); margin: 0 auto 3.5rem; }

.section-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ---------- Manifiesto ---------- */
.manifesto {
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(6rem, 14vh, 10rem);
  padding-bottom: clamp(6rem, 14vh, 10rem);
}

.manifesto-text {
  max-width: 900px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  font-weight: 420;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.manifesto-text .w {
  opacity: 0.16;
  transition: opacity 0.35s ease;
}

.manifesto-text .w.on { opacity: 1; }

/* ---------- Servicios ---------- */
.services { background: var(--paper); }

.service-list {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 2rem 2rem;
  background: #fff;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  overflow: hidden;
}

.service:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(22, 19, 14, 0.25);
  border-color: transparent;
}

.service::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service:hover::before { transform: scaleX(1); }

.service-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent);
}

.service h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin: 0.6rem 0 0.8rem;
}

.service p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- Eventos (scroll horizontal) ---------- */
.work {
  background: var(--paper-2);
  padding-right: 0;
  padding-left: 0;
}

.work .section-head { padding: 0 var(--pad); }

.work-scroller {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  padding: 0.5rem var(--pad) 1.5rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}

.work-scroller::-webkit-scrollbar { display: none; }
.work-scroller.dragging { cursor: grabbing; scroll-snap-type: none; }

.work-card {
  flex: 0 0 auto;
  width: clamp(260px, 32vw, 420px);
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 40px -22px rgba(22, 19, 14, 0.3);
  transition: transform 0.35s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}

.work-card:hover { transform: translateY(-8px) rotate(-0.5deg); }

.work-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.5s ease;
}

.work-card:hover img { transform: scale(1.04); }

.work-caption {
  padding: 1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: #fff;
  position: relative;
}

.work-caption strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.work-caption > span { font-size: 0.88rem; color: var(--ink-soft); }

.work-caption::after {
  content: "↗";
  position: absolute;
  right: 1.1rem;
  top: 1rem;
  color: var(--accent);
  font-size: 1.1rem;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.work-card:hover .work-caption::after { opacity: 1; transform: translate(0, 0); }

.work-hint {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.8rem;
}

.work-more { text-align: center; margin-top: 2.2rem; }

/* ---------- Franja "en acción" ---------- */
.services-sub {
  margin-top: 1.2rem;
  color: var(--ink-soft);
  max-width: 56ch;
  font-size: 1.05rem;
}

/* Momentos: marquesina automática lenta, se pausa al pasar el ratón */
.moments { margin-top: clamp(3.5rem, 9vh, 6rem); }

.moments-title {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  max-width: var(--max-w);
  margin: 0 auto 1.8rem;
  padding: 0 var(--pad);
  text-align: center;
}

/* Cinta autodeslizante por JS: también se puede arrastrar */
.moments-marquee {
  border: none;
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
}

.moments-marquee::-webkit-scrollbar { display: none; }
.moments-marquee.dragging { cursor: grabbing; }

.moments-marquee .marquee-track {
  gap: clamp(0.9rem, 1.8vw, 1.4rem);
  padding: 0.5rem 0 1rem;
  animation: none;
}

/* Tira de fotos uniforme, estilo filmstrip */
.moment {
  position: relative;
  margin: 0;
  flex: 0 0 auto;
  height: clamp(250px, 38vh, 340px);
  border-radius: var(--radius);
  overflow: hidden;
}

.moment img {
  width: auto;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.moment:hover img { transform: scale(1.05); }

.moment figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem 1rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(to top, rgba(10, 8, 5, 0.7), transparent);
  white-space: normal;
}

/* ---------- Mis proyectos ---------- */
.projects { background: var(--paper); }

.projects-sub {
  margin-top: 1.2rem;
  color: var(--ink-soft);
  max-width: 56ch;
  font-size: 1.05rem;
}

/* Slider megavisual */
.projects-slider { position: relative; }

.slides {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0.5rem 0 1.5rem;
  cursor: grab;
}

.slides::-webkit-scrollbar { display: none; }
.slides.dragging { cursor: grabbing; scroll-snap-type: none; }

.slide {
  position: relative;
  flex: 0 0 auto;
  width: min(82vw, 1040px);
  height: clamp(420px, 68vh, 620px);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: center;
}

.slide.slide-book img { object-position: center 32%; }

/* La foto de la newsletter es muy oscura arriba: encuadre a la cara */
.slide.slide-newsletter img { object-position: center 42%; }

.slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.6s ease;
}

.slide:hover img { transform: scale(1.03); }

.slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(4rem, 10vh, 6rem) clamp(1.4rem, 3.5vw, 2.6rem) clamp(1.4rem, 3.5vw, 2.2rem);
  background: linear-gradient(to top, rgba(10, 8, 5, 0.82), rgba(10, 8, 5, 0.35) 60%, transparent);
  color: #fff;
}

.slide-caption .project-tag {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.9rem;
}

.slide-caption h3 {
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  margin-bottom: 0.6rem;
}

.slide-caption p {
  max-width: 58ch;
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  color: rgba(255, 255, 255, 0.88);
}

.slide-link {
  display: inline-block;
  margin-top: 0.9rem;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.slide-link:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

.slider-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  max-width: var(--max-w);
  margin: 0.6rem auto 0;
}

.slider-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 1.15rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.slider-btn:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

.project-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid currentColor;
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.1rem;
}


/* ---------- Marcas ---------- */
.brands {
  padding-left: 0;
  padding-right: 0;
  text-align: center;
}

.brands .section-eyebrow { margin-bottom: 2rem; }

.brands-marquee .marquee-track {
  gap: clamp(2.5rem, 5vw, 4.5rem);
  padding: 1.8rem 0;
  animation-duration: 45s;
}

/* Logos originales en blanco → invertidos a tinta para el fondo claro */
.brands-marquee img {
  height: clamp(34px, 5vw, 50px);
  width: auto;
  filter: brightness(0);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.brands-marquee img:hover { opacity: 1; }

/* ---------- Método ---------- */
.method { background: var(--paper); }

.method-steps {
  max-width: 860px;
  margin: 0 auto;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.method-step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
}

.method-step:last-child { border-bottom: 1px solid var(--line); }

.method-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--accent);
  min-width: 3.2ch;
  line-height: 1.2;
}

.method-step h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 0.5rem; }
.method-step p { color: var(--ink-soft); max-width: 56ch; }

/* ---------- Sobre mí (parallax integrado) ---------- */
.about {
  position: relative;
  background: var(--paper-2);
  overflow: hidden;
  padding-top: clamp(6rem, 14vh, 10rem);
  padding-bottom: 0;
}

.about-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 480px) 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  max-width: calc(var(--max-w) + 2 * var(--pad));
  margin: 0 auto;
  align-items: end;
}

/* Retratos integrados: recortes sin fondo que cambian con el scroll */
.about-photo {
  margin: 0;
  align-self: end;
  will-change: transform;
}

.photo-stack { position: relative; }

.stack-img {
  width: 100%;
  height: auto;
  mask-image: linear-gradient(to bottom, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 92%, transparent 100%);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.stack-img:not(:first-child) {
  position: absolute;
  inset: 0;
  object-fit: contain;
  object-position: bottom center;
  height: 100%;
}

.stack-img:not(.is-active) {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
}

/* Datos personales */
.about-facts {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
}

.about-facts li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.about-facts li:last-child { border-bottom: 1px solid var(--line); }

.fact-icon { font-size: 1.15rem; flex: 0 0 auto; }

/* Ciudades en vídeo */
.cities-head {
  max-width: var(--max-w);
  margin: clamp(3.5rem, 9vh, 6rem) auto 1.6rem;
  text-align: center;
}

.cities-head .section-eyebrow { margin-bottom: 0; }

.cities-marquee { border: none; }

.cities-marquee .marquee-track {
  gap: clamp(0.9rem, 1.8vw, 1.4rem);
  padding: 0.4rem 0 1.2rem;
  animation: marquee 70s linear infinite;
}

.cities-marquee:hover .marquee-track { animation-play-state: paused; }

.city {
  position: relative;
  margin: 0;
  flex: 0 0 auto;
  width: clamp(230px, 26vw, 330px);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
}

.city video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Los monográficos llevan un marco de película cocinado; este zoom lo recorta */
  transform: scale(1.6);
}

.city::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 8, 5, 0.45), rgba(10, 8, 5, 0.05) 55%);
}

.city figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0.7rem;
  z-index: 1;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.about-text { padding-bottom: clamp(4rem, 10vh, 7rem); }

.about h2 { margin-bottom: 1.5rem; }

.wave { display: inline-block; animation: wave 2.2s ease-in-out infinite; transform-origin: 70% 70%; }

@keyframes wave {
  0%, 55%, 100% { transform: rotate(0); }
  60% { transform: rotate(14deg); }
  70% { transform: rotate(-8deg); }
  80% { transform: rotate(14deg); }
  90% { transform: rotate(-4deg); }
}

.about-body p { margin-bottom: 1.1rem; color: var(--ink-soft); max-width: 58ch; }
.about-body strong { color: var(--ink); }

.about-punch {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.35;
  color: var(--ink);
  margin-top: 1.6rem;
}

/* ---------- LinkedIn ---------- */
.linkedin { background: var(--paper); }

.linkedin-sub {
  margin-top: 1.2rem;
  color: var(--ink-soft);
  max-width: 54ch;
  font-size: 1.05rem;
}

.li-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.li-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.li-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(22, 19, 14, 0.3);
}

.li-card { display: flex; flex-direction: column; }

.li-thumb {
  position: relative;
  display: block;
}

.li-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

/* Miniaturas apaisadas: se muestran enteras sobre fondo suave */
.li-thumb--contain img {
  object-fit: contain;
  background: var(--paper-2);
}

.li-card:hover .li-thumb img { transform: scale(1.04); }

.li-thumb .li-badge {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
}

.li-hook { padding-top: 1.3rem; }

.li-badge {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 5px;
  background: #0a66c2;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: Arial, sans-serif;
}

.li-hook {
  padding: 0 1.4rem 1rem;
  font-size: 1.02rem;
  line-height: 1.65;
  flex: 1;
}

.li-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.4rem 1.2rem;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

.li-cta {
  padding: 1rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #0a66c2;
  border-top: 1px solid var(--line);
  transition: background 0.25s ease;
}

.li-card:hover .li-cta { background: rgba(10, 102, 194, 0.06); }

@media (max-width: 900px) {
  .li-grid { grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
}

@media (max-width: 620px) {
  .li-grid { grid-template-columns: 1fr; max-width: 440px; }
}

/* Botón oficial de LinkedIn */
.btn-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #0a66c2;
  color: #fff;
  font-weight: 600;
}

.btn-linkedin:hover {
  background: #084d92;
  transform: translateY(-3px);
  box-shadow: 0 14px 34px -12px rgba(10, 102, 194, 0.55);
}

.li-logo { flex: 0 0 auto; }

.li-follow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.li-company {
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.li-company:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Detrás de escenas (Bunny Stream) ---------- */
.stories { background: var(--paper-2); }

.stories-sub {
  margin-top: 1.2rem;
  color: var(--ink-soft);
  max-width: 56ch;
  font-size: 1.05rem;
}

.stories-strip {
  display: flex;
  gap: clamp(1rem, 2vw, 1.6rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0.5rem var(--pad) 1.2rem;
  cursor: grab;
}

.stories-strip::-webkit-scrollbar { display: none; }
.stories-strip.dragging { cursor: grabbing; scroll-snap-type: none; }

.story {
  position: relative;
  margin: 0;
  flex: 0 0 auto;
  height: clamp(270px, 42vh, 370px);
  scroll-snap-align: center;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 22px 44px -24px rgba(22, 19, 14, 0.4);
}

.story iframe {
  display: block;
  height: 100%;
  width: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  /* Hasta que se toca, el gesto de deslizar manda sobre el reproductor */
  pointer-events: none;
}

.story-vertical iframe { aspect-ratio: 9 / 16; }

.story.active iframe { pointer-events: auto; }

.story figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem 1rem 0.7rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to top, rgba(10, 8, 5, 0.75), transparent);
  pointer-events: none;
}

.story.active figcaption { opacity: 0; transition: opacity 0.3s ease; }

/* ---------- Contacto ---------- */
.contact {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding-top: clamp(6rem, 14vh, 10rem);
  padding-bottom: clamp(6rem, 14vh, 10rem);
}

.contact-title { font-size: clamp(2.6rem, 7vw, 5.5rem); max-width: 16ch; margin: 0 auto; }

.contact-sub { margin: 1.5rem auto 2.5rem; color: rgba(250, 247, 241, 0.7); }

.contact-mail {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.4vw, 2.6rem);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.2rem;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.contact-mail:hover { color: var(--accent); }

.contact-links {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.contact-links a {
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.contact-links a:hover { opacity: 1; color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(250, 247, 241, 0.55);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem var(--pad) 2rem;
  font-size: 0.85rem;
  border-top: 1px solid rgba(250, 247, 241, 0.12);
}

.back-top { color: inherit; text-decoration: none; }
.back-top:hover { color: var(--paper); }

/* ---------- Reveals ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .service-list { grid-template-columns: 1fr; }

  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: min(70vw, 380px); margin: 0 auto; order: 2; }
  .about-text { padding-bottom: 0; }
  .about { padding-bottom: 0; }

  .li-grid { grid-template-columns: 1fr; max-width: 480px; }

  .moment { height: 240px; }

  .slide { width: 88vw; height: clamp(380px, 60vh, 520px); }
  .slider-nav { justify-content: center; }
}

@media (max-width: 720px) {
  /* Panel desplegable anclado a la cabecera (el fixed dentro de un
     header con backdrop-filter se rompe: el filtro crea containing block) */
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: center;
    padding: 1.8rem 0 2.2rem;
    gap: 1.5rem;
    box-shadow: 0 24px 40px -18px rgba(22, 19, 14, 0.25);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  }

  .site-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a { font-size: 1.3rem; color: var(--ink); }

  .site-header:not(.scrolled) .site-nav .nav-cta { background: var(--ink); color: var(--paper); }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 95;
    padding: 0.5rem;
  }

  .nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .method-step { flex-direction: column; gap: 0.6rem; }
}

/* ---------- Motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-title .word { opacity: 1; transform: none; }
  .hero-eyebrow, .hero-proof, .hero-ctas { opacity: 1; animation: none; }
  .hero-bg { display: none; }
  .reveal { opacity: 1; transform: none; }
  .manifesto-text .w { opacity: 1; }
}
