/* ==========================================================================
   LANDING-EDITORIAL.CSS — sistema "revista" para las landings long-tail
   (bodas-ibiza.html / eventos-corporativos-mallorca.html)

   No redefine variables de :root: reutiliza --bg, --cream, --cream-dim,
   --copper, --teal-dim, --bg-card, --font-display, --font-body, --wrap,
   --ease ya definidas en styles.css. Solo agrega tokens nuevos con fallback,
   para no romper el resto del sitio si styles.css cambia.
   ========================================================================== */

:root{
  --ed-rule: 1px solid var(--teal-dim, rgba(255,255,255,.14));
  --ed-num: var(--copper, #f2915a);
  --ed-num-op: .10;
  --ed-gap: clamp(24px, 4vw, 64px);
}

/* ---- Reset puntual de scroll para el marcador de progreso -------------- */
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior: auto; } }

/* ---- Marcador de progreso de "página de revista" ----------------------- */
.ed-progress{
  position: fixed;
  top: 0; right: 0;
  width: 3px; height: 100%;
  background: var(--teal-dim, rgba(255,255,255,.1));
  z-index: 60;
}
.ed-progress__fill{
  width: 100%; height: 0%;
  background: var(--copper);
  transform-origin: top;
}

/* ---- Corner label: "firma" fija que cambia según la sección ------------ */
.ed-corner{
  position: fixed;
  left: 20px; bottom: 18px;
  z-index: 55;
  font-family: var(--font-body);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: difference;
}
.ed-corner strong{ color: var(--copper); font-weight: 600; }
@media (max-width: 720px){ .ed-corner{ display:none; } }

/* ---- Issue line: reemplaza / acompaña al breadcrumb --------------------- */
.ed-issue{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 128px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  border-bottom: var(--ed-rule);
  padding-bottom: 14px;
}
.ed-issue a{ color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s var(--ease), border-color .2s var(--ease); }
.ed-issue a:hover{ color: var(--copper); border-color: var(--copper); }
.ed-issue__masthead{ color: var(--cream); font-weight: 600; }
.ed-issue__meta{ color: var(--copper); }

/* ---- Hero editorial ------------------------------------------------------ */
.ed-hero{
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 24px 110px;
  display: grid;
  grid-template-columns: 40px 1.05fr .95fr;
  gap: var(--ed-gap);
  align-items: end;
  overflow: hidden;
}
@media (max-width: 900px){
  .ed-hero{ grid-template-columns: 1fr; padding-bottom: 64px; }
  .ed-hero__folio{ display: none; }
}

.ed-hero__folio{
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cream-dim);
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
  border-right: var(--ed-rule);
}

.ed-hero__copy{ position: relative; }

.ed-hero__giant{
  position: absolute;
  top: -0.55em;
  left: -0.03em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(6rem, 16vw, 13rem);
  line-height: 1;
  color: var(--ed-num);
  opacity: var(--ed-num-op);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.ed-hero__kicker{
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 22px;
}
.ed-hero__kicker::before{
  content: "";
  width: 34px; height: 1px;
  background: var(--copper);
  display: inline-block;
}

.ed-hero__title{
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  line-height: 1.04;
  color: var(--cream);
  margin: 0 0 28px;
  max-width: 15ch;
}
.ed-hero__title .ed-line{ display: block; overflow: hidden; }
.ed-hero__title .ed-line > span{ display: inline-block; will-change: transform; }

.ed-hero__lead{
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--cream-dim);
  max-width: 54ch;
  margin: 0 0 36px;
}
.ed-hero__lead::first-letter{
  font-family: var(--font-display);
  font-size: 3.4em;
  line-height: .78;
  float: left;
  padding: .04em .07em 0 0;
  color: var(--copper);
}

.ed-hero__actions{ position: relative; z-index: 1; display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- Panel visual del hero: lienzo three.js + tarjeta emblema ----------- */
.ed-hero__visual{
  position: relative;
  display: grid;
  gap: 14px;
}
.ed-hero__canvas-frame{
  position: relative;
  aspect-ratio: 4/3;
  border: var(--ed-rule);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(242,145,90,.06), transparent 65%);
}
.ed-hero__canvas-frame canvas{ position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ed-hero__canvas-frame .landing-emblem__caption{
  position: absolute; bottom: 14px; left: 18px; z-index: 2;
  font-family: var(--font-body); font-size: .72rem; letter-spacing: .04em; color: var(--cream-dim);
}
.ed-hero__stat{
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-body); font-size: .74rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--cream-dim);
  border-top: var(--ed-rule); padding-top: 12px;
}
.ed-hero__stat strong{ font-family: var(--font-display); color: var(--cream); font-size: 1rem; text-transform: none; letter-spacing: 0; }

/* ---- Secciones editoriales con numeral de fondo ------------------------- */
.ed-section{
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 88px 24px;
  border-top: var(--ed-rule);
  overflow: hidden;
}
.ed-section__num{
  position: absolute;
  top: 46px; right: 24px;
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 7.5rem);
  color: var(--ed-num);
  opacity: var(--ed-num-op);
  line-height: 1;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.ed-section__kicker{
  position: relative; z-index: 1;
  font-family: var(--font-body); font-size: .82rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--copper); margin: 0 0 12px;
}
.ed-section__title{
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: var(--cream); margin: 0 0 20px; max-width: 18ch;
}
.ed-section__lead{
  position: relative; z-index: 1;
  font-family: var(--font-body); font-weight: 300; color: var(--cream-dim);
  line-height: 1.8; max-width: 62ch; margin: 0 0 16px;
}

/* ---- Grid editorial con numeración romana ------------------------------- */
.ed-grid{
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 44px;
  border-top: var(--ed-rule);
  border-left: var(--ed-rule);
}
.ed-card{
  border-right: var(--ed-rule);
  border-bottom: var(--ed-rule);
  padding: 30px 26px;
  background: var(--bg-card, transparent);
}
.ed-card__roman{
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--copper);
  margin-bottom: 14px;
}
.ed-card__eyebrow{
  display: block;
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 8px;
}
.ed-card h3{
  font-family: var(--font-display); font-weight: 400; font-size: 1.18rem;
  color: var(--cream); margin: 0 0 10px;
}
.ed-card p{
  font-family: var(--font-body); font-weight: 300; font-size: .93rem;
  line-height: 1.65; color: var(--cream-dim); margin: 0;
}

/* ---- Pull quotes estilo revista ------------------------------------------ */
.ed-quotes{
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--ed-gap);
  margin-top: 44px;
}
.ed-pullquote{ position: relative; padding-left: 8px; }
.ed-pullquote::before{
  content: "\201C";
  display: block;
  font-family: var(--font-display);
  font-size: 4.2rem;
  line-height: .6;
  color: var(--copper);
  opacity: .55;
  margin-bottom: 6px;
}
.ed-pullquote p{
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 1.28rem; line-height: 1.5; color: var(--cream); margin: 0 0 16px;
}
.ed-pullquote footer{
  font-family: var(--font-body); font-size: .78rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--cream-dim);
}

/* ---- Fotoensayo (galería) -------------------------------------------------- */
.ed-essay{
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px;
  margin-top: 44px;
}
.ed-essay figure{
  position: relative; margin: 0; aspect-ratio: 4/5; overflow: hidden;
}
.ed-essay img{ width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.9) contrast(1.05); transition: transform .7s var(--ease); }
.ed-essay figure:hover img{ transform: scale(1.045); }
.ed-essay figcaption{
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.72));
  font-family: var(--font-body); font-size: .74rem; letter-spacing: .03em;
  color: var(--cream);
  display: flex; justify-content: space-between; gap: 10px;
}
.ed-essay figcaption span:first-child{ font-style: italic; }
.ed-essay figcaption span:last-child{ color: var(--copper); font-family: var(--font-display); }

/* ---- Video destacado (inserción cinematográfica dentro del artículo) ------
   Reutiliza la mecánica de .reel-card__video / [data-reel] / [data-reel-unmute]
   ya cableada en main.js (play/pausa por IntersectionObserver + botón de
   sonido): solo se agrega el marco visual 16:9 a ancho completo, propio del
   sistema editorial de estas landings. ---------------------------------- */
.ed-feature-video{
  position: relative; z-index: 1;
  margin-top: 44px;
}
.ed-feature-video__frame{
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  outline: 1px solid rgba(242,145,90,0);
  transition: outline-color .6s var(--ease);
}
.ed-feature-video__frame:hover{ outline-color: rgba(242,145,90,.35); }
.ed-feature-video__frame .reel-card__video{ transition: transform 1.2s var(--ease); }
.ed-feature-video__frame:hover .reel-card__video{ transform: scale(1.015); }
.ed-feature-video__overlay{
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,6,10,.5) 0%, transparent 24%, transparent 68%, rgba(5,6,10,.7) 100%);
  pointer-events: none;
}
.ed-feature-video__label{
  position: absolute; top: 1.3rem; left: 1.3rem; z-index: 2;
  display: flex; align-items: baseline; gap: .6rem;
  font-family: var(--font-body); font-size: .68rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(245,241,231,.85);
  pointer-events: none;
}
.ed-feature-video__label-num{ color: var(--copper); font-family: var(--font-display); font-size: .95rem; letter-spacing: 0; }
.ed-feature-video__caption{
  position: absolute; left: 1.3rem; right: 4.5rem; bottom: 1.2rem; z-index: 2;
  max-width: 42ch;
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1rem, 1.8vw, 1.3rem); line-height: 1.35;
  color: var(--cream);
  pointer-events: none;
}
.ed-feature-video__unmute{
  bottom: 1.2rem; right: 1.3rem; left: auto;
  width: 44px; height: 44px; z-index: 4;
}
@media (max-width: 640px){
  .ed-feature-video__label{ top: 1rem; left: 1rem; font-size: .6rem; }
  .ed-feature-video__caption{ left: 1rem; right: 1rem; bottom: 3.6rem; max-width: none; }
  .ed-feature-video__unmute{ right: 1rem; bottom: 1rem; width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce){
  .ed-feature-video__frame:hover .reel-card__video{ transform: none; }
}

/* ---- Notas / FAQ como contratapa de revista ------------------------------- */
.ed-notes{
  position: relative; z-index: 1;
  margin-top: 36px;
  border-top: var(--ed-rule);
  column-count: 2;
  column-gap: var(--ed-gap);
}
@media (max-width: 780px){ .ed-notes{ column-count: 1; } }
.ed-note{
  break-inside: avoid;
  border-bottom: var(--ed-rule);
  padding: 22px 0;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
}
.ed-note__mark{
  font-family: var(--font-display); color: var(--copper); font-size: 1rem;
}
.ed-note h3{
  font-family: var(--font-body); font-weight: 500; font-size: .98rem;
  color: var(--cream); margin: 0 0 8px;
}
.ed-note p{
  font-family: var(--font-body); font-weight: 300; font-size: .9rem;
  line-height: 1.7; color: var(--cream-dim); margin: 0;
}

/* ---- Cierre editorial antes del contacto ---------------------------------- */
.ed-signoff{
  position: relative; z-index: 1;
  margin-top: 56px;
  padding-top: 30px;
  border-top: var(--ed-rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.ed-signoff strong{ color: var(--cream); font-family: var(--font-display); text-transform: none; letter-spacing: 0; font-size: 1rem; }

@media (prefers-reduced-motion: reduce){
  .ed-essay img{ transition: none; }
}

/* ---- Hero con foto a sangre (variante --photo, ej. bodas-ibiza) --------- */
.ed-hero--photo{
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: clamp(520px, 78vh, 760px);
  display: flex;
  align-items: flex-end;
}
.ed-hero__bg{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ed-hero__bg img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
}
.ed-hero__bg-overlay{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9,11,15,.15) 0%, rgba(9,11,15,.35) 45%, rgba(9,11,15,.82) 100%),
    linear-gradient(90deg, rgba(9,11,15,.82) 0%, rgba(9,11,15,.35) 48%, rgba(9,11,15,.05) 72%);
}
.ed-hero--photo .ed-hero__copy{
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin: 0 auto;
  width: 100%;
  padding: 150px 24px 72px;
}
.ed-hero--photo .ed-hero__kicker{ color: var(--cream); }
.ed-hero--photo .ed-hero__kicker::before{ background: var(--cream); }
.ed-hero--photo .ed-hero__title{
  color: #fff;
  text-shadow: 0 4px 28px rgba(0,0,0,.5);
}
.ed-hero--photo .ed-hero__lead{
  color: rgba(255,255,255,.92);
  text-shadow: 0 2px 16px rgba(0,0,0,.45);
}
.ed-hero--photo .ed-hero__lead::first-letter{ color: var(--cream); }
@media (max-width: 900px){
  .ed-hero--photo{ min-height: clamp(460px, 82vh, 620px); }
  .ed-hero--photo .ed-hero__copy{ padding: 130px 20px 56px; }
}

/* ---- Carrusel infinito (tarjetas de "momentos") ------------------------- */
.ed-carousel{
  position: relative;
  z-index: 1;
  margin-top: 44px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ed-carousel__track{
  display: flex;
  width: max-content;
  gap: 20px;
  animation: ed-carousel-scroll 32s linear infinite;
}
.ed-carousel__item{
  flex: 0 0 auto;
  width: min(300px, 78vw);
}
.ed-carousel .ed-card{
  height: 100%;
  border: var(--ed-rule);
}
@keyframes ed-carousel-scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .ed-carousel__track{ animation-play-state: paused; }
}

/* ---- Tarjeta estilo "grafito" (kicker + título editorial + bullets) ----- */
.ed-carousel .ed-card--graphite{
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, var(--graphite-2, #131619) 0%, var(--graphite, #0b0d10) 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 34px 30px;
  overflow: hidden;
  box-shadow:
    0 16px 34px -16px rgba(0,0,0,.6),
    0 4px 10px -2px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.ed-carousel .ed-card--graphite::before{
  content: "";
  position: absolute;
  inset: -60%;
  background: radial-gradient(circle at 50% 22%, rgba(242,145,90,.38), transparent 62%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
  z-index: 0;
}
.ed-carousel .ed-card--graphite:hover{
  transform: translateY(-6px);
  box-shadow:
    0 28px 50px -16px rgba(0,0,0,.7),
    0 0 46px rgba(242,145,90,.3),
    inset 0 1px 0 rgba(255,255,255,.07);
}
.ed-carousel .ed-card--graphite:hover::before{ opacity: 1; }
.ed-carousel .ed-card--graphite > *{ position: relative; z-index: 1; }
.ed-card--graphite .ed-card__eyebrow{
  color: var(--copper);
  font-size: .68rem;
  letter-spacing: .24em;
  margin-bottom: 16px;
}
.ed-card--graphite h3{
  font-family: var(--font-display);
  font-weight: 700;
  font-variant: small-caps;
  letter-spacing: .02em;
  font-size: 1.5rem;
  color: var(--cream);
  margin: 0 0 18px;
}
.ed-card__divider{
  display: block;
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  background: #060708;
  box-shadow: 0 4px 10px rgba(0,0,0,.4);
}
.ed-card__divider img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ed-card--graphite p{
  font-size: .92rem;
  line-height: 1.7;
  margin: 0 0 22px;
}
.ed-card__list{
  list-style: none;
  margin: auto 0 0;
  padding: 18px 0 0;
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.ed-card__list li{
  position: relative;
  padding-left: 18px;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 300;
  color: var(--cream-dim);
  line-height: 1.5;
}
.ed-card__list li::before{
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--copper);
}

/* ---- Contacto: variante de 2 cajones (foto + form) a pantalla completa -- */
.contact__grid--duo{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.contact__grid--duo .contact__cell{
  min-height: clamp(480px, 62vh, 720px);
}
.contact__cell--photo-sunset img{
  object-position: 58% 32%;
}
@media (max-width: 900px){
  .contact__grid--duo{ grid-template-columns: 1fr; }
  .contact__grid--duo .contact__cell{ min-height: 420px; }
}

/* ---- Borde que se dibuja al pasar el cursor (GSAP controla el trazo) --- */
.ed-card--draw{ position: relative; }
.ed-card__draw-svg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.ed-card__draw-svg rect{
  fill: none;
  stroke: var(--copper);
  stroke-width: 1.5;
}

/* ---- Telón: panel que se corre y revela la sección (GSAP + ScrollTrigger) */
.ed-curtain{
  position: absolute;
  inset: 0;
  z-index: 5;
  background: linear-gradient(100deg, var(--graphite, #0b0d10) 0%, var(--graphite-2, #131619) 100%);
  transform-origin: left center;
  pointer-events: none;
}
