/* =========================================================
   JAIME LEVY — Coaching Ontológico Corporativo
   v5 · "Arena premium" — cajas e íconos refinados.
   ========================================================= */

:root {
  --sand:   #F4EFE6;
  --sand-2: #FBF8F2;
  --sand-3: #EDE6D8;
  --line:   #E2DACB;
  --ink:    #1A1C1B;
  --muted:  #5C5A54;
  --faint:  #8A857B;
  --petrol: #0E4F4F;
  --petrol-2:#2C7A75;
  --clay:   #C66B47;
  --clay-2: #A9542F;
  --grad-text: linear-gradient(120deg, #0E4F4F 0%, #2C7A75 100%);
  --maxw:   1240px;
  --shadow: 0 34px 80px -38px rgba(14,79,79,.34);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--sand); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; line-height: 1.55; }
::selection { background: var(--clay); color: #fff; }

/* Orbes sutiles */
.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(110px); }
.orb.a { width: 600px; height: 600px; background: radial-gradient(circle, rgba(44,122,117,.22), transparent 66%); top: -240px; right: -180px; }
.orb.b { width: 520px; height: 520px; background: radial-gradient(circle, rgba(198,107,71,.16), transparent 66%); bottom: -260px; left: -200px; }
main, header, footer { position: relative; z-index: 1; }

/* Tipografía */
h1, h2, h3 { font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; color: var(--ink); }
h1 { font-size: clamp(2.9rem, 7vw, 5.6rem); font-weight: 700; }
h2 { font-size: clamp(2.1rem, 5vw, 3.7rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 600; }
p  { color: var(--muted); font-size: clamp(1.05rem, 1.3vw, 1.22rem); }
a  { color: inherit; text-decoration: none; }

.gradient-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.clay-text { color: var(--clay); }

/* Layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 36px; }
section { padding: clamp(80px, 12vw, 160px) 0; }
.center { text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: .76rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--clay); margin-bottom: 26px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--clay); }
.center .eyebrow::before { display: none; }
.lead { font-size: clamp(1.15rem, 1.5vw, 1.4rem); color: var(--muted); max-width: 56ch; }
.center .lead { margin-inline: auto; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 17px 34px; border-radius: 100px; font-weight: 600; font-size: 1rem; cursor: pointer; border: 1.5px solid transparent; transition: .28s ease; }
.btn-primary { background: var(--clay); color: #fff; box-shadow: 0 16px 40px -16px rgba(198,107,71,.6); }
.btn-primary:hover { background: var(--clay-2); transform: translateY(-2px); }
.btn-ghost { border-color: var(--petrol); color: var(--petrol); }
.btn-ghost:hover { background: var(--petrol); color: #fff; }
.btn-light { background: var(--sand); color: var(--ink); }
.btn-light:hover { background: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }
.link-arrow span { transition: transform .25s; }
.link-arrow:hover span { transform: translateX(5px); }

/* Header */
header.nav { position: sticky; top: 0; z-index: 60; background: rgba(244,239,230,.82); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 82px; }
.logo { display: flex; align-items: center; gap: 13px; }
.logo .seal { width: 44px; height: 44px; flex: none; display: block; }
.logo .wm { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.14rem; line-height: 1.05; }
.logo .wm small { display: block; font-size: .58rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-top: 2px; }
.nav-links { display: flex; gap: 38px; }
.nav-links a { font-size: .96rem; color: var(--muted); transition: .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--petrol); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .btn { padding: 12px 24px; font-size: .92rem; }
.menu-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 1.7rem; cursor: pointer; line-height: 1; }

/* HERO */
.hero { min-height: 84vh; display: flex; align-items: center; text-align: center; }
.hero .wrap { width: 100%; }
.hero h1 { max-width: 17ch; margin: 0 auto; }
.hero .lead { margin: 30px auto 0; }
.hero-cta { margin-top: 46px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; align-items: center; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 52px 24px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .n { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -.03em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .l { color: var(--muted); margin-top: 12px; font-size: 1rem; }

/* Encabezado de sección */
.sec-head { text-align: center; margin-bottom: clamp(48px, 6vw, 76px); }
.sec-head h2 { max-width: 18ch; margin: 0 auto; }
.sec-head .lead { margin: 20px auto 0; }

/* === Ledger (el costo) — refinado === */
.ledger { border: 1px solid var(--line); border-radius: 26px; background: var(--sand-2); overflow: hidden; box-shadow: var(--shadow); }
.ledger-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 36px; padding: 40px 48px; border-top: 1px solid var(--line); position: relative; transition: background .3s ease; }
.ledger-row:first-child { border-top: 0; }
.ledger-row:hover { background: var(--sand); }
.ledger-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--clay); transform: scaleY(0); transform-origin: top; transition: transform .35s ease; }
.ledger-row:hover::before { transform: scaleY(1); }
.lr-index { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 2.7rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--line); transition: .35s ease; }
.ledger-row:hover .lr-index { -webkit-text-stroke-color: var(--clay); }
.lr-icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); border: 1px solid var(--line); color: var(--petrol); transition: .3s ease; }
.lr-icon svg { width: 28px; height: 28px; }
.ledger-row:hover .lr-icon { background: var(--petrol); border-color: var(--petrol); color: var(--sand); }
.lr-body h3 { margin-bottom: 5px; }
.lr-body p { font-size: 1.02rem; }
.lr-tag { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); font-weight: 700; text-align: right; white-space: nowrap; }

/* === Panel de pilares / formatos (con divisores) === */
.panel3 { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 26px; background: var(--sand-2); overflow: hidden; box-shadow: var(--shadow); }
.panel3 .col { padding: clamp(40px, 4vw, 56px) 40px; border-right: 1px solid var(--line); transition: background .3s ease; }
.panel3 .col:last-child { border-right: 0; }
.panel3 .col:hover { background: var(--sand-3); }
.panel3 .ic { width: 46px; height: 46px; color: var(--petrol); margin-bottom: 26px; transition: color .3s ease; }
.panel3 .ic svg { width: 46px; height: 46px; }
.panel3 .col:hover .ic { color: var(--clay); }
.panel3 .num { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: .9rem; color: var(--faint); letter-spacing: .12em; margin-bottom: 10px; }
.panel3 h3 { margin-bottom: 12px; }
.panel3 p { font-size: 1.02rem; }

/* === Split (dos frentes) === */
.split { display: grid; grid-template-columns: 1fr 1fr; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.split .half { padding: clamp(46px, 5vw, 76px); position: relative; overflow: hidden; }
.split .exec { background: linear-gradient(155deg, rgba(14,79,79,.10), var(--sand-2)); }
.split .team { background: linear-gradient(155deg, rgba(198,107,71,.10), var(--sand-2)); }
.split .tag { display: inline-flex; align-items: center; gap: 12px; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; margin-bottom: 18px; }
.split .exec .tag { color: var(--petrol); }
.split .team .tag { color: var(--clay); }
.split h3 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); margin-bottom: 8px; }
.half-watermark { position: absolute; right: -30px; bottom: -30px; width: 220px; height: 220px; opacity: .06; pointer-events: none; }
.split .exec .half-watermark { color: var(--petrol); }
.split .team .half-watermark { color: var(--clay); }
.half-content { position: relative; z-index: 1; }
.feat { list-style: none; margin: 26px 0 32px; }
.feat li { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-top: 1px solid var(--line); font-size: 1.1rem; font-weight: 500; color: var(--ink); }
.feat li:last-child { border-bottom: 1px solid var(--line); }
.feat .m { width: 8px; height: 8px; transform: rotate(45deg); flex: none; }
.split .exec .feat .m { background: var(--petrol); }
.split .team .feat .m { background: var(--clay); }
.split .exec .link-arrow { color: var(--petrol); }
.split .team .link-arrow { color: var(--clay); }

/* Método */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.flow .s { padding: clamp(34px, 3.5vw, 50px) 26px clamp(34px, 3.5vw, 50px) 0; border-right: 1px solid var(--line); }
.flow .s:last-child { border-right: 0; padding-right: 0; }
.flow .s .n { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 2.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.4px var(--clay); margin-bottom: 18px; }
.flow .s h3 { font-size: 1.4rem; margin-bottom: 10px; }
.flow .s p { font-size: 1rem; }

/* Programa cards */
.prog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.prog { border: 1px solid var(--line); border-radius: 26px; padding: clamp(40px, 5vw, 56px); background: var(--sand-2); transition: .3s; box-shadow: var(--shadow); }
.prog:hover { transform: translateY(-5px); border-color: var(--petrol-2); }
.prog .ic { width: 50px; height: 50px; color: var(--petrol); }
.prog.team .ic { color: var(--clay); }
.prog .ic svg { width: 50px; height: 50px; }
.prog .tag { display: block; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--petrol); margin: 24px 0 10px; font-weight: 700; }
.prog.team .tag { color: var(--clay); }
.prog h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 16px; }
.feat.dark-on-light { margin-top: 22px; margin-bottom: 0; }

/* Quote */
.bigquote { text-align: center; max-width: 24ch; margin: 0 auto; }
.bigquote p { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.18; letter-spacing: -.025em; color: var(--petrol); }
.bigquote cite { display: block; margin-top: 30px; font-style: normal; color: var(--clay); font-size: 1rem; letter-spacing: .04em; }

/* CTA band petróleo */
.cta-band { border-radius: 30px; padding: clamp(54px, 8vw, 100px) 40px; text-align: center; background: var(--petrol); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(44,122,117,.5), transparent 65%); top: -220px; left: 50%; transform: translateX(-50%); filter: blur(60px); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #FBF8F2; max-width: 20ch; margin: 0 auto 16px; }
.cta-band p { color: rgba(251,248,242,.78); max-width: 42ch; margin: 0 auto 36px; }

/* Portrait */
.about-hero { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: center; }
.portrait { aspect-ratio: 4/5; border-radius: 26px; border: 1px solid var(--line); background: radial-gradient(120% 120% at 30% 20%, rgba(44,122,117,.4), var(--petrol) 72%); display: grid; place-items: center; position: relative; overflow: hidden; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.5), transparent 42%); }
.portrait .cap { position: absolute; left: 24px; right: 24px; bottom: 22px; color: rgba(255,255,255,.85); font-size: .82rem; z-index: 2; }

/* Form */
.form-wrap { max-width: 760px; margin: 0 auto; }
.field { margin-bottom: 24px; }
.field label { display: block; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.field input, .field select, .field textarea { width: 100%; background: var(--sand-2); border: 1px solid var(--line); border-radius: 12px; padding: 15px 17px; color: var(--ink); font-family: inherit; font-size: 1.08rem; transition: .25s; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(198,107,71,.14); }
.field textarea { resize: vertical; min-height: 110px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 64px 0 42px; background: var(--sand-3); }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.foot-top p { max-width: 32ch; margin-top: 20px; font-size: 1rem; }
.foot-data { margin-top: 22px; display: grid; gap: 9px; }
.foot-data a, .foot-data span { color: var(--muted); font-size: 1rem; line-height: 1.5; }
.foot-data a:hover { color: var(--clay); }
.socials { display: flex; gap: 14px; margin-bottom: 14px; }
.socials a { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--petrol); transition: .25s ease; }
.socials a:hover { background: var(--petrol); color: #fff; border-color: var(--petrol); }
.socials svg { width: 20px; height: 20px; }
.handle { color: var(--muted); font-size: .98rem; }
footer h5 { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; font-weight: 600; }
footer nav a { display: block; color: var(--muted); font-size: .98rem; margin-bottom: 12px; transition: .2s; }
footer nav a:hover { color: var(--clay); }
.foot-bottom { display: flex; justify-content: space-between; padding-top: 28px; border-top: 1px solid var(--line); color: var(--faint); font-size: .86rem; flex-wrap: wrap; gap: 14px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .85s cubic-bezier(.16,1,.3,1), transform .85s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 82px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--sand-2); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px 36px; }
  .menu-toggle { display: block; }
  .nav-cta .btn { display: none; }
  .stats, .panel3, .flow, .prog-grid, .split, .about-hero { grid-template-columns: 1fr; }
  .stat, .panel3 .col, .flow .s { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .stat:last-child, .panel3 .col:last-child, .flow .s:last-child { border-bottom: 0; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 22px; }
  .ledger-row { grid-template-columns: 46px 1fr; gap: 6px 18px; padding: 28px 24px; }
  .lr-icon { display: none; }
  .lr-index { font-size: 1.9rem; }
  .lr-body { grid-column: 2; }
  .lr-tag { grid-column: 2; text-align: left; margin-top: 8px; }
  .row2, .foot-top { grid-template-columns: 1fr; gap: 24px; }
}
