/* =========================================================================
   FRANCIS — NOSOTROS CINEMATOGRÁFICO
   Luxury brand storytelling · GSAP-powered
   ========================================================================= */

/* ─── Variables locales ───────────────────────────────────────────────────── */
:root {
  --nos-bg:           #FCF7E6;
  --nos-bg2:          #F5EDD8;
  --nos-gold:         #663919;
  --nos-gold-dim:     rgba(102,57,25,.12);
  --nos-gold-glow:    rgba(102,57,25,.22);
  --nos-cream:        #663919;
  --nos-cream-60:     rgba(102,57,25,.6);
  --nos-cream-35:     rgba(102,57,25,.35);
  --nos-ink:          #FCF7E6;
  --nos-track:        72px;          /* ancho columna central del timeline  */
  --nos-ease:         cubic-bezier(0.23, 1, 0.32, 1);
}


/* =========================================================================
   RESET PARA ESTA PÁGINA
   ========================================================================= */
.page-template-page-nosotros #main-content {
  background: var(--nos-bg);
}


/* =========================================================================
   CURSOR PERSONALIZADO
   ========================================================================= */
@media (hover: hover) and (pointer: fine) {
  body.nos-cursor-active * { cursor: none !important; }

  .nos-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 10px; height: 10px;
    background: var(--nos-gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: transform .1s var(--nos-ease), opacity .3s;
    will-change: transform;
  }

  .nos-cursor-trail {
    position: fixed;
    top: 0; left: 0;
    width: 36px; height: 36px;
    border: 1px solid rgba(200,169,110,.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: transform .18s var(--nos-ease), opacity .3s, width .25s, height .25s;
    will-change: transform;
  }

  .nos-cursor.is-hovering        { transform: translate(-50%,-50%) scale(2.5); }
  .nos-cursor-trail.is-hovering  { width: 60px; height: 60px; border-color: var(--nos-gold); }
}

.nos-cursor,
.nos-cursor-trail {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .nos-cursor,
  .nos-cursor-trail { display: block; }
}


/* =========================================================================
   BARRA DE PROGRESO
   ========================================================================= */
.nos-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  z-index: 9999;
  pointer-events: none;
  background: transparent;
}

.nos-progress__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--nos-ink) 0%, var(--nos-gold) 100%);
  transform-origin: left;
  transition: width .08s linear;
}


/* =========================================================================
   01 · HERO
   ========================================================================= */
.nos-hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--nos-bg);
}

/* Fondo con luces ambientales */
.nos-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.nos-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.nos-hero__glow--1 {
  width: 60vw; height: 60vw;
  top: -20%; left: -15%;
  background: radial-gradient(circle, rgba(102,57,25,.07) 0%, transparent 70%);
}

.nos-hero__glow--2 {
  width: 50vw; height: 50vw;
  bottom: -10%; right: -10%;
  background: radial-gradient(circle, rgba(102,57,25,.05) 0%, transparent 70%);
}

/* Grain de película */
.nos-hero__grain {
  position: absolute;
  inset: 0;
  opacity: .04;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  background-repeat: repeat;
}

/* Contenido */
.nos-hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 32px 80px;
  max-width: 960px;
}

.nos-hero__eyebrow {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--nos-gold);
  margin: 0 0 40px;
  opacity: 0;                /* animated */
}

.nos-hero__headline {
  font-family: 'Bebas Neue', var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 7.5vw, 7.2rem);
  line-height: 1.08;
  color: var(--nos-cream);
  margin: 0 0 40px;
  letter-spacing: -.02em;
}

.nos-hero__line {
  display: block;
  overflow: hidden;
}

.nos-hero__line--italic {
  font-style: normal;
  color: var(--nos-gold);
}

/* Cada .nos-hero__line envuelve sus palabras en spans para el clip */
.nos-hero__line .word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.nos-hero__line .word-inner {
  display: inline-block;
  transform: translateY(110%);  /* animated: → translateY(0) */
}

.nos-hero__sub {
  font-family: var(--font-body);
  font-size: clamp(.95rem, 1.8vw, 1.15rem);
  font-weight: 300;
  color: var(--nos-cream-60);
  line-height: 1.7;
  margin: 0;
  opacity: 0;                /* animated */
}

/* Indicador de scroll */
.nos-hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;               /* animated */
}

.nos-hero__scroll-hint span {
  font-family: var(--font-body);
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--nos-cream-35);
}

.nos-hero__scroll-track {
  width: 1px;
  height: 60px;
  background: rgba(102,57,25,.15);
  border-radius: 1px;
  overflow: hidden;
  order: -1;
}

.nos-hero__scroll-thumb {
  width: 100%;
  height: 40%;
  background: var(--nos-gold);
  border-radius: 1px;
  animation: nos-scroll-pulse 2s ease-in-out infinite;
}

@keyframes nos-scroll-pulse {
  0%   { transform: translateY(-100%); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(250%); opacity: 0; }
}


/* =========================================================================
   02 · TIMELINE
   ========================================================================= */
.nos-timeline {
  position: relative;
  background: var(--nos-bg);
  padding: 60px 0 0;
  overflow: hidden;
}

/* Línea vertical continua */
.nos-tl-track {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: var(--nos-track);
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}

.nos-tl-line {
  width: 1px;
  height: 0;                /* animated by GSAP scrub */
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--nos-gold) 8%,
    var(--nos-gold) 92%,
    transparent 100%
  );
}


/* ─── MILESTONE ─────────────────────────────────────────────────────────── */
.nos-ms {
  position: relative;
  padding: 80px 48px;
  max-width: 1400px;
  margin: 0 auto;
}

.nos-ms + .nos-ms {
  padding-top: 60px;
}

.nos-ms--last {
  padding-bottom: 120px;
}

/* Año grande de fondo */
.nos-ms__year-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Bebas Neue', var(--font-display);
  font-size: clamp(120px, 20vw, 260px);
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 1px rgba(102,57,25,.06);
  letter-spacing: .04em;
  user-select: none;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
  opacity: 0;               /* animated */
}

/* Grid de 3 columnas: [imagen] [track] [contenido] */
.nos-ms__grid {
  display: grid;
  grid-template-columns: 1fr var(--nos-track) 1fr;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 1;
  min-height: clamp(480px, 65vh, 760px);
}

/* layout--left: contenido | track | imagen */
.nos-ms__grid--left .nos-ms__content-col { order: 1; }
.nos-ms__grid--left .nos-ms__track-col   { order: 2; }
.nos-ms__grid--left .nos-ms__image-col   { order: 3; }

/* layout--right: imagen | track | contenido */
.nos-ms__grid--right .nos-ms__image-col   { order: 1; }
.nos-ms__grid--right .nos-ms__track-col   { order: 2; }
.nos-ms__grid--right .nos-ms__content-col { order: 3; }

/* ─── Columna de imagen ─── */
.nos-ms__image-col {
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
}

.nos-ms__image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0;               /* animated */
}

.nos-ms__image-inner {
  position: absolute;
  inset: -10%;              /* extra para parallax */
  will-change: transform;
}

.nos-ms__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(.88) saturate(.9);
  transition: filter .6s var(--nos-ease);
}

.nos-ms__image-frame:hover .nos-ms__img {
  filter: brightness(.95) saturate(1);
}

.nos-ms__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(102,57,25,.12) 0%,
    transparent 60%
  );
  pointer-events: none;
}

/* ─── Columna central (dot) ─── */
.nos-ms__track-col {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
  z-index: 2;
}

.nos-ms__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--nos-gold);
  box-shadow:
    0 0 0 5px rgba(102,57,25,.15),
    0 0 24px rgba(102,57,25,.2);
  flex-shrink: 0;
  opacity: 0;               /* animated */
  scale: 0;                 /* animated */
}

/* ─── Columna de contenido ─── */
.nos-ms__content-col {
  padding: 0 60px;
  opacity: 0;               /* animated */
}

.nos-ms__content {
  max-width: 480px;
}

/* layout--right: content se alinea a la izquierda */
.nos-ms__grid--right .nos-ms__content-col {
  padding-left: 40px;
  padding-right: 60px;
}

/* layout--left: content se alinea a la derecha */
.nos-ms__grid--left .nos-ms__content-col {
  padding-left: 60px;
  padding-right: 40px;
  display: flex;
  justify-content: flex-end;
}

/* Meta: año + capítulo */
.nos-ms__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.nos-ms__year {
  font-family: 'Bebas Neue', var(--font-display);
  font-size: 1.1rem;
  letter-spacing: .1em;
  color: var(--nos-gold);
}

.nos-ms__chapter {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--nos-cream-35);
}

/* Titular */
.nos-ms__headline {
  font-family: 'Bebas Neue', var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1.15;
  color: var(--nos-cream);
  margin: 0 0 24px;
  letter-spacing: -.02em;
}

.nos-ms__headline em {
  font-style: normal;
  color: var(--nos-gold);
}

/* Cuerpo */
.nos-ms__body {
  font-family: var(--font-body);
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  font-weight: 300;
  color: var(--nos-cream-60);
  line-height: 1.75;
  margin: 0;
}

/* Línea decorativa */
.nos-ms__rule {
  width: 0;                 /* animated */
  height: 1px;
  background: linear-gradient(90deg, var(--nos-gold) 0%, transparent 100%);
  margin-top: 32px;
  transition: width 1.2s var(--nos-ease);
}


/* =========================================================================
   03 · MANIFIESTO
   ========================================================================= */
.nos-manifesto {
  position: relative;
  background: var(--nos-bg2);
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 32px;
}

.nos-manifesto__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.nos-manifesto__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
}

.nos-manifesto__glow--1 {
  width: 70vw; height: 70vw;
  top: -30%; left: -20%;
  background: radial-gradient(circle, rgba(102,57,25,.07) 0%, transparent 70%);
}

.nos-manifesto__glow--2 {
  width: 55vw; height: 55vw;
  bottom: -20%; right: -15%;
  background: radial-gradient(circle, rgba(102,57,25,.05) 0%, transparent 70%);
}

.nos-manifesto__grain {
  position: absolute;
  inset: 0;
  opacity: .035;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.nos-manifesto__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.nos-manifesto__eyebrow {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--nos-gold);
  margin: 0 0 56px;
  opacity: 0;               /* animated */
}

.nos-manifesto__headline {
  font-family: 'Tiempos Headline', Georgia, serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 1.1;
  color: var(--nos-cream);
  margin: 0 0 48px;
  letter-spacing: -.025em;
}

.nos-m-line {
  display: block;
  overflow: hidden;
}

.nos-m-line--italic {
  font-style: normal;
  color: var(--nos-gold);
}

.nos-m-line .word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.nos-m-line .word-inner {
  display: inline-block;
  transform: translateY(110%); /* animated */
}

.nos-manifesto__sub {
  font-family: var(--font-body);
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  font-weight: 300;
  color: var(--nos-cream-60);
  line-height: 1.7;
  margin: 0 0 56px;
  opacity: 0;               /* animated */
}

/* CTA Button */
.nos-manifesto__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 40px;
  border: 1px solid rgba(102,57,25,.4);
  border-radius: 2px;
  color: var(--nos-cream);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  opacity: 0;               /* animated */
  transition:
    color .4s var(--nos-ease),
    border-color .4s var(--nos-ease);
}

.nos-manifesto__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--nos-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--nos-ease);
  z-index: 0;
}

.nos-manifesto__cta:hover { color: var(--nos-bg); border-color: var(--nos-gold); }
.nos-manifesto__cta:hover::before { transform: scaleX(1); }

.nos-manifesto__cta-label,
.nos-manifesto__cta-icon {
  position: relative;
  z-index: 1;
}

.nos-manifesto__cta-icon {
  display: flex;
  align-items: center;
  transition: transform .4s var(--nos-ease);
}

.nos-manifesto__cta:hover .nos-manifesto__cta-icon {
  transform: translateX(5px);
}


/* =========================================================================
   RESPONSIVE
   ========================================================================= */

/* ─── Tabletas (≤ 1024px) ─── */
@media (max-width: 1024px) {
  .nos-ms {
    padding: 60px 32px;
  }

  .nos-ms__content-col {
    padding: 0 40px;
  }

  .nos-ms__grid--right .nos-ms__content-col,
  .nos-ms__grid--left  .nos-ms__content-col {
    padding: 0 36px;
  }

  .nos-ms__image-col {
    padding: 0 28px;
  }
}

/* ─── Mobile (≤ 768px) ─── */
@media (max-width: 768px) {

  /* Timeline pasa a columna única */
  .nos-tl-track    { display: none; }

  .nos-ms {
    padding: 56px 24px;
  }

  .nos-ms__year-bg {
    font-size: 100px;
  }

  .nos-ms__grid {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 32px;
  }

  /* Todos los milestones: imagen arriba, punto, contenido abajo */
  .nos-ms__grid--right .nos-ms__image-col,
  .nos-ms__grid--left  .nos-ms__image-col   { order: 1; }

  .nos-ms__grid--right .nos-ms__track-col,
  .nos-ms__grid--left  .nos-ms__track-col   { order: 2; }

  .nos-ms__grid--right .nos-ms__content-col,
  .nos-ms__grid--left  .nos-ms__content-col { order: 3; }

  .nos-ms__image-col {
    padding: 0;
    height: auto;
  }

  .nos-ms__image-frame {
    aspect-ratio: 16 / 9;
  }

  .nos-ms__track-col {
    height: 24px;
    justify-content: flex-start;
    padding-left: 0;
  }

  .nos-ms__dot {
    width: 10px; height: 10px;
  }

  .nos-ms__content-col {
    padding: 0 !important;
  }

  .nos-ms__grid--left .nos-ms__content-col {
    justify-content: flex-start;
  }

  .nos-hero__sub br { display: none; }
  .nos-manifesto__sub br { display: none; }
}

/* ─── Pantallas pequeñas (≤ 480px) ─── */
@media (max-width: 480px) {
  .nos-hero__inner {
    padding: 100px 20px 60px;
  }

  .nos-ms {
    padding: 48px 20px;
  }

  .nos-manifesto {
    padding: 100px 20px;
  }
}
