/* Componentes de landings (hero, banda de cifras, marcos, declaración, CTA, animaciones). */

/* ---------- Texto común ---------- */
.eyebrow { margin: 0; font-size: .875rem; font-weight: 400; letter-spacing: .24em; text-transform: uppercase; color: var(--color-teal); }
.eyebrow--dark { color: var(--color-navy); }
.tag--soft { background: #E6F1F8; color: var(--color-navy); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: var(--fs-small); padding: .5rem .875rem; }
.pills { display: flex; flex-wrap: wrap; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.pills li { padding: .5rem .875rem; border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--radius); font-size: var(--fs-small); }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; }
.btn--lg { min-height: 54px; padding-inline: 30px; font-size: .8125rem; }
.section--navy a.btn--light { color: var(--color-black); }
.section--navy a.btn--light:hover { color: var(--color-navy); }

/* ---------- Hero ---------- */
.hero { background: var(--bg-dark); color: var(--fg-on-dark); padding-block: var(--space-8) var(--space-9); overflow: hidden; }
.hero__grid { display: flex; flex-wrap: wrap; gap: var(--space-8); align-items: center; }
.hero__copy { flex: 1 1 28rem; display: flex; flex-direction: column; gap: var(--space-5); }
.hero__media { flex: 1 1 30rem; min-width: 0; }
.hero h1 { color: var(--fg-on-dark); font-size: var(--fs-display); line-height: 1; margin: 0; max-width: 14ch; }
.hero .lead { color: rgba(255, 255, 255, .86); font-size: clamp(1.0625rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 50ch; margin: 0; }
.cue { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--fg-on-dark); text-decoration: none; font-size: var(--fs-small); margin-top: var(--space-2); }
.cue svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.cue:hover { color: var(--color-teal); }

/* ---------- Marcos (corchetes verdes) ---------- */
.frame { position: relative; margin: var(--space-4); }
.frame::before, .frame::after { content: ""; position: absolute; top: -16px; bottom: -16px; width: 56px; border: 16px solid var(--youth-green); pointer-events: none; z-index: 1; }
.frame::before { left: -16px; border-right: 0; }
.frame::after { right: -16px; border-left: 0; }
.frame--photo { height: 520px; overflow: visible; }
.frame--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); display: block; }
.frame--sm { height: 460px; }
.frame--sm::before, .frame--sm::after { top: -14px; bottom: -14px; width: 48px; border-width: 14px; }
.frame--sm::before { left: -14px; } .frame--sm::after { right: -14px; }
.frame--box { margin: 0; }
.frame--box::before, .frame--box::after { width: 64px; }
@media (max-width: 40rem) { .frame--photo { height: 340px; } .frame--sm { height: 320px; } }

/* ---------- Banda de cifras ---------- */
.band { background: var(--bg-dark); color: var(--fg-on-dark); padding-block: var(--space-8); border-top: 1px solid var(--line-on-dark); }
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr)); }
.stat { position: relative; display: flex; flex-direction: column; gap: var(--space-3); padding-top: 28px; }
.stat__bar { position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--c); transform-origin: 0 50%; }
.stat__num { font-family: var(--font-display); font-size: clamp(3rem, 5vw, 4.5rem); line-height: 1; color: var(--fg-on-dark); font-variant-numeric: tabular-nums; }
.stat__label { font-size: var(--fs-lead); line-height: 1.45; color: rgba(255, 255, 255, .82); max-width: 26ch; }

/* ---------- Highlights ---------- */
.split { display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 60rem) { .split { grid-template-columns: 1fr 1fr; } }
.split h2 { max-width: 20ch; }

/* ---------- Foto a todo el ancho ---------- */
.banner { position: relative; overflow: hidden; background: var(--bg-dark); height: clamp(18.75rem, 38vw, 35rem); }
.banner img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.banner__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: linear-gradient(90deg, var(--youth-blue), var(--youth-teal), var(--youth-green)); }

/* ---------- Declaración de Malta ---------- */
.declaration { display: flex; flex-wrap: wrap; gap: var(--space-8); align-items: flex-start; }
.declaration > * { flex: 1 1 26rem; min-width: 0; }
.declaration h2 { max-width: 20ch; }
.recs { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.recs li { display: flex; flex-direction: column; gap: 4px; padding: 14px 0 14px 18px; border-left: 4px solid var(--c); }
.recs__label { font-size: .8125rem; letter-spacing: .22em; text-transform: uppercase; color: var(--color-teal); }
.recs__title { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.25; color: var(--fg-on-dark); }
.quote { margin: 0; position: relative; padding-top: 84px; }
.quote__mark { position: absolute; top: -30px; left: -6px; font-family: var(--font-display); font-size: 200px; line-height: 1; color: var(--youth-green); }
.quote blockquote { position: relative; margin: 0; font-family: var(--font-display); font-size: clamp(1.625rem, 2.8vw, 2.375rem); line-height: 1.25; color: var(--fg-on-dark); }
.quote figcaption { margin-top: var(--space-5); font-size: var(--fs-body); color: rgba(255, 255, 255, .86); }
.quote strong { color: var(--fg-on-dark); }

/* ---------- CTA ---------- */
.cta { border-top: 1px solid var(--line-on-dark); }
.cta .container { max-width: 1100px; }
.cta__inner { padding: clamp(2rem, 5vw, 4rem); display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: flex-end; justify-content: space-between; }
.cta__inner .stack { flex: 1 1 28rem; }
.cta h2 { max-width: 18ch; margin: 0; }
.cta .lead { max-width: 54ch; color: rgba(255, 255, 255, .86); margin: 0; }
.cta__meta { margin-top: var(--space-8); display: flex; flex-wrap: wrap; gap: var(--space-5); justify-content: space-between; align-items: center; font-size: var(--fs-small); letter-spacing: .08em; }
.cta__meta a { font-weight: 600; letter-spacing: 0; }

/* ---------- Animaciones (solo sin reducción de movimiento) ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes bracketL { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: none; } }
@keyframes bracketR { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@media (prefers-reduced-motion: no-preference) {
  .hero .a-up { animation: fadeUp .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .d1 { animation-delay: .15s; } .hero .d2 { animation-delay: .3s; } .hero .d3 { animation-delay: .45s; } .hero .d4 { animation-delay: .6s; }
  .hero .frame::before { animation: bracketL 1s .2s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .frame::after { animation: bracketR 1s .2s cubic-bezier(.2, .7, .2, 1) both; }
  .cue svg { animation: cue 1.8s ease-in-out infinite; }
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .reveal[data-delay="1"] { transition-delay: .12s; } .js .reveal[data-delay="2"] { transition-delay: .24s; } .js .reveal[data-delay="3"] { transition-delay: .36s; }
  .lift { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
  .lift:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
}

/* ---------- Landings de contenido (sin foto de hero) ---------- */
.hero--text { position: relative; }
.hero--text h1 { max-width: 20ch; }
.hero--text .hero__copy { flex-basis: 40rem; }
.hero--text::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: linear-gradient(90deg, var(--youth-blue), var(--youth-teal), var(--youth-green)); }
.hero__aside { flex: 1 1 18rem; display: grid; gap: var(--space-4); align-content: center; }
.hero__aside .stat { padding-top: 22px; }
.section__head { max-width: 46rem; margin-bottom: var(--space-7); }
.section__head h2 { margin-bottom: var(--space-3); }
.section__head .lead { margin: 0; }
.section--navy .lead { color: rgba(255, 255, 255, .86); }
.section--navy .eyebrow { color: var(--color-teal); }
.tag--soft + .tag--soft { margin-left: var(--space-2); }

/* Tarjetas con franja de color */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); counter-reset: card; }
.card2 { position: relative; background: var(--color-white); border: 1px solid var(--line); border-radius: var(--radius); padding: calc(var(--space-5) + 6px) var(--space-5) var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.card2::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--c); }
.card2__num { font-family: var(--font-display); font-size: 2.25rem; line-height: 1; color: var(--c); }
.card2 h3 { font-size: 1.375rem; margin: 0; }
.card2 p { margin: 0; color: var(--fg-muted); font-size: var(--fs-small); }
.section--navy .card2 { background: rgba(255, 255, 255, .06); border-color: var(--line-on-dark); }
.section--navy .card2 h3 { color: var(--fg-on-dark); }
.section--navy .card2 p { color: rgba(255, 255, 255, .8); }

/* Pasos con etiqueta (CARE · ACT · SCALE, Prioritise · Identify…) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.step { border-left: 4px solid var(--c); padding: var(--space-3) 0 var(--space-3) var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.step__label { font-size: .8125rem; letter-spacing: .22em; text-transform: uppercase; color: var(--color-teal); }
.step__title { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; color: var(--fg-on-dark); margin: 0; }
.section:not(.section--navy) .step__title { color: var(--color-navy); }
.step p { margin: 0; color: rgba(255, 255, 255, .84); }
.section:not(.section--navy) .step p { color: var(--fg-muted); }
.step__eg { font-size: var(--fs-small); letter-spacing: .02em; color: var(--color-teal); }

/* Lista numerada (7 principios) */
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); counter-reset: p; }
.principles li { counter-increment: p; display: flex; gap: var(--space-4); align-items: baseline; padding: var(--space-4) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-lead); }
.principles li::before { content: counter(p); flex: none; width: 2.25rem; font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--c, var(--youth-teal)); }

/* Cita destacada y dato grande */
.pull { margin: 0; padding: var(--space-5) 0 var(--space-5) var(--space-6); border-left: 6px solid var(--youth-green); font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.25; color: var(--color-navy); max-width: 34ch; }
.section--navy .pull { color: var(--fg-on-dark); }

/* Tres épocas (7 Wonders) */
.eras { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.era { background: var(--color-white); color: var(--fg); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.era img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.era__body { padding: var(--space-4) var(--space-5) var(--space-5); border-top: 6px solid var(--c); display: flex; flex-direction: column; gap: 2px; }
.era__kicker { font-size: .8125rem; letter-spacing: .22em; text-transform: uppercase; color: var(--fg-muted); }
.era__title { font-family: var(--font-display); font-size: 1.375rem; line-height: 1.2; color: var(--color-navy); }
.era__where { font-size: var(--fs-small); color: var(--fg-muted); }

/* Ruta a las 7 (línea de tiempo) */
.route { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); }
.route li { position: relative; padding-top: 28px; display: flex; flex-direction: column; gap: var(--space-2); }
.route li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--c); }
.route__date { font-size: .8125rem; letter-spacing: .18em; text-transform: uppercase; color: var(--color-teal); }
.route__count { font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--fg-on-dark); }
.route p { margin: 0; color: rgba(255, 255, 255, .84); font-size: var(--fs-small); }

/* Vídeo bajo demanda (no carga YouTube hasta pulsar) */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--bg-dark); border-radius: var(--radius); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__btn { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); background: linear-gradient(135deg, #151B34, #1d2a52); color: var(--fg-on-dark); border: 0; cursor: pointer; font: inherit; }
.video__btn:hover { color: var(--color-teal); }
.video__btn svg { width: 72px; height: 72px; fill: currentColor; }
.video__btn span { font-size: var(--fs-small); letter-spacing: .12em; text-transform: uppercase; }
.video__note { margin-top: var(--space-2); font-size: var(--fs-small); color: rgba(255, 255, 255, .7); }

/* Enlaces de acción en línea */
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.btn--outline-light { background: transparent; color: var(--color-white); border-color: rgba(255, 255, 255, .55); }
.btn--outline-light:hover { background: var(--color-white); border-color: var(--color-white); color: var(--color-navy); }
.section--navy a.btn--outline-light { color: var(--color-white); }
.section--navy a.btn--outline-light:hover { color: var(--color-navy); }
.criteria { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.criteria li { border-left: 4px solid var(--youth-teal); padding: 4px 0 4px var(--space-4); color: rgba(255, 255, 255, .86); }
.criteria strong { color: var(--fg-on-dark); }

.hero__logo { justify-items: center; }
.hero__logo img { width: min(100%, 26rem); height: auto; display: block; }
