/**
 * Sobre page component styles — Smart Catering Child
 *
 * Estilos específicos del template page-sobre.php. Reutiliza al máximo
 * los tokens y componentes globales (.sc-section, .sc-eyebrow, .sc-button,
 * .sc-prose, .sc-grid-12, .sc-watermark, .sc-video).
 *
 * Namespaced bajo body.scc-fase0.
 *
 * @package SmartCateringChild
 */

/* ===== Grid primitives reutilizados de home.css =====
 * Originalmente .sc-grid-12 / .sc-col-N viven en home.css (solo home), pero
 * page-sobre.php los usa también. Los duplicamos aquí en lugar de mover a
 * layout.css para mantener el blast radius pequeño en Fase 3. TODO Fase 4:
 * promover a layout.css o components/grid.css. */
body.scc-fase0 .scc-sobre .sc-grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.5rem;
  align-items: center;
}
body.scc-fase0 .scc-sobre .sc-col-4 { grid-column: span 4; }
body.scc-fase0 .scc-sobre .sc-col-5 { grid-column: span 5; }
body.scc-fase0 .scc-sobre .sc-col-7 { grid-column: span 7; }
body.scc-fase0 .scc-sobre .sc-col-8 { grid-column: span 8; }
@media (max-width: 768px) {
  body.scc-fase0 .scc-sobre .sc-grid-12 { grid-template-columns: 1fr; }
  body.scc-fase0 .scc-sobre .sc-col-4,
  body.scc-fase0 .scc-sobre .sc-col-5,
  body.scc-fase0 .scc-sobre .sc-col-7,
  body.scc-fase0 .scc-sobre .sc-col-8 { grid-column: 1 / -1; }
}

/* ===== Prose (manifiesto / bios) reutilizado de home.css ===== */
body.scc-fase0 .scc-sobre .sc-prose p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.8);
  margin: 0 0 1.5rem;
}
body.scc-fase0 .scc-sobre .sc-prose p:last-child { margin-bottom: 0; }
body.scc-fase0 .scc-sobre .sc-prose strong {
  /* WCAG AA fix: gold #D99E39 = 2.36:1 on cream (FAIL). gold-ink #a87410 = 4.61:1 (PASS). */
  color: var(--color-gold-ink, #a87410);
  font-weight: 400;
}
body.scc-fase0 .scc-sobre .sc-prose em { font-style: italic; }
body.scc-fase0 .scc-sobre .sc-section--dark .sc-prose p {
  color: rgba(255, 255, 255, 0.78);
}

/* ===== HERO video full-bleed (refactor 2026-06-05) =====
 * El hero del Sobre ahora es el video "Nuestra historia" autoplay+muted+loop
 * con overlay oscuro y texto editorial encima. Sustituye al hero cream
 * estático anterior. Mantiene el id #nuestra-historia para no romper
 * anchors externos. */
body.scc-fase0 .sc-sobre-hero--video {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--color-dark, #111);
  color: #fff;
  isolation: isolate;
}
body.scc-fase0 .sc-sobre-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
body.scc-fase0 .sc-sobre-hero__video-controls {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 3;
  display: flex;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.5rem;
  border-radius: 999px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
body.scc-fase0 .sc-sobre-hero__video-controls:hover { opacity: 1; }
body.scc-fase0 .sc-sobre-hero__video-btn {
  appearance: none;
  background: transparent;
  border: 0;
  color: #fff;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.18s ease;
}
body.scc-fase0 .sc-sobre-hero__video-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}
body.scc-fase0 .sc-sobre-hero__video-btn:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  outline: 2px solid rgba(255, 255, 255, 0.9); /* a11y: white ring on dark overlay = passes AA */
  outline-offset: 2px;
}
body.scc-fase0 .sc-sobre-hero__video-btn svg { display: none; }
body.scc-fase0 .sc-sobre-hero__video-btn[data-video-action="toggle-play"] .icon-pause { display: block; }
body.scc-fase0 .sc-sobre-hero__video-controls.is-paused .sc-sobre-hero__video-btn[data-video-action="toggle-play"] .icon-pause { display: none; }
body.scc-fase0 .sc-sobre-hero__video-controls.is-paused .sc-sobre-hero__video-btn[data-video-action="toggle-play"] .icon-play { display: block; }
body.scc-fase0 .sc-sobre-hero__video-btn[data-video-action="toggle-mute"] .icon-muted { display: block; }
body.scc-fase0 .sc-sobre-hero__video-controls.is-unmuted .sc-sobre-hero__video-btn[data-video-action="toggle-mute"] .icon-muted { display: none; }
body.scc-fase0 .sc-sobre-hero__video-controls.is-unmuted .sc-sobre-hero__video-btn[data-video-action="toggle-mute"] .icon-unmuted { display: block; }
body.scc-fase0 .sc-sobre-hero__video-btn[data-video-action="toggle-fullscreen"] svg { display: block; }
@media (max-width: 640px) {
  body.scc-fase0 .sc-sobre-hero__video-controls { bottom: 1rem; right: 1rem; }
}
body.scc-fase0 .sc-sobre-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.78) 100%);
  z-index: 1;
}
body.scc-fase0 .sc-sobre-hero__content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(6rem, 12vh, 9rem) clamp(1.25rem, 4vw, 3rem) clamp(4rem, 8vh, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
}
body.scc-fase0 .sc-sobre-hero__title {
  font-family: var(--font-serif, "Merriweather", serif);
  font-size: clamp(2.5rem, 6.5vw, 5.25rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 1.25rem 0 1.5rem;
  max-width: 56rem;
  color: #fff;
}
body.scc-fase0 .sc-sobre-hero__lead {
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  max-width: 48rem;
}
@media (max-width: 768px) {
  body.scc-fase0 .sc-sobre-hero--video {
    min-height: 90vh;
  }
  body.scc-fase0 .sc-sobre-hero__content {
    min-height: 90vh;
    padding-bottom: 3rem;
  }
}

/* ===== INTRO blanco ===== */
body.scc-fase0 .sc-sobre-intro {
  padding-top: clamp(4rem, 8vh, 6rem);
  padding-bottom: clamp(4rem, 8vh, 6rem);
}
/* Manifiesto centrado: eyebrow + hairline dorada + lede serif acotado, para que
 * el statement de marca se lea como declaración intencional y no como párrafo
 * de cuerpo suelto. */
body.scc-fase0 .sc-sobre-intro__inner {
  max-width: 60ch;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
body.scc-fase0 .sc-sobre-intro__rule {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--color-gold, #D99E39);
  margin-bottom: 1.5rem;
}
body.scc-fase0 .sc-sobre-intro__eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold-ink, #a87410);
  margin-bottom: 1.25rem;
}
body.scc-fase0 .sc-sobre-intro__text {
  font-family: var(--font-serif, "Merriweather", serif);
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.85);
  text-wrap: balance;
  margin: 0;
}

/* ===== BIO blocks (Harri / Kika) ===== */
body.scc-fase0 .sc-sobre-bio {
  padding-top: clamp(5rem, 10vh, 8rem);
  padding-bottom: clamp(5rem, 10vh, 8rem);
}
body.scc-fase0 .sc-sobre-bio .sc-grid-12 {
  gap: 3rem;
  align-items: start;
}
body.scc-fase0 .sc-sobre-bio--reverse .sc-col-7 { order: 1; }
body.scc-fase0 .sc-sobre-bio--reverse .sc-col-5 { order: 2; }

body.scc-fase0 .sc-sobre-bio__photo {
  aspect-ratio: 4 / 5;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
body.scc-fase0 .sc-sobre-bio__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.scc-fase0 .sc-section--dark .sc-sobre-bio__photo {
  background: rgba(255, 255, 255, 0.05);
}
body.scc-fase0 .sc-sobre-bio__photo--placeholder {
  /* Solid neutral — intentional placeholder, not a dev artifact. */
  background: rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
body.scc-fase0 .sc-sobre-bio__photo--placeholder::after {
  content: 'H.L.';
  font-family: var(--font-serif, 'Merriweather', serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  color: rgba(0, 0, 0, 0.25);
  letter-spacing: 0.05em;
}
body.scc-fase0 .sc-sobre-bio__photo-caption {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
}
body.scc-fase0 .sc-section--dark .sc-sobre-bio__photo-caption {
  color: rgba(255, 255, 255, 0.5);
}

/* Móvil: invertimos a una sola columna manteniendo orden lógico (texto primero). */
@media (max-width: 768px) {
  body.scc-fase0 .sc-sobre-bio .sc-grid-12 { gap: 2rem; }
  body.scc-fase0 .sc-sobre-bio--reverse .sc-col-5,
  body.scc-fase0 .sc-sobre-bio--reverse .sc-col-7 { order: initial; }
}

/* ===== CLIENTES — Logo wall ===== */
body.scc-fase0 .sc-sobre-clients {
  padding-top: clamp(5rem, 10vh, 7rem);
  padding-bottom: clamp(5rem, 10vh, 7rem);
}
body.scc-fase0 .sc-sobre-clients__header {
  max-width: 42rem;
  margin-bottom: 3rem;
}
body.scc-fase0 .sc-sobre-clients__header .sc-section__lead {
  margin-top: 1rem;
  color: rgba(0, 0, 0, 0.6);
  font-size: 1rem;
}
body.scc-fase0 .sc-sobre-clients__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2.5rem 3rem;
  align-items: center;
}
@media (max-width: 1024px) {
  body.scc-fase0 .sc-sobre-clients__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  body.scc-fase0 .sc-sobre-clients__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}
body.scc-fase0 .sc-sobre-clients__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  padding: 0.5rem;
}
body.scc-fase0 .sc-sobre-clients__item img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.62;
  filter: grayscale(100%);
  transition: opacity 240ms ease, filter 240ms ease;
}
body.scc-fase0 .sc-sobre-clients__item:hover img {
  opacity: 1;
  filter: grayscale(0%);
}

/* ===== Initials fallback en placeholder de foto (p.ej. Kika) ===== */
body.scc-fase0 .sc-sobre-bio__photo-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif, "Merriweather", serif);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 300;
  color: rgba(0, 0, 0, 0.18);
  letter-spacing: 0.05em;
  user-select: none;
}

/* ===== VIDEO cinemático ===== */
body.scc-fase0 .sc-sobre-video {
  padding-top: 0;
  padding-bottom: clamp(3rem, 6vh, 5rem);
}
body.scc-fase0 .sc-sobre-video .sc-section__inner--full {
  max-width: 100%;
  padding: 0;
}
body.scc-fase0 .sc-sobre-video .sc-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
body.scc-fase0 .sc-sobre-video .sc-video--cine {
  width: 100%;
  height: 100%;
}
body.scc-fase0 .sc-sobre-video__caption {
  max-width: 880px;
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* ===== TRAYECTORIA — track editorial horizontal (migrado 2026-06-18) ========
 * La trayectoria Londres → Málaga usa ahora el MISMO componente canónico que
 * las divisiones del home: .sc-anika-wipe (__wrapper > __sticky > __viewport >
 * __track con paneles __media/__bg + __scrim + __folio + __text). Toda la
 * mecánica (pin + translateX GPU en desktop, stack vertical con crossfade en
 * mobile / coarse / reduced-motion) vive en anika-wipe.css y app.js — NO se
 * duplica aquí.
 *
 * El antiguo deck sticky (.sc-trayectoria / .sc-trayectoria-chapter*) se eliminó:
 * estaba MUERTO (ningún template ni JS lo referenciaba) y su CSS sticky pineaba
 * 4 imágenes sobre-dimensionadas que repintaban cada frame de scroll → lag.
 *
 * Lo único scoped aquí es la distinción del modifier --trayectoria respecto a
 * --divisiones: es un VIAJE, no un servicio, así que cada panel abre con un
 * overline editorial (year + tag dorados) en lugar de un CTA. La estructura y
 * mecánica son idénticas a las del home. */
body.scc-fase0 .sc-anika-wipe--trayectoria .sc-anika-wipe__overline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.85rem;
  margin: 0 0 0.85rem;
}
body.scc-fase0 .sc-anika-wipe--trayectoria .sc-anika-wipe__year {
  font-family: var(--font-serif, "Merriweather", serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--color-gold, #D99E39);
}
body.scc-fase0 .sc-anika-wipe--trayectoria .sc-anika-wipe__tag {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  color: var(--color-gold, #D99E39);
}
/* Trailing padding so the last card (04 "Hoy") is not clipped against the
 * viewport edge when the JS drives translateX to scrollWidth. Only on this
 * variant — the divisiones track on home is unaffected. */
body.scc-fase0 .sc-anika-wipe--trayectoria .sc-anika-wipe__track {
  padding-inline-end: clamp(1.5rem, 5vw, 5rem);
}
/* ===== TEAM BAND (section 4a) ===== */
body.scc-fase0 .sc-sobre-team {
  padding-top: clamp(4rem, 8vh, 6rem);
  padding-bottom: clamp(4rem, 8vh, 6rem);
}
body.scc-fase0 .sc-sobre-team__figure {
  margin: 0;
}
body.scc-fase0 .sc-sobre-team__band {
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
}
body.scc-fase0 .sc-sobre-team__band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.scc-fase0 .sc-sobre-team__caption {
  max-width: 1100px;
  margin: 1rem auto 0;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold-ink, #a87410);
  text-align: center;
}

/* ===== KIKA — single centered text column (section 4b) ===== */
body.scc-fase0 .sc-sobre-kika {
  padding-top: clamp(4rem, 8vh, 6rem);
  padding-bottom: clamp(5rem, 10vh, 8rem);
}
body.scc-fase0 .sc-sobre-kika__text {
  max-width: 660px;
  margin: 0 auto;
}
body.scc-fase0 .sc-sobre-kika .sc-prose p {
  color: rgba(0, 0, 0, 0.8);
}

/* ===== CTA final ===== */
body.scc-fase0 .sc-sobre-cta {
  padding-top: clamp(5rem, 10vh, 7rem);
  padding-bottom: clamp(5rem, 10vh, 7rem);
}
body.scc-fase0 .sc-sobre-cta__inner {
  text-align: center;
}
body.scc-fase0 .sc-sobre-cta__inner .sc-section__lead {
  margin: 1.25rem auto 2rem;
}
