/* =========================================================
   Signolia × Factoría Industrial de Villaverde
   Sistema de diseño Signolia: Inter, naranja solo como acento,
   verdes myrtle y grises.
   ========================================================= */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-VariableFont_opsz_wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #EF7F1A;
  --orange-hover: #D96F0E;
  --myrtle: #347778;
  --green: #1E4A48;
  --green-deep: #1A3D3E;
  --green-light: #2B6C67;
  --ink: #1F4A49;
  --text: #333;
  --grey-50: #F9F9F9;
  --grey-100: #F5F5F5;
  --line: #D3D9DA;
  --white: #fff;

  --nav-h: 76px;
  --radius-photo: 28px;
  --radius-card: 16px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(80px, 11vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--myrtle); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--orange); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  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: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--orange); color: #fff; padding: 10px 16px; border-radius: 6px; font-weight: 600;
}
.skip:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Tipografía de marca ---------- */
.eyebrow, .tag {
  font-size: 14px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 18px;
}
.tag {
  display: inline-block; background: var(--orange); color: #fff;
  padding: 7px 12px; border-radius: 4px; font-size: 13px; letter-spacing: .14em;
}
.title {
  font-size: clamp(34px, 5vw, 60px); font-weight: 800; line-height: 1.04;
  letter-spacing: -.04em; color: var(--ink);
  text-wrap: balance;
}
.subtitle {
  font-size: clamp(24px, 2.8vw, 34px); font-weight: 800; line-height: 1.1;
  letter-spacing: -.03em; color: inherit; margin-bottom: 16px; text-wrap: balance;
}
.lead { font-size: clamp(18px, 1.6vw, 20px); margin-top: 22px; max-width: 46ch; }
.hl { color: var(--orange); }
.box {
  background: var(--orange); color: #fff; padding: 0 .14em; border-radius: 4px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: 6px; border: 2px solid transparent;
  font-weight: 700; font-size: 16px; line-height: 1; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn--solid { background: var(--orange); color: #fff; }
.btn--solid:hover { background: var(--orange-hover); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--green); }
.btn:active { opacity: .85; }

/* ---------- Menú fijo ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: box-shadow .3s var(--ease);
}
.nav.is-scrolled { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.nav__inner {
  max-width: 1320px; margin: 0 auto; height: var(--nav-h);
  padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav__signolia { height: 34px; width: auto; }
.nav__x { font-size: 22px; font-weight: 300; color: #9AA5A6; line-height: 1; }
.nav__factoria { height: 46px; width: auto; }
.nav__menu { display: flex; gap: clamp(14px, 2vw, 30px); }
.nav__menu a {
  position: relative; color: var(--green-deep); font-weight: 600; font-size: 15px; padding: 6px 0;
}
.nav__menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__menu a:hover, .nav__menu a.is-active { color: var(--orange); }
.nav__menu a.is-active::after { transform: scaleX(1); }
.nav__toggle { display: none; }

.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; }
.progress span {
  display: block; height: 100%; background: var(--orange);
  transform: scaleX(0); transform-origin: left; will-change: transform;
}

@media (max-width: 1020px) {
  :root { --nav-h: 66px; }
  .nav__signolia { height: 28px; }
  .nav__factoria { height: 40px; }
  .nav__toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; padding: 0 11px; border: 0; border-radius: 8px; background: var(--grey-100);
  }
  .nav__toggle span { display: block; height: 2px; background: var(--green-deep); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px;
    background: #fff; box-shadow: 0 18px 30px rgba(0,0,0,.10);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .nav__menu.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__menu a { font-size: 18px; padding: 14px 0; border-bottom: 1px solid var(--grey-100); }
  .nav__menu a::after { display: none; }
}

/* ---------- Portada ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  padding-top: var(--nav-h); color: #fff; background: var(--green);
  display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%;
  z-index: -2;
}
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(26,61,62,.92) 0%, rgba(30,74,72,.75) 40%, rgba(30,74,72,.15) 75%, rgba(30,74,72,0) 100%),
    linear-gradient(180deg, rgba(30,74,72,0) 35%, rgba(30,74,72,.7) 75%, var(--green) 100%);
}
.hero__inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: end; gap: 24px; padding-top: 56px;
}
.hero__copy { max-width: 720px; padding-bottom: clamp(56px, 9vh, 100px); }
.hero__title {
  font-size: clamp(38px, 5.6vw, 76px); font-weight: 800; line-height: 1.02;
  letter-spacing: -.045em; margin: 22px 0 24px; text-wrap: balance;
}
.hero__text { font-size: clamp(17px, 1.5vw, 19px); color: rgba(255,255,255,.88); max-width: 58ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__kelvin { width: clamp(200px, 25vw, 360px); align-self: end; }
.hero__kelvin img { width: 100%; transform-origin: 50% 100%; }

@media (max-width: 760px) {
  .hero { align-items: stretch; }
  .hero__shade {
    background: linear-gradient(180deg, rgba(30,74,72,.35) 0%, rgba(30,74,72,.82) 38%, var(--green) 70%);
  }
  .hero__bg { height: 55%; object-position: 70% 50%; }
  .hero__inner { grid-template-columns: 1fr; padding-top: 24vh; }
  .hero__copy { padding-bottom: 0; }
  .hero__kelvin { width: 150px; justify-self: end; margin-top: -10px; margin-right: -6px; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Cifras ---------- */
.stats { background: var(--green); color: #fff; padding: clamp(56px, 7vw, 90px) 0 40px; border-top: 1px solid rgba(255,255,255,.08); }
.stats__grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
}
.stat { padding: 8px clamp(14px, 2vw, 28px); border-left: 1px solid rgba(255,255,255,.14); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(239,127,26,.14); color: var(--orange); font-size: 19px; margin-bottom: 18px;
}
.stat__num {
  font-size: clamp(34px, 3.6vw, 50px); font-weight: 800; letter-spacing: -.045em; line-height: 1;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.stat__label { margin-top: 10px; font-size: 15px; line-height: 1.45; color: rgba(255,255,255,.8); }
.stats__note { margin-top: 44px; font-size: 13px; color: rgba(255,255,255,.55); }

.bars { margin-top: 18px; display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name delta" "track track"; gap: 4px 8px; align-items: center; }
.bar__name { grid-area: name; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.bar__delta { grid-area: delta; font-size: 13px; font-weight: 800; color: var(--orange); }
.bar__track { grid-area: track; height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar__fill {
  display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .25s;
}
.bar__fill--prev { background: rgba(255,255,255,.4); transition-delay: .1s; }
.is-in .bar__fill { transform: scaleX(1); }

@media (max-width: 1020px) {
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 0; }
  .stat { border-left: 0; padding: 0 16px 0 0; }
  .stat:first-child { grid-column: 1 / -1; }
}

/* ---------- Bandas ---------- */
.band { padding: var(--section-y) 0; position: relative; }
.band--light { background: #fff; }
.band--grey { background: var(--grey-100); }
.band--green { background: var(--green); color: rgba(255,255,255,.86); }
.band--green .title { color: #fff; }
.band--green .subtitle { color: #fff; }
.head { margin-bottom: clamp(48px, 6vw, 72px); max-width: 860px; }
.head--center { text-align: center; margin-left: auto; margin-right: auto; }

.photo { border-radius: var(--radius-photo); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.photo:hover img { transform: scale(1.04); }

/* ---------- Quiénes somos ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.about__photo { aspect-ratio: 3 / 4; position: sticky; top: calc(var(--nav-h) + 32px); }
.teams { display: grid; gap: 16px; margin-top: 40px; }
.team {
  display: grid; grid-template-columns: 170px 1fr; gap: 28px; align-items: center;
  background: var(--grey-100); border-radius: var(--radius-card); padding: 26px 28px;
  transition: background-color .3s var(--ease);
}
.team:hover { background: #EEF2F2; }
.team__logo img { max-height: 42px; width: auto; max-width: 100%; }
.team p { font-size: 16px; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__photo { position: static; aspect-ratio: 4 / 3; order: 2; }
  .team { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
}

/* ---------- En la Factoría ---------- */
.factoria { overflow: hidden; }
.date {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange);
}
.feria { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.feria__copy > p { max-width: 52ch; }
.minis { display: flex; gap: 16px; margin: 30px 0 26px; flex-wrap: wrap; }
.mini {
  flex: 1 1 150px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px; padding: 20px 22px;
}
.mini i { color: var(--orange); font-size: 18px; }
.mini__num { font-size: clamp(40px, 4.4vw, 56px); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: #fff; margin-top: 10px; font-variant-numeric: tabular-nums; }
.mini__label { font-size: 15px; color: rgba(255,255,255,.75); margin-top: 6px; }
.partner-chip {
  display: inline-flex; align-items: center; gap: 14px; background: #fff; border-radius: 999px;
  padding: 10px 22px 10px 20px; color: var(--green-deep); font-size: 14px; font-weight: 600;
}
.partner-chip img { height: 34px; width: auto; }

.feria__media { position: relative; display: flex; justify-content: center; padding-right: 90px; }
.reel {
  position: relative; width: min(340px, 100%); aspect-ratio: 9 / 16; border-radius: var(--radius-photo);
  overflow: hidden; background: #0d2423; box-shadow: 0 30px 60px rgba(0,0,0,.28);
}
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel__play, .vcard__play {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px;
  display: grid; place-items: center; border-radius: 50%; border: 0;
  background: var(--orange); color: #fff; font-size: 28px;
  box-shadow: 0 0 0 10px rgba(239,127,26,.25);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .2s;
}
.reel__play i, .vcard__play i { margin-left: 5px; }
.reel__play:hover, .vcard:hover .vcard__play { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(239,127,26,.2); background: var(--orange-hover); }
.reel__cap {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; gap: 8px; align-items: center;
  background: rgba(0,0,0,.55); color: #fff; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 6px;
  transition: opacity .3s;
}
.reel.is-playing .reel__play, .reel.is-playing .reel__cap { opacity: 0; pointer-events: none; }
.feria__kelvin { position: absolute; right: 0; bottom: -30px; width: clamp(150px, 17vw, 220px); }

@media (max-width: 860px) {
  .feria { grid-template-columns: 1fr; }
  .feria__media { padding-right: 70px; }
  .feria__kelvin { width: 130px; right: -6px; bottom: -20px; }
  .reel { width: min(300px, 100%); }
}

/* Podcast: Kelvin pegado al borde izquierdo de la ventana */
.podcast { position: relative; margin-top: clamp(100px, 12vw, 160px); }
.podcast__kelvin {
  position: absolute; left: 0; top: 50%; translate: 0 -50%;
  width: clamp(240px, 24vw, 380px); z-index: 1; pointer-events: none;
}
.podcast__inner {
  max-width: 1440px; margin: 0 auto;
  padding: 0 var(--gutter) 0 calc(clamp(240px, 24vw, 380px) + 32px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 56px); align-items: center;
}
.podcast__copy > p { margin-bottom: 28px; }
.podcast__media { position: relative; padding-bottom: 40px; padding-right: 40px; }
.clip {
  position: absolute; right: 0; bottom: 0; width: clamp(110px, 11vw, 150px); aspect-ratio: 478 / 850;
  border-radius: 20px; overflow: hidden; border: 4px solid var(--green); background: #0d2423;
  box-shadow: 0 20px 40px rgba(0,0,0,.3);
}
.clip video { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1100px) {
  .podcast__inner { grid-template-columns: 1fr; padding-left: calc(clamp(240px, 24vw, 380px) + 24px); }
}
@media (max-width: 760px) {
  .podcast__kelvin { top: 0; translate: 0 0; width: 150px; }
  .podcast__inner { padding: 0 var(--gutter); }
  .podcast__copy { padding-left: 128px; min-height: 196px; }
  .podcast__copy .subtitle { font-size: 22px; }
  .podcast__copy > p:not(.date) { margin-left: -128px; }
  .podcast__copy .btn { margin-left: -128px; }
  .clip { width: 96px; border-radius: 14px; border-width: 3px; }
  .podcast__media { padding-right: 24px; padding-bottom: 36px; }
}

/* ---------- Tarjetas de vídeo ---------- */
.vcard {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: #0d2423;
  border-radius: var(--radius-photo); overflow: hidden; aspect-ratio: 16 / 9; text-align: left;
}
.vcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; }
.vcard::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.35));
  pointer-events: none;
}
.vcard:hover img { transform: scale(1.05); }
.vcard--big { box-shadow: 0 30px 60px rgba(0,0,0,.28); }

/* ---------- Trayectoria ---------- */
.head--kelvin { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; max-width: none; }
.head__kelvin { width: clamp(140px, 16vw, 210px); margin-bottom: -24px; }

.timeline { position: relative; display: grid; gap: clamp(40px, 6vw, 72px); padding: 20px 0; }
.timeline__line {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px;
  background: var(--line); border-radius: 3px;
}
.timeline__line span {
  display: block; height: 100%; background: var(--orange); border-radius: inherit;
  transform: scaleY(0); transform-origin: top; will-change: transform;
}
.hito { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 96px; }
.hito__dot {
  position: absolute; left: 50%; top: 40px; width: 56px; height: 56px; margin-left: -28px;
  display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--line);
  border: 3px solid var(--line); font-size: 20px; z-index: 1;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.hito.is-in .hito__dot { background: var(--orange); border-color: var(--orange); color: #fff; }
.hito__card {
  grid-column: 1; background: #fff; border-radius: var(--radius-photo); overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.hito__card:hover { box-shadow: 0 18px 40px rgba(0,0,0,.10); }
.hito:nth-of-type(odd) .hito__card { grid-column: 2; }
.hito__media { position: relative; border-radius: 0; aspect-ratio: 16 / 9; }
.hito__media.photo { border-radius: 0; }
.hito__seal {
  position: absolute; right: 16px; bottom: -36px; width: 104px !important; height: 104px !important;
  object-fit: contain !important; transform: none !important; filter: drop-shadow(0 6px 14px rgba(0,0,0,.25));
}
.hito__card:has(.hito__seal) { overflow: visible; }
.hito__card:has(.hito__seal) .hito__media { border-radius: var(--radius-photo) var(--radius-photo) 0 0; overflow: hidden; }
.hito__card:has(.hito__seal) .hito__media img:not(.hito__seal) { border-radius: var(--radius-photo) var(--radius-photo) 0 0; }
.hito__card:has(.hito__seal) .hito__body { padding-right: 130px; }
.hito__body { padding: 28px 32px 32px; }
.hito__body h3 { font-size: clamp(21px, 2vw, 25px); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; color: var(--ink); margin-bottom: 12px; text-wrap: balance; }
.hito__body p { font-size: 16px; }
.hito__logos { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.hito__logos img { height: 44px; width: auto; max-width: 160px; object-fit: contain; }
.hito__when { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.link-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 0; border: 0; background: none;
  color: var(--myrtle); font-weight: 700; font-size: 16px; transition: color .2s var(--ease);
}
.link-btn i { color: var(--orange); font-size: 20px; }
.link-btn:hover { color: var(--orange); }

@media (max-width: 860px) {
  .head--kelvin { grid-template-columns: 1fr 120px; gap: 12px; }
  .head__kelvin { width: 120px; margin-bottom: 0; align-self: start; }
  .head--kelvin .lead { grid-column: 1 / -1; }
  .timeline { padding-left: 0; }
  .timeline__line { left: 22px; }
  .hito { grid-template-columns: 1fr; padding-left: 64px; }
  .hito__dot { left: 22px; top: 24px; width: 44px; height: 44px; margin-left: -22px; font-size: 16px; }
  .hito__card, .hito:nth-of-type(odd) .hito__card { grid-column: 1; }
  .hito__body { padding: 22px 22px 26px; }
  .hito__card:has(.hito__seal) .hito__body { padding-right: 22px; padding-top: 44px; }
  .hito__seal { width: 84px !important; height: 84px !important; bottom: -30px; }
}

/* ---------- Franja de logos ---------- */
.logos { background: #fff; padding: clamp(64px, 8vw, 100px) 0; border-bottom: 1px solid var(--grey-100); }
.logos__title { text-align: center; font-size: 14px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--myrtle); margin-bottom: 44px; }
.logos__title { margin-bottom: 48px; }
/* Carrusel continuo: dos copias de la lista y desplazamiento del 50 % */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.logos__list { display: flex; align-items: center; gap: 72px; padding-right: 72px; }
.logo { display: grid; place-items: center; height: 130px; flex: none; }
.logo img {
  height: 112px; width: auto; max-width: 260px; object-fit: contain;
  filter: grayscale(1); opacity: .55;
  transition: filter .5s var(--ease), opacity .5s var(--ease);
}
.logo--wide img { height: 76px; }
.logo img[src*="fespa"] { height: 44px; }
.logo:hover img, .logo.is-color img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 560px) {
  .logos__list { gap: 44px; padding-right: 44px; }
  .logo { height: 100px; }
  .logo img { height: 86px; max-width: 200px; }
  .logo--wide img { height: 58px; }
  .logo img[src*="fespa"] { height: 40px; }
  .marquee__track { animation-duration: 32s; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { width: auto; justify-content: center; }
  .logos__list { flex-wrap: wrap; justify-content: center; padding: 0 24px; gap: 32px 48px; }
  .logos__list[aria-hidden] { display: none; }
}

/* ---------- Lo que viene ---------- */
.futuro { overflow: hidden; }
.arc {
  position: absolute; right: -180px; top: -180px; width: 520px; height: 520px; border-radius: 50%;
  border: 46px solid var(--orange); opacity: .9; pointer-events: none;
}
.futuro .head { position: relative; }
/* Kelvin dentro de cada tarjeta, asomando un poco por arriba: nunca invade el texto de la cabecera */
.ideas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 110px; }
.idea {
  position: relative; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-card); padding: 0 30px 34px;
  transition: background-color .3s var(--ease), transform .4s var(--ease);
}
.idea:hover { background: rgba(255,255,255,.12); }
.idea__stage { position: relative; height: 150px; display: flex; align-items: flex-end; margin-bottom: 22px; }
.idea__kelvin { position: absolute; right: -8px; bottom: -6px; height: 230px; width: auto; max-width: none; pointer-events: none; }
.idea__icons { display: flex; gap: 10px; position: relative; z-index: 1; }
.idea__icons i {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: rgba(239,127,26,.14); color: var(--orange); font-size: 19px;
}
.idea__num { font-size: 22px; font-weight: 800; color: var(--orange); letter-spacing: .02em; }
.idea h3 { font-size: clamp(22px, 2vw, 26px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; color: #fff; margin: 6px 0 14px; }
.idea p { font-size: 16px; }
@media (max-width: 960px) {
  .ideas { grid-template-columns: 1fr; gap: 90px; margin-top: 100px; max-width: 560px; }
  .arc { width: 300px; height: 300px; border-width: 28px; right: -150px; top: -120px; }
}
@media (max-width: 560px) {
  .idea { padding: 0 22px 28px; }
  .idea__stage { height: 120px; margin-bottom: 18px; }
  .idea__kelvin { height: 200px; right: -4px; }
}

/* ---------- Por qué encaja ---------- */
.fit { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 28px; align-items: center; }
.fit__col { background: var(--grey-100); border-radius: var(--radius-photo); padding: clamp(28px, 4vw, 48px); height: 100%; }
.fit__col h3 { display: flex; gap: 12px; align-items: center; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin-bottom: 24px; }
.fit__col h3 i { color: var(--myrtle); }
.fit__col--dark { background: var(--green); color: rgba(255,255,255,.88); }
.fit__col--dark h3 { color: #fff; }
.fit__col--dark h3 i { color: var(--orange); }
.fit__arrow {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--orange); color: #fff; font-size: 22px; box-shadow: 0 0 0 10px rgba(239,127,26,.15);
}
.checks { display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 38px; font-size: 16px; line-height: 1.5; }
.checks li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 12px;
  position: absolute; left: 0; top: 1px; width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 6px; background: var(--myrtle); color: #fff;
}
.checks--orange li::before { border-radius: 50%; background: var(--orange); }
@media (max-width: 860px) {
  .fit { grid-template-columns: 1fr; justify-items: center; }
  .fit__arrow { transform: rotate(90deg); width: 56px; height: 56px; }
  .fit__col { width: 100%; }
}

/* ---------- Cierre ---------- */
.cierre { background: linear-gradient(160deg, #1F4D4A 0%, var(--green-light) 100%); color: rgba(255,255,255,.88); overflow: hidden; padding-bottom: 0; }
.cierre .title { color: #fff; }
.cierre__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.cierre__copy { max-width: 720px; padding-bottom: var(--section-y); }
.cierre__copy > p { margin-top: 18px; max-width: 60ch; }
.cierre__copy .title { margin-bottom: 26px; }
.cierre__sub { margin: 44px 0 18px; font-size: 14px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.people { display: grid; gap: 14px; }
.person {
  display: flex; align-items: center; gap: 18px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 16px 20px;
}
.person__pic { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.person__pic--initials { display: grid; place-items: center; background: var(--myrtle); color: #fff; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.person__name { font-weight: 700; color: #fff; line-height: 1.35; }
.person__name span { font-weight: 400; color: rgba(255,255,255,.75); }
.person__mail { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; color: #fff; font-weight: 600; word-break: break-all; }
.person__mail i { color: var(--orange); }
.person__mail:hover { color: var(--orange); }
.agenda { margin-top: 26px; }
.agenda i { color: var(--orange); margin-right: 6px; }
.agenda a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.agenda a:hover { color: var(--orange); }
.cierre__kelvin { width: clamp(180px, 22vw, 300px); align-self: end; }
@media (max-width: 760px) {
  .cierre__inner { grid-template-columns: 1fr; gap: 0; }
  .cierre__copy { padding-bottom: 24px; }
  .cierre__kelvin { width: 150px; justify-self: end; }
  .person { padding: 14px 16px; gap: 14px; }
  .person__pic { width: 52px; height: 52px; }
}

/* ---------- Pie ---------- */
.footer { background: #000; color: rgba(255,255,255,.7); padding: 56px 0; font-size: 15px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.footer__brand { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer__brand > img { height: 34px; width: auto; }
.footer__brand a { color: #fff; font-weight: 600; }
.footer__brand a:hover { color: var(--orange); }
.footer__group { color: rgba(255,255,255,.6); }
.footer__powered { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-top: 6px; }
.footer__powered img { height: 30px; width: auto; }
.footer__factoria { display: flex; align-items: center; gap: 18px; }
.footer__factoria img { width: 72px; height: 72px; }
.footer__factoria strong { color: #fff; }

/* ---------- Ventana de vídeo ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8,20,20,.86); opacity: 0; transition: opacity .3s var(--ease); }
.modal__box { position: relative; width: min(1200px, 100%, calc((100vh - 120px) * 16 / 9)); opacity: 0; transform: scale(.97); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__box { opacity: 1; transform: none; }
.modal__frame { aspect-ratio: 16 / 9; background: #000; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal__close {
  position: absolute; right: 0; top: -58px; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: #fff; color: var(--green-deep); font-size: 20px; display: grid; place-items: center;
  transition: background-color .2s, color .2s;
}
.modal__close:hover { background: var(--orange); color: #fff; }
body.no-scroll { overflow: hidden; }

/* ---------- Animaciones de aparición ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .kelvin-in { opacity: 0; transform: translateY(36px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .kelvin-in--left { transform: translateX(-60px); }
.js .kelvin-in.is-in { opacity: 1; transform: none; }
.js .hito__card { opacity: 0; transform: translateY(32px); transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .4s var(--ease); }
.js .hito.is-in .hito__card { opacity: 1; transform: none; }

.sway { animation: sway 6s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .kelvin-in, .js .hito__card { opacity: 1; transform: none; }
  .bar__fill, .timeline__line span { transform: none; }
  .hito__dot { background: var(--orange); border-color: var(--orange); color: #fff; }
}

/* ---------- Ajustes tras la revisión ---------- */
.hito__logos img[src*="fespa"] { height: 26px; }
.hito__logos img[src*="wwm"] { height: 56px; }
.hito__card:has(.hito__seal) .hito__media { overflow: visible; }
.hito__seal { width: 120px !important; height: 120px !important; bottom: -48px; right: 20px; }
@media (min-width: 861px) {
  .hito + .hito { margin-top: -200px; }
  .feria__media { padding-right: 150px; }
  .feria__kelvin { right: 0; width: 200px; }
  .podcast__media { padding-right: 80px; padding-bottom: 70px; }
}
.fit { align-items: stretch; }
.fit__arrow { align-self: center; }
@media (max-width: 760px) {
  .podcast__copy .subtitle { min-height: 150px; }
  .arc { width: 220px; height: 220px; border-width: 22px; right: -130px; top: -140px; }
}
.person__links { display: flex; flex-wrap: wrap; gap: 2px 22px; margin-top: 4px; }
.person__links .person__mail { margin-top: 0; white-space: nowrap; word-break: normal; }
.person__mail .fa-phone { font-size: 14px; }

/* =========================================================
   Más movimiento (27/10)
   Las animaciones continuas usan las propiedades translate y rotate,
   independientes de transform, para no pisar las entradas al hacer scroll.
   ========================================================= */

/* Portada: titular que cabe en pantallas bajas y Kelvin siempre entero */
.hero__title { font-size: clamp(36px, min(5.6vw, 7.4vh), 76px); }
.hero__kelvin { display: flex; justify-content: flex-end; translate: calc(var(--mx, 0) * 14px) calc(var(--my, 0) * 8px); transition: translate .6s var(--ease); }
.hero__kelvin img { width: auto; max-width: 100%; max-height: calc(100vh - var(--nav-h) - 40px); max-height: calc(100svh - var(--nav-h) - 40px); }
.hero__bg { animation: kenburns 26s ease-in-out infinite alternate; translate: calc(var(--mx, 0) * -12px) calc(var(--my, 0) * -8px); transition: translate .8s var(--ease); }
@keyframes kenburns { from { transform: scale(1.03); } to { transform: scale(1.13); } }
.hero__copy .reveal:nth-child(2) { transition-delay: .12s; }
.hero__copy .reveal:nth-child(3) { transition-delay: .24s; }
.hero__copy .reveal:nth-child(4) { transition-delay: .36s; }

/* Kelvin flotando suavemente */
.feria__kelvin, .head__kelvin, .idea__kelvin { animation: float 4.5s ease-in-out infinite alternate; }
.idea:nth-child(2) .idea__kelvin { animation-delay: -1.5s; }
.idea:nth-child(3) .idea__kelvin { animation-delay: -3s; }
.head__kelvin { animation-duration: 5.5s; }
@keyframes float { from { translate: 0 0; } to { translate: 0 -12px; } }
.cierre__kelvin { transform-origin: 50% 100%; animation: tilt 5s ease-in-out infinite alternate; }
.podcast__kelvin { transform-origin: 0 60%; animation: tilt 6s ease-in-out infinite alternate; }
@keyframes tilt { from { rotate: -1.8deg; } to { rotate: 1.8deg; } }

/* Caja naranja que se rellena al aparecer el titular */
.js .reveal .box {
  background: linear-gradient(var(--orange), var(--orange)) no-repeat 0 0 / 0% 100%;
  transition: background-size .8s var(--ease) .35s, color .4s var(--ease) .45s;
  color: inherit;
}
.js .reveal.is-in .box { background-size: 100% 100%; color: #fff; }

/* Tarjetas que se elevan al pasar el ratón */
.js .team, .js .idea, .js .fit__col, .js .mini, .js .person, .js .hito__card { transition: opacity .6s var(--ease), transform .6s var(--ease), translate .35s var(--ease), box-shadow .35s var(--ease), background-color .3s var(--ease); }
.team:hover, .idea:hover, .fit__col:hover, .mini:hover, .person:hover, .hito__card:hover { translate: 0 -6px; }
.team:hover, .fit__col:hover, .hito__card:hover { box-shadow: 0 18px 40px rgba(0,0,0,.10); }

/* Botones de play con pulso */
.vcard__play, .reel__play { animation: pulse 2.6s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(239,127,26,.55); }
  100% { box-shadow: 0 0 0 26px rgba(239,127,26,0); }
}

/* Iconos de cifras que crecen al aparecer */
.js .stat .stat__icon { scale: .6; opacity: 0; transition: scale .6s var(--ease) .2s, opacity .6s var(--ease) .2s; }
.js .stat.is-in .stat__icon { scale: 1; opacity: 1; }

/* Hitos que entran desde su lado de la línea */
@media (min-width: 861px) {
  .js .hito:nth-of-type(odd) .hito__card { transform: translateX(56px); }
  .js .hito:nth-of-type(even) .hito__card { transform: translateX(-56px); }
  .js .hito.is-in .hito__card { transform: none; }
  .js .hito.is-in .hito__dot { animation: dot .6s var(--ease); }
}
@keyframes dot { from { scale: .4; } to { scale: 1; } }

/* Arco que gira con el scroll */
.arc { rotate: var(--arc, 0deg); }

@media (prefers-reduced-motion: reduce) {
  .hero__kelvin, .hero__bg { translate: none; }
  .js .reveal .box { background-size: 100% 100%; color: #fff; }
  .js .stat .stat__icon { scale: 1; opacity: 1; }
  .js .hito .hito__card { transform: none; }
}
/* Portada que cabe entera en portátiles de poca altura */
@media (min-width: 761px) {
  .hero__inner { padding-top: 28px; }
  .hero__copy { padding-bottom: clamp(28px, 5vh, 90px); }
  .hero__kelvin img { max-height: calc(100vh - var(--nav-h) - 70px); max-height: calc(100svh - var(--nav-h) - 70px); }
}
/* En móvil Kelvin saluda arriba, sobre la foto, en vez de quedar al final */
@media (max-width: 760px) {
  .hero { position: relative; }
  .hero__inner { position: static; padding-top: calc(var(--nav-h) + 200px); }
  .hero { padding-top: 0; }
  .hero__kelvin { position: absolute; top: calc(var(--nav-h) + 6px); right: 14px; width: 112px; margin: 0; }
  .hero__copy { padding-bottom: 56px; }
}
/* Kelvin de portada y cierre: más pequeños y separados del borde inferior,
   para que el balanceo nunca los recorte */
@media (min-width: 761px) {
  .hero__kelvin { width: clamp(180px, 20vw, 290px); padding-bottom: 36px; translate: calc(var(--mx, 0) * 12px) 0; }
  .hero__kelvin img { max-height: calc(100vh - var(--nav-h) - 150px); max-height: calc(100svh - var(--nav-h) - 150px); }
  .cierre__kelvin { width: clamp(160px, 17vw, 240px); margin-bottom: 48px; }
}
@media (max-width: 760px) {
  .hero__kelvin { width: 100px; }
  .cierre__kelvin { width: 130px; margin-bottom: 32px; }
}
.hero__kelvin img.sway { animation-name: sway-soft; }
@keyframes sway-soft { from { transform: rotate(-1deg); } to { transform: rotate(1deg); } }
.cierre__kelvin { animation-name: tilt-soft; }
@keyframes tilt-soft { from { rotate: -1deg; } to { rotate: 1deg; } }
