/* ==========================================================
   Confluir · estilos
   Mobile first. Sin frameworks.
   ========================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Marca */
  --petroleo: #398A9E;
  --petroleo-700: #2A6D7D;   /* texto y botones (contraste AA) */
  --petroleo-900: #163F49;   /* sección de cierre */
  --aqua: #A4D8DE;
  --aqua-200: #D5EDF0;
  --aqua-50: #EEF7F8;
  --crema: #FFF7F7;
  --crema-2: #FBEFED;
  --tinta: #1D1E20;
  --tinta-70: #4A4C50;
  --linea: #EADCDA;
  --blanco: #FFFFFF;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 1px 2px rgba(29, 30, 32, .04), 0 4px 14px rgba(29, 30, 32, .05);
  --shadow: 0 2px 6px rgba(29, 30, 32, .04), 0 18px 40px -12px rgba(22, 63, 73, .18);

  --gutter: 20px;
  --section: clamp(72px, 11vw, 136px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 68px;

  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, .h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  font-variation-settings: "SOFT" 50, "opsz" 72;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
h3, .h3 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.7rem); }
p, li { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--petroleo-700);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--tinta); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top .2s;
}
.skip:focus { top: 12px; }

.i { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Botones y links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .85em 1.5em;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--sans); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease), background-color .3s, color .3s, box-shadow .35s var(--ease), border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--petroleo-700); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(42, 109, 125, .7);
}
.btn-primary:hover { background: #235D6B; box-shadow: 0 16px 30px -12px rgba(42, 109, 125, .75); }
.btn-ghost { border-color: rgba(29, 30, 32, .18); color: var(--tinta); background: transparent; }
.btn-ghost:hover { border-color: var(--petroleo-700); color: var(--petroleo-700); background: rgba(255, 255, 255, .6); }
.btn-ghost .i-arrow { transition: transform .35s var(--ease); }
.btn-ghost:hover .i-arrow { transform: translateX(4px); }
.btn-light { background: var(--crema); color: var(--petroleo-900); }
.btn-light:hover { background: #fff; box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .5); }
.btn-sm { min-height: 44px; padding: .6em 1.2em; font-size: .95rem; }

.link {
  display: inline-flex; align-items: center; gap: .45em;
  color: var(--petroleo-700); font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size .4s var(--ease);
  padding-bottom: 2px;
}
.link:hover { background-size: 100% 1.5px; }
.link .i-arrow { width: 1em; height: 1em; transition: transform .35s var(--ease); }
.link:hover .i-arrow { transform: translateX(4px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font: 600 .78rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--petroleo-700); margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1.5px; background: currentColor; opacity: .6;
}
.eyebrow--light { color: var(--aqua); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 247, 247, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--linea); box-shadow: 0 6px 24px -18px rgba(29, 30, 32, .3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--tinta); }
.brand img { width: 30px; height: auto; }
.wordmark { font-family: var(--serif); font-size: 1.5rem; font-weight: 300; letter-spacing: -.01em; line-height: 1; }
.wordmark b { font-weight: 600; color: var(--petroleo-700); }

.nav-toggle {
  display: grid; place-items: center; width: 46px; height: 46px; margin-right: -8px;
  background: none; border: 0; border-radius: 12px; cursor: pointer; color: var(--tinta);
}
.bars, .bars::before, .bars::after {
  display: block; width: 22px; height: 1.8px; background: currentColor; border-radius: 2px;
  transition: transform .4s var(--ease), opacity .3s;
}
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; }
.bars::after { top: 7px; }
.nav-open .bars { background: transparent; }
.nav-open .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .bars::after { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  background: var(--crema);
  border-bottom: 1px solid var(--linea);
  padding: 12px var(--gutter) 28px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 30px 40px -30px rgba(29, 30, 32, .25);
  visibility: hidden; opacity: 0; transform: translateY(-10px);
  transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s .4s;
}
.nav-open .nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.nav ul { display: flex; flex-direction: column; }
.nav li a {
  display: block; padding: 14px 2px; text-decoration: none;
  font-family: var(--serif); font-size: 1.5rem; border-bottom: 1px solid var(--linea);
}
.nav .btn { align-self: flex-start; }

/* "Servicios" es otra página: se distingue de los links internos */
.nav-page {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  text-decoration: none; padding: 16px 18px; border-radius: var(--radius);
  background: var(--aqua-50); border: 1px solid var(--aqua-200); color: var(--tinta);
  transition: background-color .3s, border-color .3s, color .3s;
}
.nav-page-text { display: grid; gap: 2px; }
.nav-page strong { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.1; }
.nav-page small { font-size: .85rem; color: var(--tinta-70); }
.nav-page .i { width: 22px; height: 22px; color: var(--petroleo-700); transition: transform .35s var(--ease); }
.nav-page:hover .i { transform: translate(3px, -3px); }
.nav-page[aria-current="page"] { background: var(--petroleo-700); border-color: var(--petroleo-700); color: #fff; }
.nav-page[aria-current="page"] small, .nav-page[aria-current="page"] .i { color: var(--aqua-200); }

/* Sin JS el menú queda visible como lista simple */
html:not(.js) .nav { position: static; visibility: visible; opacity: 1; transform: none; box-shadow: none; border: 0; padding: 0 0 16px; }
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .header-inner { height: auto; flex-wrap: wrap; padding-top: 12px; }

/* El menú completo entra cómodo recién desde 1120px; antes, hamburguesa */
@media (min-width: 1120px) {
  .nav-toggle { display: none; }
  .nav, html:not(.js) .nav {
    position: static; visibility: visible; opacity: 1; transform: none;
    flex-direction: row; align-items: center; gap: 28px;
    padding: 0; background: none; border: 0; box-shadow: none;
  }
  .nav ul { flex-direction: row; gap: 26px; }
  .nav-page {
    padding: 8px 14px 8px 16px; border-radius: 999px; gap: 8px;
    background: transparent; border: 1.5px solid var(--petroleo-700); color: var(--petroleo-700);
    position: relative; margin-left: -4px;
  }
  .nav-page::before {
    content: ""; position: absolute; left: -17px; top: 50%; width: 1px; height: 22px; margin-top: -11px;
    background: var(--linea);
  }
  .nav-page small { display: none; }
  .nav-page strong { font-family: var(--sans); font-size: .95rem; font-weight: 600; }
  .nav-page .i { width: 16px; height: 16px; color: currentColor; }
  .nav-page:hover { background: var(--aqua-50); }
  .nav-page[aria-current="page"] .i { color: #fff; }
  .nav li a {
    font-family: var(--sans); font-size: .95rem; font-weight: 500; padding: 6px 0; border: 0; white-space: nowrap;
    color: var(--tinta-70); position: relative; transition: color .25s;
  }
  .nav li a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
    background: var(--petroleo); transform: scaleX(0); transform-origin: left;
    transition: transform .35s var(--ease);
  }
  .nav li a:hover, .nav li a[aria-current="page"] { color: var(--tinta); }
  .nav li a:hover::after, .nav li a[aria-current="page"]::after { transform: scaleX(1); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(36px, 7vw, 88px) 0 clamp(130px, 13vw, 190px);
}
/* Las corrientes: JS las redibuja en píxeles reales (sin cortes) y las hace fluir con el scroll */
.hero-streams, .cta-streams {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
  fill: none; stroke-linecap: round; overflow: visible; pointer-events: none;
}
.stream { stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.stream-a { stroke: var(--petroleo); stroke-width: 1.6; opacity: .55; }
.stream-b { stroke: var(--aqua); stroke-width: 2.4; opacity: .9; }
.stream-c { stroke: var(--aqua); stroke-width: 1.2; opacity: .55; }
.stream-dot { fill: var(--petroleo); opacity: 0; transition: opacity .6s; }
.stream-dot--b { fill: var(--aqua); }
.streams-live .stream-dot { opacity: .85; transition: opacity .8s 2.2s; }
.stream-ring { fill: none; stroke: var(--aqua); stroke-width: 1.2; opacity: 0; }
.stream-core { fill: var(--aqua); opacity: 0; transition: opacity .8s 2.4s; }
.streams-live .stream-core { opacity: .9; }

.hero-grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
.hero-wordmark {
  font-family: var(--serif); font-weight: 300; line-height: .95; letter-spacing: -.035em;
  font-size: clamp(3.6rem, 2rem + 8vw, 7.4rem); margin: 0 0 .25em;
  font-variation-settings: "SOFT" 100, "opsz" 144;
}
.hero-wordmark b { font-weight: 600; font-style: italic; color: var(--petroleo-700); }
.hero-title {
  font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.15rem); line-height: 1.25; font-weight: 400;
  max-width: 24ch; margin-bottom: .8em; color: var(--tinta);
}
.hero-lead { color: var(--tinta-70); max-width: 46ch; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

.hero-media { position: relative; margin-inline: 4px; }
.hero-media::before {
  content: ""; position: absolute; z-index: -1;
  inset: 22px -14px -18px 28px; border-radius: var(--radius-lg);
  background: var(--aqua-200);
}
.hero-media img {
  width: 100%; aspect-ratio: 6 / 5; object-fit: cover; object-position: 50% 40%;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .hero-media { margin-right: 0; }
}

/* ---------- Secciones ---------- */
.section { padding-block: var(--section); position: relative; }
.section--tint { background: var(--aqua-50); }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head > p:not(.eyebrow) { color: var(--tinta-70); font-size: 1.08rem; }
.section-head--left { text-align: left; margin-left: 0; }
.section-head--left .eyebrow { justify-content: flex-start; }

.divider { display: flex; justify-content: center; margin-block: -20px; position: relative; z-index: 1; }
.divider svg { width: 220px; height: 60px; fill: none; stroke-linecap: round; overflow: visible; }
.divider path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.dv-a, .dv-top { stroke: var(--petroleo); stroke-width: 1.6; }
.dv-b, .dv-bottom { stroke: var(--aqua); stroke-width: 2.2; }
.dv-merge { stroke: var(--petroleo); stroke-width: 1.8; }
.dv-dot { fill: var(--petroleo); opacity: 0; }
.dv-dot--b { fill: #6FBAC6; }
.dv-spark { fill: var(--petroleo); opacity: 0; }
.dv-spark--b { fill: var(--aqua); }
.dv-ring { fill: none; stroke: var(--aqua); stroke-width: 1.2; opacity: 0; }

.photo img { width: 100%; border-radius: var(--radius); object-fit: cover; }
.photo { overflow: hidden; border-radius: var(--radius); }
.photo img { transition: transform 1.2s var(--ease); }
.photo:hover img { transform: scale(1.035); }

/* ---------- Para quién ---------- */
.audience { display: grid; gap: 20px; }
.audience-card {
  position: relative; background: var(--blanco); border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 52px); box-shadow: var(--shadow-sm);
  border: 1px solid rgba(234, 220, 218, .7);
  transition: translate .5s var(--ease), box-shadow .5s var(--ease);
}
.audience-card:hover { translate: 0 -4px; box-shadow: var(--shadow); }
.audience-card--tint { background: var(--aqua-50); border-color: var(--aqua-200); }
.audience-num {
  display: block; font-family: var(--serif); font-style: italic; font-size: 1.1rem;
  color: var(--petroleo); margin-bottom: 1.4rem;
}
.audience-card h3 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); }
.audience-card p { color: var(--tinta-70); margin-bottom: 1.6rem; }
@media (min-width: 960px) {
  .audience { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .audience-card h3 { font-size: clamp(1.6rem, 1rem + 1vw, 1.9rem); }
}

/* ---------- Qué hacemos ---------- */
.services-grid { display: grid; gap: 40px; }
.services-intro .section-head { margin-bottom: 32px; }
.photo--tall img { aspect-ratio: 1 / 1; object-position: 50% 38%; }
.service-cards { display: grid; gap: 16px; counter-reset: s; }
.service-card {
  background: var(--blanco); border-radius: var(--radius); padding: 28px 26px 26px;
  border: 1px solid rgba(234, 220, 218, .8); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: translate .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.service-card:hover { translate: 0 -4px; box-shadow: var(--shadow); border-color: var(--aqua); }
.service-num {
  font: 500 .85rem/1 var(--sans); letter-spacing: .12em; color: var(--petroleo);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 1.1rem;
}
.service-num::after { content: ""; width: 32px; height: 1.5px; background: var(--aqua); transition: width .5s var(--ease); }
.service-card:hover .service-num::after { width: 56px; }
.service-card h3 { margin-bottom: .4em; }
.service-card h3 a { text-decoration: none; transition: color .25s; }
.service-card h3 a:hover { color: var(--petroleo-700); }
.service-card p { color: var(--tinta-70); font-size: 1rem; flex: 1; margin-bottom: 1.2rem; }
.sub-links { display: grid; gap: 6px; }
.sub-links a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-radius: 12px; text-decoration: none;
  font-size: .93rem; font-weight: 500; color: var(--tinta);
  background: var(--crema); border: 1px solid transparent;
  transition: background-color .3s, border-color .3s, color .3s;
}
.sub-links a span { flex: none; min-width: 2.2em; color: var(--petroleo); font-size: .8rem; font-weight: 600; letter-spacing: .06em; }
.sub-links .i { margin-left: auto; flex: none; width: 15px; height: 15px; color: var(--petroleo-700); opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .35s var(--ease); }
.sub-links a:hover { background: var(--aqua-50); border-color: var(--aqua-200); color: var(--petroleo-700); }
.sub-links a:hover .i { opacity: 1; transform: none; }
.services-all { margin-top: 28px; }
.cards-hint {
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px;
  padding: 12px 18px; border-radius: 999px;
  background: var(--aqua-50); border: 1px dashed var(--aqua);
  font-size: .93rem; color: var(--tinta-70); line-height: 1.4;
}
.cards-hint .i { width: 18px; height: 18px; flex: none; color: var(--petroleo-700); }
.cards-hint a { color: var(--petroleo-700); font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 559px) { .cards-hint { border-radius: var(--radius); align-items: flex-start; } }

@media (min-width: 680px) { .service-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .services-intro { position: sticky; top: calc(var(--header-h) + 32px); }
  .service-cards { gap: 20px; }
  .service-card:nth-child(even) { translate: 0 40px; }
  .service-card:nth-child(even):hover { translate: 0 36px; }
}

/* ---------- Por qué ---------- */
.why { display: grid; gap: 48px; align-items: center; }
.why-big { display: flex; flex-direction: column; align-items: center; text-align: center; }
.why-big .eyebrow { margin-bottom: 1.2rem; }
/* +25 años: el número y "años" comparten línea de base; el "+" va alto, como exponente */
.why-number {
  display: flex; align-items: baseline; margin: 0;
  font-family: var(--serif); color: var(--petroleo-700); line-height: .8;
  font-variation-settings: "SOFT" 100, "opsz" 144;
}
.why-plus { align-self: flex-start; font-size: clamp(2.4rem, 1.6rem + 3vw, 3.8rem); font-weight: 300; margin-top: .25em; margin-right: .04em; }
.why-25 { font-size: clamp(7rem, 3.6rem + 15vw, 11.5rem); font-weight: 300; letter-spacing: -.05em; }
.why-years { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); font-style: italic; font-weight: 400; color: var(--tinta); margin-left: .18em; }
.why-caption { max-width: 24ch; margin-top: 1.6rem; color: var(--tinta-70); font-size: 1.1rem; line-height: 1.5; }
.why-caption::before {
  content: ""; display: block; width: 56px; height: 2px; margin: 0 auto 1.1rem;
  border-radius: 2px; background: linear-gradient(90deg, var(--petroleo), var(--aqua));
}
.why-list { display: grid; gap: 14px; }
.why-item {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--blanco); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--aqua-200);
  transition: translate .5s var(--ease), box-shadow .5s var(--ease);
}
.why-item:hover { translate: 6px 0; box-shadow: var(--shadow-sm); }
.why-icon { width: 48px; height: 48px; flex: none; color: var(--petroleo); }
.why-seal { width: 52px; height: 52px; flex: none; border-radius: 50%; object-fit: cover; }
.why-item h3 { font-size: 1.3rem; margin-bottom: .3em; }
.why-item p { color: var(--tinta-70); font-size: 1rem; }
@media (min-width: 960px) { .why { grid-template-columns: 5fr 7fr; gap: 72px; } }

/* ---------- Quiénes somos ---------- */
.about-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 64px); }
.about-head .section-head { margin-bottom: 0; }
.about-head h2 em { font-style: italic; color: var(--petroleo-700); font-weight: 500; }
.about-intro { font-family: var(--serif); font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); line-height: 1.4; color: var(--tinta); }
@media (min-width: 960px) {
  .about-head { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  /* arranca a la altura del título, no del eyebrow */
  .about-intro { padding-top: 2.5rem; }
}

.team { display: grid; gap: 20px; }
.person {
  display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: start; align-content: start;
  background: var(--blanco); border-radius: var(--radius); padding: 16px;
  border: 1px solid rgba(234, 220, 218, .8); box-shadow: var(--shadow-sm);
}
.person-photo { overflow: hidden; border-radius: 14px; }
.person-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; transition: transform 1.2s var(--ease); }
.person:hover .person-photo img { transform: scale(1.05); }
.person h3 { margin: .2em 0 .5em; font-size: 1.45rem; }
.creds li { position: relative; padding-left: 16px; font-size: .95rem; line-height: 1.45; color: var(--tinta-70); margin-bottom: .35em; }
.creds li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--aqua); }
.linkedin {
  display: inline-flex; align-items: center; gap: .5em; margin-top: .8rem;
  font-size: .9rem; font-weight: 600; color: var(--petroleo-700); text-decoration: none;
  padding: 8px 14px 8px 12px; border-radius: 999px; background: var(--aqua-50);
  transition: background-color .3s, color .3s, transform .35s var(--ease);
}
.linkedin:hover { background: var(--petroleo-700); color: #fff; transform: translateY(-2px); }

@media (min-width: 560px) { .person { grid-template-columns: 170px 1fr; padding: 20px; gap: 24px; } }
@media (min-width: 960px) {
  .team { grid-template-columns: 1fr 1fr; gap: 24px; }
  .person { grid-template-columns: minmax(160px, 210px) 1fr; padding: 22px; gap: 28px; }
  .person-body { padding-top: 6px; }
  .person h3 { font-size: 1.7rem; }
}

/* Misión y visión, con la foto de las dos */
.mv {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid; gap: 8px;
  background: var(--aqua-50); border: 1px solid var(--aqua-200);
  border-radius: var(--radius-lg); padding: clamp(12px, 2vw, 20px);
}
.mv-photo { overflow: hidden; border-radius: calc(var(--radius-lg) - 10px); }
.mv-photo img { width: 100%; height: auto; transition: transform 1.4s var(--ease); }
.mv-photo:hover img { transform: scale(1.03); }
.mv-body { display: grid; align-content: center; padding: 8px clamp(10px, 3vw, 48px); }
.mv-item { padding-block: clamp(24px, 3.5vw, 40px); }
.mv-item + .mv-item { border-top: 1px solid var(--aqua-200); }
.mv-label { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3em .9em; margin-bottom: .9rem; }
.mv-label strong { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.7rem); line-height: 1; color: var(--petroleo-700); }
.mv-label span { font: 600 .74rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--tinta-70); }
.mv-text { font-family: var(--serif); font-size: clamp(1.2rem, 1.05rem + .6vw, 1.55rem); line-height: 1.45; color: var(--tinta); margin: 0; }
@media (min-width: 900px) {
  .mv { grid-template-columns: 5fr 7fr; gap: 16px; align-items: center; }
}

/* ---------- Nos definen: paneles de fotos que se abren ---------- */
.section--values { padding-top: calc(var(--section) * .55); }
.value-panels { display: grid; gap: 14px; }
.value-panel {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end; min-height: 340px;
  border-radius: var(--radius); background: var(--petroleo-900); color: #fff;
  outline-offset: 4px;
}
.value-panel img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.value-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(22, 63, 73, .05) 20%, rgba(22, 63, 73, .55) 55%, rgba(16, 44, 52, .94) 100%);
}
.value-content { width: 100%; padding: clamp(22px, 2.4vw, 32px); }
.value-num { display: block; font-family: var(--serif); font-style: italic; color: var(--aqua); margin-bottom: .5rem; }
.value-panel h3 { color: #fff; margin: 0; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); white-space: nowrap; }
.value-desc { display: grid; grid-template-rows: 1fr; }
.value-desc p { overflow: hidden; margin: 0; padding-top: .7rem; min-height: 0; color: rgba(255, 247, 247, .88); font-size: .98rem; line-height: 1.55; }
@media (min-width: 640px) { .value-panels { grid-template-columns: 1fr 1fr; } }

@media (min-width: 960px) {
  .value-panels { display: flex; height: 520px; gap: 12px; }
  .value-panel {
    flex: 1 1 0; min-width: 0; min-height: 0; cursor: pointer;
    transition: flex-grow .8s var(--ease);
  }
  .value-panel h3 { font-size: 1.2rem; transition: font-size .6s var(--ease); }
  .value-content { padding: 26px 22px; transition: padding .6s var(--ease); }
  .value-desc { grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .6s var(--ease), opacity .4s; }
  .value-desc p { min-width: 340px; max-width: 420px; }
  /* abierto: el que se toca, o el primero si no se toca ninguno */
  .value-panels:not(:has(.value-panel:hover, .value-panel:focus)) .value-panel:first-child,
  .value-panel:hover, .value-panel:focus { flex-grow: 2.2; }
  .value-panels:not(:has(.value-panel:hover, .value-panel:focus)) .value-panel:first-child h3,
  .value-panel:hover h3, .value-panel:focus h3 { font-size: 2.1rem; }
  .value-panels:not(:has(.value-panel:hover, .value-panel:focus)) .value-panel:first-child .value-content,
  .value-panel:hover .value-content, .value-panel:focus .value-content { padding: 32px; }
  .value-panels:not(:has(.value-panel:hover, .value-panel:focus)) .value-panel:first-child .value-desc,
  .value-panel:hover .value-desc, .value-panel:focus .value-desc { grid-template-rows: 1fr; opacity: 1; transition-delay: .25s; }
  .value-panel:hover img, .value-panel:focus img { transform: scale(1.05); }
}

/* ---------- Clientes ---------- */
.section--logos { padding-bottom: calc(var(--section) * .8); }
.marquee {
  display: flex; overflow: hidden; gap: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 20px; padding-right: 20px; flex: none;
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li {
  display: grid; place-items: center; height: 104px; width: 184px; flex: none;
  background: var(--blanco); border-radius: 18px; padding: 18px 22px;
  border: 1px solid rgba(234, 220, 218, .8);
}
.marquee-track img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .4s, opacity .4s; }
.marquee-track li:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-100%); } }

.partners { margin-top: clamp(48px, 7vw, 80px); text-align: center; }
/* 8 logos: con tarjetas de 220px la tira alcanza a cubrir 1920px sin hueco */
.marquee--partners .marquee-track { animation-duration: 50s; }
@media (min-width: 960px) { .marquee--partners .marquee-track li { width: 220px; } }
.partners-title { font: 600 .78rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--tinta-70); margin-bottom: 1.6rem; }

/* ---------- Cómo trabajamos ---------- */
.timeline-wrap { position: relative; margin-bottom: clamp(72px, 10vw, 120px); }
.timeline { display: grid; gap: 0; position: relative; }
/* Sin JS: línea completa estática */
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(var(--petroleo), var(--aqua)); border-radius: 2px;
}
/* Con JS: riel + relleno que avanza con el scroll */
.timeline-rail { display: none; position: absolute; background: var(--linea); border-radius: 2px; }
.timeline-fill {
  position: absolute; inset: 0; border-radius: inherit; transform-origin: 0 0;
  background: linear-gradient(var(--petroleo), var(--aqua));
  transform: scaleY(var(--p, 0));
}
.timeline-rail[data-dir="x"] .timeline-fill { background: linear-gradient(90deg, var(--petroleo), var(--aqua)); transform: scaleX(var(--p, 0)); }
.js .timeline-wrap.is-ready .timeline::before { display: none; }
.js .timeline-wrap.is-ready .timeline-rail { display: block; }

.step { position: relative; padding: 0 0 36px 44px; }
.step:last-child { padding-bottom: 0; }
.step-dot {
  position: absolute; left: 0; top: 6px; z-index: 1; width: 16px; height: 16px; border-radius: 50%;
  background: var(--crema); border: 2px solid var(--petroleo);
  transition: background-color .5s, border-color .5s, box-shadow .6s var(--ease), transform .5s var(--ease);
}
.step-dot::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--aqua); opacity: 0;
}
.step-n { display: block; font: 600 .78rem/1 var(--sans); letter-spacing: .14em; color: var(--petroleo); margin-bottom: .5rem; }
.step h3 { font-size: 1.35rem; margin-bottom: .25em; }
.step p { color: var(--tinta-70); font-size: 1rem; max-width: 34ch; }
.step-n, .step h3, .step p { transition: opacity .9s var(--ease), translate .9s var(--ease); }
.timeline-wrap.is-done .step-dot { box-shadow: 0 0 0 5px rgba(164, 216, 222, .3); }

/* Estados del proceso (solo con JS) */
.js .timeline-wrap.is-ready .step:not(.is-active) .step-dot { border-color: #D9CCCA; }
.js .timeline-wrap.is-ready .step:not(.is-active) :is(.step-n, h3, p) { opacity: .38; }
.js .timeline-wrap.is-ready .step:not(.is-active) h3 { translate: 0 4px; }
.step.is-active .step-dot { background: var(--petroleo); border-color: var(--petroleo); box-shadow: 0 0 0 5px rgba(164, 216, 222, .45); }
.step.is-current .step-dot { transform: scale(1.15); }
.step.is-current .step-dot::after { animation: step-pulse 2.4s var(--ease) infinite; }
@keyframes step-pulse { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(2.4); opacity: 0; } }

@media (min-width: 960px) {
  .timeline { grid-template-columns: repeat(6, 1fr); gap: 24px; }
  .timeline::before { left: 8px; right: 8px; top: 7px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--petroleo), var(--aqua)); }
  .step { padding: 44px 0 0; }
  .step-dot { top: 0; }
  .step h3 { font-size: 1.2rem; }
  .step p { font-size: .95rem; }
}

.faq-wrap { display: grid; gap: 32px; }
.faq-intro .h3 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); margin-bottom: 1.2rem; }
.faq-intro .photo { display: none; }
.faq { border-top: 1px solid var(--linea); }
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 52px 22px 0;
  font-family: var(--serif); font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); line-height: 1.35;
  transition: color .25s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--petroleo-700); }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 34px; height: 34px; margin-top: -17px;
  border-radius: 50%; border: 1.5px solid var(--linea);
  background:
    linear-gradient(var(--petroleo-700), var(--petroleo-700)) center / 12px 1.6px no-repeat,
    linear-gradient(var(--petroleo-700), var(--petroleo-700)) center / 1.6px 12px no-repeat;
  transition: transform .4s var(--ease), background-color .3s, border-color .3s;
}
.faq summary:hover::after { border-color: var(--petroleo); }
.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--aqua-50); border-color: var(--aqua); }
.faq details::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size .45s var(--ease), content-visibility .45s allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }
.faq-body { padding: 0 0 26px; color: var(--tinta-70); max-width: 62ch; }
.faq-body ul { display: grid; gap: .6em; margin-bottom: 1em; }
.faq-body li { position: relative; padding-left: 18px; }
.faq-body li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 1.5px; background: var(--petroleo); }
.faq-body strong { color: var(--tinta); font-weight: 600; }

@media (min-width: 960px) {
  .faq-wrap { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .faq-intro { position: sticky; top: calc(var(--header-h) + 32px); }
  .faq-intro .photo { display: block; }
  .faq-intro .photo img { aspect-ratio: 4 / 3; }
}

/* ---------- Cierre ---------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--petroleo-900); color: var(--crema);
  padding-block: clamp(80px, 11vw, 140px);
}
.cta-streams { opacity: .6; }
.cta-streams .stream-a { stroke: #5FA9BB; opacity: .8; }
.cta-inner { display: grid; gap: 56px; }
.cta h2 { font-size: clamp(2.3rem, 1.4rem + 4vw, 4.2rem); font-weight: 300; color: #fff; }
.cta-copy > p:not(.eyebrow) { color: rgba(255, 247, 247, .78); max-width: 44ch; font-size: 1.1rem; margin-bottom: 2rem; }
.contact-list { display: grid; gap: 0; border-top: 1px solid rgba(164, 216, 222, .22); }
.contact-list li {
  display: flex; flex-direction: column; gap: 2px; padding: 16px 0;
  border-bottom: 1px solid rgba(164, 216, 222, .22);
}
.contact-label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--aqua); font-weight: 600; }
.contact-list a { color: #fff; text-decoration: none; font-size: 1.12rem; width: fit-content; transition: color .25s; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--aqua); }
.social { display: flex; gap: 10px; margin-top: 6px; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(164, 216, 222, .35); transition: background-color .3s, border-color .3s, transform .35s var(--ease);
}
.social a:hover { background: var(--aqua); border-color: var(--aqua); color: var(--petroleo-900); transform: translateY(-2px); }
.social .i { width: 20px; height: 20px; }

@media (min-width: 960px) {
  .cta-inner { grid-template-columns: 1.1fr .9fr; gap: 96px; align-items: center; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); background: var(--crema); border-top: 1px solid var(--linea); }
.footer-inner { display: grid; gap: 18px; justify-items: start; }
.brand--footer img { width: 26px; }
.brand--footer .wordmark { font-size: 1.3rem; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; color: var(--tinta-70); font-size: .95rem; }
.footer-nav a:hover { color: var(--petroleo-700); }
.footer-legal { font-size: .85rem; color: var(--tinta-70); margin: 0; }
@media (min-width: 960px) {
  .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; }
  .footer-nav { justify-content: center; }
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 40;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--petroleo-700); color: #fff;
  box-shadow: 0 12px 28px -10px rgba(22, 63, 73, .6);
  transition: transform .4s var(--ease), background-color .3s, box-shadow .4s var(--ease);
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover { transform: translateY(-3px) scale(1.04); background: #235D6B; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--petroleo); opacity: 0;
  animation: wa-ring 4s var(--ease) 3s infinite;
}
@keyframes wa-ring { 0% { transform: scale(1); opacity: .6; } 40%, 100% { transform: scale(1.5); opacity: 0; } }

/* ==========================================================
   Página Servicios
   ========================================================== */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(48px, 8vw, 104px) 0 clamp(96px, 10vw, 140px); }
.page-hero h1 { font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5rem); font-weight: 300; letter-spacing: -.03em; margin-bottom: .35em; }
.page-hero h1 em { font-style: italic; color: var(--petroleo-700); font-weight: 500; }
.page-hero p:not(.eyebrow) { font-size: 1.15rem; color: var(--tinta-70); max-width: 52ch; }
.page-hero .hero-streams { opacity: .8; }

.tabs {
  position: sticky; top: var(--header-h); z-index: 30;
  background: rgba(255, 247, 247, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-block: 1px solid var(--linea);
}
.tabs ul { position: relative; display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.tabs ul::-webkit-scrollbar { display: none; }
.tabs a {
  display: block; white-space: nowrap; text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: 9px 16px; border-radius: 999px; color: var(--tinta-70);
  transition: background-color .3s, color .3s;
}
.tabs a:hover { color: var(--tinta); background: var(--crema-2); }
.tabs a.is-active { background: var(--petroleo-700); color: #fff; }

.area { padding-block: clamp(64px, 9vw, 112px); scroll-margin-top: calc(var(--header-h) + 64px); }
.area + .area { border-top: 1px solid var(--linea); }
.area--tint { background: var(--aqua-50); border-top: 0 !important; }
.area-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); }
.area-num { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--petroleo); }
.area-head h2 { margin-bottom: .2em; }
.area-head p { color: var(--tinta-70); max-width: 56ch; font-size: 1.08rem; }
@media (min-width: 960px) { .area-head { grid-template-columns: 5fr 7fr; gap: 72px; align-items: end; } }

.subs { display: grid; gap: 20px; }
.sub {
  scroll-margin-top: calc(var(--header-h) + 72px);
  background: var(--blanco); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(234, 220, 218, .8); box-shadow: var(--shadow-sm);
  display: grid; gap: 24px;
}
.sub-code { font: 600 .78rem/1 var(--sans); letter-spacing: .14em; color: var(--petroleo); display: block; margin-bottom: .8rem; }
.sub h3 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); }
.sub-text p { color: var(--tinta-70); }
.sub-text strong { color: var(--tinta); font-weight: 600; }
.sub-questions {
  background: var(--crema); border-radius: var(--radius); padding: 24px;
  align-self: start;
}
.sub-questions h4 { margin: 0 0 1rem; font: 600 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--petroleo-700); }
.sub-questions li { font-family: var(--serif); font-size: 1.12rem; line-height: 1.4; padding: .7em 0; border-top: 1px solid var(--linea); }
.sub-questions li:first-child { border-top: 0; padding-top: 0; }
.area--tint .sub-questions { background: var(--aqua-50); }
@media (min-width: 960px) {
  .sub { grid-template-columns: 7fr 5fr; gap: 56px; }
  .sub--single { grid-template-columns: 1fr; }
}

.cert-list { display: grid; gap: 12px; }
.cert-list li {
  display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--linea);
  color: var(--tinta-70);
}
.cert-list li:last-child { border-bottom: 0; }
.cert-list strong { color: var(--tinta); font-weight: 600; }
.cert-n { font-family: var(--serif); font-style: italic; color: var(--petroleo); flex: none; width: 1.6em; }

.workshops { display: grid; gap: 0 40px; counter-reset: w; }
.workshops li {
  counter-increment: w; display: flex; gap: 16px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--linea); color: var(--tinta);
}
.workshops li::before { content: counter(w, decimal-leading-zero); font: 600 .8rem/1 var(--sans); letter-spacing: .1em; color: var(--petroleo); flex: none; width: 2em; }
@media (min-width: 760px) { .workshops { grid-template-columns: 1fr 1fr; } }

.method {
  display: grid; gap: 28px; align-items: center;
  background: var(--blanco); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--aqua-200);
}
.method p { color: var(--tinta-70); }
.method .photo img { aspect-ratio: 4 / 3; }
@media (min-width: 960px) { .method { grid-template-columns: 7fr 5fr; gap: 56px; } }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.2rem; }
.pill { font-size: .85rem; font-weight: 500; padding: 6px 14px; border-radius: 999px; background: var(--aqua-50); color: var(--petroleo-700); border: 1px solid var(--aqua-200); }

/* ==========================================================
   Movimiento
   Solo se oculta contenido si JS está activo (clase .js)
   ========================================================== */
.js .reveal {
  opacity: 0;
  --delay: calc(var(--d, 0) * 90ms);
  transition:
    opacity .9s var(--ease) var(--delay),
    transform 1s var(--ease) var(--delay),
    clip-path 1.1s var(--ease) var(--delay),
    translate .5s var(--ease),
    box-shadow .5s var(--ease),
    border-color .4s;
}
.js .reveal[data-reveal="up"] { transform: translateY(26px); }
.js .reveal[data-reveal="left"] { transform: translateX(-28px); }
.js .reveal[data-reveal="scale"] { transform: scale(.96); clip-path: inset(6% 6% 6% 6% round 32px); }
.js .reveal[data-reveal="fade"] { transform: none; }
.js .reveal.is-visible { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 0); }

/* Líneas que se dibujan */
.js .stream, .js .divider path { stroke-dashoffset: 1; }
.js :is(.hero, .page-hero) .stream { animation: draw 2.4s var(--ease) .15s forwards; }
.js :is(.hero, .page-hero) .stream-b { animation-delay: .35s; }
.js :is(.hero, .page-hero) .stream-c { animation-delay: .6s; animation-duration: 2s; }
.js .divider.is-visible .dv-draw { animation: draw 1.6s var(--ease) forwards; }
.js .divider.is-visible .dv-bottom { animation-delay: .15s; }
.js .divider.is-visible .dv-merge { animation-delay: .7s; }
.js .cta.is-visible .stream { animation: draw 2.6s var(--ease) forwards; }
.js .cta.is-visible .stream-b { animation-delay: .25s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js .stream, .js .divider path { stroke-dashoffset: 0 !important; }
  .stream-dot, .stream-ring, .dv-dot, .dv-spark, .dv-ring { display: none; }
  .marquee { overflow-x: auto; }
}

.sub > .photo { align-self: start; }
.sub > .photo img { aspect-ratio: 4 / 5; max-height: 520px; }

/* Ajustes tras la revisión visual */
.js .reveal.is-visible { clip-path: inset(-30% -30% -30% -30%); }
.sub-code { text-transform: uppercase; }
@media (min-width: 960px) { .area-head--solo { grid-template-columns: 1fr; } }
@media (max-width: 959px) {
  .hero { padding-bottom: 140px; }
  .page-hero { padding-bottom: 110px; }
  .marquee-track li { width: 150px; height: 88px; padding: 14px 18px; }
  .marquee-track img { max-height: 54px; }
}


/* ==========================================================
   Tonos por área (Coaching · Consultoría · Capacitaciones · Selección)
   ========================================================== */
.tone-1 { --tone: #D5EDF0; --tone-ink: #2A6D7D; }
.tone-2 { --tone: #F5DAD5; --tone-ink: #9A4F47; }
.tone-3 { --tone: #E4DAEA; --tone-ink: #6A4F7C; }
.tone-4 { --tone: #DCE7DD; --tone-ink: #49694F; }

.service-card[class*="tone-"] .service-num { color: var(--tone-ink); }
.service-card[class*="tone-"] .service-num::after { background: var(--tone); height: 3px; border-radius: 2px; }
.service-card[class*="tone-"]:hover { border-color: var(--tone); }
.service-card[class*="tone-"] .sub-links a span { color: var(--tone-ink); }
.service-card[class*="tone-"] .sub-links a:hover { background: color-mix(in srgb, var(--tone) 45%, #fff); border-color: var(--tone); color: var(--tinta); }
.service-card[class*="tone-"] .sub-links .i { color: var(--tone-ink); }

.area[class*="tone-"] .area-num,
.area[class*="tone-"] .sub-code,
.area[class*="tone-"] .cert-n,
.area[class*="tone-"] .workshops li::before { color: var(--tone-ink); }
.area[class*="tone-"] .sub-questions h4 { color: var(--tone-ink); }
.area--tint[class*="tone-"] { background: color-mix(in srgb, var(--tone) 32%, var(--crema)); }
.area--tint[class*="tone-"] .sub-questions { background: color-mix(in srgb, var(--tone) 30%, #fff); }
.area[class*="tone-"] .pill { background: color-mix(in srgb, var(--tone) 40%, #fff); border-color: var(--tone); color: var(--tone-ink); }
.tabs a[class*="tone-"].is-active { background: var(--tone-ink); }

/* Menú de servicios: cada área con sus subservicios */
.svc-menu { padding-bottom: clamp(56px, 8vw, 96px); }
.svc-menu-grid { display: grid; gap: 16px; }
.svc-col {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 18px;
  background: var(--blanco); border-radius: var(--radius-lg); padding: 30px 22px 22px;
  border: 1px solid rgba(234, 220, 218, .8); box-shadow: var(--shadow-sm);
  transition: translate .5s var(--ease), box-shadow .5s var(--ease);
}
.svc-col::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--tone); }
.svc-col:hover { translate: 0 -4px; box-shadow: var(--shadow); }
.svc-col-head { text-decoration: none; display: block; }
.svc-col-num { font-family: var(--serif); font-style: italic; color: var(--tone-ink); }
.svc-col h2 { font-size: clamp(1.5rem, 1.3rem + .6vw, 1.8rem); margin: .15em 0 0; transition: color .25s; }
.svc-col-head:hover h2 { color: var(--tone-ink); }
.svc-col ul { display: grid; gap: 8px; }
.svc-col li a {
  min-height: 48px;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px 11px 16px; border-radius: 18px; text-decoration: none;
  background: color-mix(in srgb, var(--tone) 50%, #fff);
  font-size: .95rem; font-weight: 500; line-height: 1.3; color: var(--tinta);
  transition: background-color .3s, color .3s;
}
.svc-col li a span { font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--tone-ink); transition: color .3s; }
.svc-col li a .i { margin-left: auto; width: 16px; height: 16px; flex: none; color: var(--tone-ink); transition: transform .35s var(--ease), color .3s; }
.svc-col li a:hover { background: var(--tone-ink); color: #fff; }
.svc-col li a:hover span, .svc-col li a:hover .i { color: #fff; }
.svc-col li a:hover .i { transform: translateX(3px); }
@media (min-width: 640px) { .svc-menu-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .svc-menu-grid { grid-template-columns: repeat(4, 1fr); } }

/* Texto justificado en párrafos y listas de contenido (pedido del cliente).
   Títulos, botones, eyebrows y bloques centrados quedan como estaban. */
main :where(p, li) { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
main :where(.eyebrow, .hero-wordmark, .section-head > p, .why-big p, .cards-hint, .contact-list li,
  .marquee-track li, .sub-links li, .svc-col li, .tabs li, .mv-label) { text-align: inherit; -webkit-hyphens: manual; hyphens: manual; }

/* Estela del mouse: va arriba del contenido pero no bloquea clics; queda debajo del botón de WhatsApp y del header */
.cursor-fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 35; }

/* ==========================================================
   Páginas legales (privacidad y términos)
   ========================================================== */
.page-hero--legal { padding-bottom: clamp(40px, 6vw, 64px); }
.page-hero--legal h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4rem); }
.legal { padding-bottom: var(--section); }
.legal-inner > * { max-width: 760px; }
.legal h2 {
  font-size: clamp(1.35rem, 1.15rem + .8vw, 1.7rem);
  margin: 2.4em 0 .6em; padding-top: 1.2em; border-top: 1px solid var(--linea);
}
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal p, .legal li { color: var(--tinta-70); }
.legal strong { color: var(--tinta); font-weight: 600; }
.legal ul { display: grid; gap: .5em; margin: 0 0 1em; }
.legal li { position: relative; padding-left: 18px; }
.legal li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 1.5px; background: var(--petroleo); }
.legal a:not(.link) { color: var(--petroleo-700); text-underline-offset: 3px; }
.legal-notice {
  margin-top: 1.4em; padding: 18px 22px; border-radius: var(--radius-sm);
  background: var(--aqua-50); border: 1px solid var(--aqua-200); font-size: .92rem;
}
.legal-back { margin-top: 3em; }
.footer-legal a { color: inherit; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--petroleo-700); }

/* Aviso legal (aceptación de términos y privacidad) */
.legal-box {
  position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45;
  display: flex; align-items: center; gap: 18px; max-width: 600px;
  padding: 14px 16px 14px 18px; border-radius: var(--radius-sm);
  background: var(--blanco); border: 1px solid var(--linea); box-shadow: var(--shadow);
}
.legal-box p { margin: 0; font-size: .88rem; line-height: 1.5; color: var(--tinta-70); text-align: left; }
.legal-box a { color: var(--petroleo-700); text-underline-offset: 2px; }
@media (min-width: 560px) {
  .legal-box a { white-space: nowrap; }
  .legal-box p { text-wrap: balance; }
}
.legal-box .btn { flex: none; }
@media (max-width: 559px) {
  .legal-box { right: 16px; flex-direction: column; align-items: stretch; gap: 12px; }
}
