/* ==========================================================
   Jaime Pabón Celis — estilos compartidos (portada + programas)
   Paleta tomada del logo: negro y azul petróleo #0088A8.
   Mobile-first. Tokens en :root para migrar a theme.json.
   ========================================================== */
:root {
  --ink: #0b1115;
  --ink-2: #131d23;
  --teal: #0088a8;
  --teal-deep: #00566b;
  --teal-night: #022b36;
  --teal-lite: #7fd6ea;
  --mist: #e8f4f7;
  --white: #ffffff;
  --text: #1a2329;
  --text-soft: #4b5a63;
  --line: rgba(11, 17, 21, .14);

  --f-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --max: 74rem;
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {-webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.65; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.06; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.7rem, 8vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
p { margin: 0 0 1em; }
em { font-style: italic; color: var(--teal); font-weight: 400; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--teal); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; position: relative; }
.sec { padding-block: clamp(4.5rem, 11vw, 8rem); position: relative; }
.sec--mist { background: var(--mist); }
.eyebrow {
  font: 600 .78rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1.25rem; display: flex; align-items: center; gap: .75rem;
}
.eyebrow::before { content: ""; width: 2.25rem; height: 2px; background: currentColor; }
.lede { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--text-soft); max-width: 38em; }

/* Secciones sobre foto: imagen de fondo + velo */
.on-photo { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.on-photo > .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.on-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--veil, linear-gradient(100deg, rgba(2,43,54,.92), rgba(2,43,54,.55))); }
.on-photo h1, .on-photo h2, .on-photo h3 { color: #fff; }
.on-photo .lede { color: rgba(255,255,255,.88); }
.on-photo .eyebrow { color: var(--teal-lite); }
.on-photo em { color: var(--teal-lite); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 3rem; padding: .8rem 1.6rem;
  border-radius: 999px; border: 1.5px solid transparent; font: 600 .98rem/1 var(--f-body);
  text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-deep); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--teal-deep); }
.btn--line { border-color: currentColor; background: transparent; }
.btn--line:hover { background: rgba(0, 136, 168, .12); }
.on-photo .btn--line:hover, .tone-dark .btn--line:hover { background: rgba(255,255,255,.15); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--teal-lite); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--teal); padding-bottom: 2px; display: inline-flex; gap: .5rem; }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* Marcos de foto */
.photo {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(155deg, var(--teal), var(--teal-night)); aspect-ratio: 4 / 5; isolation: isolate;
}
.photo--wide { aspect-ratio: 3 / 2; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform 1.2s var(--ease); }
.photo:hover img { transform: scale(1.04); }
.photo::after { content: attr(data-slot); position: absolute; inset: auto 1rem 1rem; z-index: 0; font: 600 .72rem/1.3 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-lite); }

/* Cabecera clara con logo */
.site-header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; padding-block: .7rem; }
.brand { display: block; }
.brand img { height: 3.6rem; width: auto; }
@media (min-width: 48em) { .brand img { height: 4.2rem; } }
.brand-text { font: 500 1.25rem var(--f-display); text-decoration: none; }
.nav__toggle { background: none; border: 1.5px solid var(--ink); color: var(--ink); border-radius: 999px; padding: .55rem 1rem; font: 600 .85rem var(--f-body); cursor: pointer; }
.nav__menu { position: fixed; inset: 0; background: #fff; padding: 6rem var(--gutter) 2rem; display: none; flex-direction: column; gap: .25rem; overflow-y: auto; z-index: 40; }
.nav__menu.is-open { display: flex; }
.nav__menu a, .nav__menu summary { font: 500 1.7rem var(--f-display); text-decoration: none; padding: .5rem 0; cursor: pointer; list-style: none; color: var(--ink); }
.nav__menu summary::-webkit-details-marker { display: none; }
.nav__menu details ul { list-style: none; margin: 0 0 .5rem; padding: 0 0 0 1rem; border-left: 2px solid var(--teal); }
.nav__menu details a { font: 400 1.1rem var(--f-body); }
.nav__close { position: absolute; top: 1.1rem; right: var(--gutter); }
.nav__menu a:hover, .nav__menu summary:hover { color: var(--teal); }
.nav__menu .btn { color: #fff; font: 600 1rem var(--f-body); margin-top: 1rem; justify-content: center; }
.nav__menu .btn:hover { color: #fff; }

/* Pasión y objetivos */
.pasion { --veil: linear-gradient(180deg, rgba(2,43,54,.78), rgba(2,43,54,.92)); }
.split { display: grid; gap: 3rem; }
.cards { display: grid; gap: 1rem; margin-top: 1.5rem; }
.card { padding: 1.6rem; border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); background: rgba(255,255,255,.08); }
.card h3 { margin-bottom: .5rem; font-size: 1.35rem; }
.card p:last-child { margin: 0; color: rgba(255,255,255,.82); }
.card__tag { color: var(--teal-lite); font: 600 .75rem var(--f-body); letter-spacing: .18em; text-transform: uppercase; margin-bottom: .5rem; }

/* Split con foto */
.feature { display: grid; gap: 2.5rem; align-items: center; }
.big-number { font: 400 clamp(3.2rem, 11vw, 7rem)/.95 var(--f-display); color: var(--teal); letter-spacing: -.03em; margin-bottom: 1rem; }
.big-number small { display: block; font: 600 .78rem var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--text-soft); margin-top: .75rem; }
.ytma { --veil: linear-gradient(100deg, rgba(11,17,21,.92), rgba(11,17,21,.6)); }
.ytma .big-number { color: var(--teal-lite); }
.ytma .big-number small { color: rgba(255,255,255,.8); }

/* Boletín */
.secretos { background: var(--teal); color: #fff; overflow: hidden; }
.secretos h2, .secretos .lede { color: #fff; }
.secretos .eyebrow { color: #fff; }
.secretos .lede { opacity: .92; }
.secretos .photo { background: #fff; aspect-ratio: 16 / 9; box-shadow: 14px 14px 0 var(--ink); }
.secretos .photo img { object-position: 78% 30%; }
.newsletter { display: grid; gap: .75rem; margin-top: 1.75rem; max-width: 30rem; }
.newsletter label { font-weight: 600; font-size: .9rem; }
.newsletter input[type=email] { width: 100%; min-height: 3.25rem; padding: .8rem 1.2rem; font: inherit; color: var(--ink); border: 2px solid transparent; border-radius: 999px; background: #fff; }
.newsletter input:focus-visible { border-color: var(--ink); outline-offset: 2px; outline-color: #fff; }
.newsletter small { opacity: .85; font-size: .85rem; }

/* Servicios */
.services { display: grid; gap: 1.5rem; margin-top: 3rem; }
.service { position: relative; min-height: 26rem; display: flex; align-items: flex-end; border-radius: var(--radius); overflow: hidden; isolation: isolate; color: #fff; }
.service img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.service:hover img.bg { transform: scale(1.06); }
.service::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(2,43,54,.1) 25%, rgba(2,43,54,.94)); }
.service__body { padding: 2rem; }
.service h3 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.service h3 sup { font-size: .5em; }
.service p { color: rgba(255,255,255,.88); max-width: 28em; }
.service .link-arrow { border-color: var(--teal-lite); }

/* Cinco Caminos: mosaico de fotos */
.caminos { background: var(--ink); color: #fff; }
.caminos h2 { color: #fff; }
.caminos .lede { color: rgba(255,255,255,.8); }
.paths { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; gap: .75rem; }
.path { position: relative; min-height: 15rem; border-radius: var(--radius); overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; }
.path > a { position: absolute; inset: 0; z-index: 3; }
.path img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.path::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(2,43,54,0) 30%, rgba(2,43,54,.92)); transition: background .4s; }
.path:hover img { transform: scale(1.07); }
.path:hover::before { background: linear-gradient(180deg, rgba(0,136,168,.25), rgba(0,86,107,.95)); }
.path__body { padding: 1.4rem 1.5rem; }
.path h3 { color: #fff; margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.path span { font: 600 .78rem var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-lite); }
.temas { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.2); }
.temas h3 { font-size: 1.1rem; font-family: var(--f-body); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-lite); }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.chips a { display: inline-block; font: 500 .9rem var(--f-body); padding: .5rem 1rem; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; text-decoration: none; color: #fff; transition: background .25s, border-color .25s; }
.chips a:hover { background: var(--teal); border-color: var(--teal); }

/* Testimonios */
.testi { margin-top: 2.5rem; display: grid; gap: 1.5rem; }
.testi__empty { border: 2px dashed var(--teal); border-radius: var(--radius); padding: 2.25rem 1.75rem; background: #fff; }
.testi__empty p { font: 400 clamp(1.3rem, 3vw, 1.85rem)/1.3 var(--f-display); max-width: 30em; color: var(--ink); }
.quote { margin: 0; padding: 1.75rem; background: #fff; border-left: 4px solid var(--teal); }
.quote p { font: 400 1.25rem/1.45 var(--f-display); }
.quote cite { font-style: normal; font-weight: 600; font-size: .9rem; color: var(--text-soft); }
.testi .photo { aspect-ratio: 4 / 3; }
.testi .photo img { object-position: 60% 35%; }

/* Cierre */
.cierre { --veil: linear-gradient(0deg, rgba(11,17,21,.88), rgba(11,17,21,.7)); text-align: center; }
.cierre .btn-row { justify-content: center; }
.cierre .lede { margin-inline: auto; }

/* Pie */
.footer { background: var(--ink); color: #fff; padding: 4.5rem 0 2rem; }
.footer__grid { display: grid; gap: 2.5rem; }
.footer h2 { font: 600 .78rem var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--teal-lite); margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer a { text-decoration: none; color: rgba(255,255,255,.85); }
.footer a:hover { color: var(--teal-lite); }
.footer .logo-chip { display: inline-block; }
.footer .logo-chip img { height: 4.2rem; width: auto; }
.footer p.tag { margin-top: 1rem; color: rgba(255,255,255,.7); max-width: 24em; }
.social { display: flex; gap: .75rem; margin-top: 1.25rem; }
.social a { width: 2.9rem; height: 2.9rem; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; display: grid; place-items: center; transition: background .25s, border-color .25s; }
.social a:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.social svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }
.copy { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .88rem; color: rgba(255,255,255,.6); }

/* Página de programa */
.page-hero { padding: 4rem 0 5rem; --veil: linear-gradient(100deg, rgba(2,43,54,.94), rgba(2,43,54,.6)); }
.crumbs { font-size: .85rem; color: rgba(255,255,255,.75); margin-bottom: 2rem; }
.crumbs a { text-decoration: none; }
.facts { display: grid; gap: 1.25rem; margin: 0; }
.facts div { border-top: 2px solid var(--teal); padding-top: 1rem; }
.facts dt { font: 600 .75rem var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--teal-deep); }
.facts dd { margin: .3rem 0 0; font: 400 1.3rem var(--f-display); color: var(--ink); }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.checklist li { padding-left: 2rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .55em; width: .9rem; height: .9rem; border-radius: 50%; background: var(--teal); }
.cta-band { text-align: center; }
.cta-band .btn-row { justify-content: center; }

/* Revelado suave */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (min-width: 48em) {
  .nav__toggle, .nav__close { display: none; }
  .nav__menu { position: static; display: flex !important; flex-direction: row; align-items: center; gap: 1.75rem; padding: 0; background: none; overflow: visible; }
  .nav__menu a, .nav__menu summary { font: 500 .95rem var(--f-body); padding: 0; }
  .nav__menu .btn { margin: 0; padding: .6rem 1.3rem; min-height: 0; }
  .nav__menu details { position: relative; }
  .nav__menu details ul { position: absolute; top: 2rem; right: 0; width: 17rem; background: #fff; padding: 1rem 1.25rem; border: 0; border-top: 3px solid var(--teal); display: grid; gap: .6rem; box-shadow: 0 18px 40px rgba(0,0,0,.15); }
  .split { grid-template-columns: 1fr 1.25fr; gap: 5rem; align-items: start; }
  .cards { grid-template-columns: 1fr 1fr; }
  .feature { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .feature--flip .photo { order: 2; }
  .services { grid-template-columns: 1fr 1fr; }
  .service { min-height: 34rem; }
  .paths { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 17rem; }
  .path:nth-child(1) { grid-column: span 3; grid-row: span 2; }
  .path:nth-child(2) { grid-column: span 3; }
  .path:nth-child(3) { grid-column: span 3; }
  .path:nth-child(4), .path:nth-child(5) { grid-column: span 3; }
  .path:nth-child(4) { grid-column: 1 / span 3; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .testi { grid-template-columns: 1.2fr 1fr; align-items: stretch; }
  .testi .photo { aspect-ratio: auto; min-height: 20rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .route, .photo img, .service img.bg, .path img { transition: none; }
}
.facts + .split { margin-top: 3.5rem; }

/* Veladuras más ligeras en escritorio para que la foto respire */
.pasion .bg { object-position: 50% 40%; }
@media (min-width: 48em) {
  .pasion { --veil: linear-gradient(90deg, rgba(2,43,54,.95) 0%, rgba(2,43,54,.82) 50%, rgba(2,43,54,.3) 100%); }
  .ytma { --veil: linear-gradient(100deg, rgba(11,17,21,.9) 0%, rgba(11,17,21,.45) 70%, rgba(11,17,21,.2) 100%); }
}
section[id] { scroll-margin-top: 4.5rem; }


/* ============ HERO CINEMATOGRÁFICO (claro) ============ */
.site-header--over { position: fixed; inset: 0 0 auto 0; transition: background .35s, box-shadow .35s, border-color .35s; background: transparent; border-bottom-color: transparent; }
.site-header--over.is-scrolled { background: #fff; box-shadow: 0 6px 30px rgba(0,0,0,.08); border-bottom-color: var(--line); }

.hero2 { position: relative; min-height: 100svh; display: flex; flex-direction: column; background: #f7f7f7; overflow: hidden; isolation: isolate; padding: 6.5rem 0 0; }
.hero2__inner { position: relative; z-index: 2; }
.hero2__media { position: relative; order: 2; height: 44svh; margin-top: -1rem; z-index: 0; }
.hero2__media img { width: 100%; height: 100%; object-fit: cover; object-position: 86% 30%; animation: kenburns 22s ease-out both; }
.hero2__routes { order: 3; position: relative; z-index: 2; display: grid; gap: .9rem; margin-top: -3.5rem; padding-bottom: 1.5rem; opacity: 0; animation: fade 1.2s var(--ease) 1.35s forwards; }
.hero2 h1 { font-size: clamp(3.3rem, 13vw, 6rem); line-height: .94; letter-spacing: -.035em; margin: 0 0 1.5rem; }
.hero2 h1 em { color: var(--teal); }
.hero2 .lede { max-width: 30em; }
.ln { display: block; overflow: hidden; padding-bottom: .08em; }
.ln > span { display: block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.ln:nth-child(1) > span { animation-delay: .15s; }
.ln:nth-child(2) > span { animation-delay: .3s; }
.ln:nth-child(3) > span { animation-delay: .45s; }
.ln:nth-child(4) > span { animation-delay: .6s; }
.hero2__inner > :not(h1) { opacity: 0; animation: fade 1s var(--ease) forwards; }
.hero2__inner .eyebrow { animation-delay: 0s; }
.hero2__inner .lede { animation-delay: .9s; }
.hero2__inner .btn-row { animation-delay: 1.1s; }

.gcard { display: grid; gap: .45rem; padding: 1.6rem 1.7rem; text-decoration: none; color: #fff; border-radius: var(--radius); background: var(--ink); box-shadow: 0 20px 50px rgba(2,43,54,.28); transition: transform .35s var(--ease), background .35s; }
.gcard small { font: 600 .74rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--teal-lite); }
.gcard h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); margin: 0; color: #fff; }
.gcard p { margin: 0; color: rgba(255,255,255,.82); font-size: .98rem; }
.gcard .link-arrow { margin-top: .4rem; justify-self: start; border-color: var(--teal-lite); }
.gcard--teal { background: var(--teal); }
.gcard--teal small { color: #fff; opacity: .9; }
.gcard--teal .link-arrow { border-color: #fff; }
.gcard:hover { transform: translateY(-6px); }
.gcard--teal:hover { background: var(--teal-deep); }
.gcard:not(.gcard--teal):hover { background: var(--teal-night); }

.marquee { background: var(--ink); color: #fff; overflow: hidden; white-space: nowrap; padding: 1rem 0; }
.marquee__track { display: inline-flex; animation: marquee 38s linear infinite; }
.marquee span { font: 400 clamp(1.2rem, 2.6vw, 1.7rem) var(--f-display); font-style: italic; padding-inline: 1.5rem; display: inline-flex; align-items: center; gap: 3rem; }
.marquee span::after { content: "✦"; font-style: normal; font-size: .7em; color: var(--teal-lite); }

@keyframes rise { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (min-width: 48em) {
  .hero2 { padding: 0; justify-content: flex-end; }
  .hero2__media { position: absolute; inset: -6% 0 0 0; height: auto; margin: 0; order: 0; z-index: -1; }
  .hero2__media img { object-position: 70% 25%; }
  .hero2__inner { padding-top: 7rem; padding-bottom: 2rem; margin-block: auto; }
  .hero2 h1 { font-size: clamp(3.8rem, 6.4vw, 6.8rem); }
  .hero2__inner .lede, .hero2 h1 { max-width: 62%; }
  .hero2__routes { grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 0; padding-bottom: 2rem; max-width: min(var(--max), 100% - 2 * var(--gutter)); }
  .nav__menu details a { color: var(--ink); }
  .nav__menu details a:hover { color: var(--teal); }
}
@media (prefers-reduced-motion: reduce) {
  .ln > span, .hero2__inner > :not(h1), .hero2__routes { animation: none; transform: none; opacity: 1; }
  .hero2__media img, .marquee__track { animation: none; }
}


/* ---- Ajustes WordPress ---- */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
body.jpc { margin: 0; }
.jpc .photo img, .jpc .on-photo > .bg { max-width: none; }
