/* =========================================================
   0. TOKENS
========================================================= */
:root{
  --bg:        #ffffff;
  --bg-alt:    #f4f4f5;
  --bg-deep:   #ececed;
  --surface:   #f8f8f9;
  --surface-2: #f0f0f1;
  --hair:      rgba(20,20,22,.12);
  --hair-strong: rgba(20,20,22,.22);
  --ink:       #1a1a1c;
  --ink-70:    rgba(26,26,28,.72);
  --ink-50:    rgba(26,26,28,.55);
  --ink-32:    rgba(26,26,28,.4);
  --black:     #000000;
  --gold:      #b5a094;
  --gold-dim:  #9e7e6d;
  --gold-08:   rgba(239,184,16,.08);
  --dark-band: #f6f3f2;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --container: 1180px;
  --pad: clamp(24px, 5vw, 96px);
  --pad-y: clamp(64px, 10vw, 132px);
  --ease: cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
img,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,p{ margin:0; }
button{ font-family:inherit; cursor:pointer; }
::selection{ background:var(--gold); color:var(--black); }

:focus-visible{ outline:2px solid var(--gold); outline-offset:3px; }

.container{ max-width:var(--container); margin-inline:auto; padding-inline:var(--pad); }

/* =========================================================
   1. TYPE SYSTEM
========================================================= */
.eyebrow{
  display:flex; align-items:center; gap:14px;
  font-family:var(--sans); font-weight:600; font-size:12px;
  letter-spacing:.22em; text-transform:uppercase; color:var(--gold);
  margin-bottom:22px;
}
.eyebrow::before{ content:""; width:34px; height:1px; background:#b5a094; flex:none; }
.eyebrow.center{ justify-content:center; }
/* variante para usarse sobre fotografías de fondo (parte oscura del degradado) */
.eyebrow-onimage{ color:#ffffff; }
.eyebrow-onimage::before{ background:#ffffff; }
/* variante para usarse sobre el panel dorado (fondo claro, requiere texto oscuro) */
.panel-gold .eyebrow{ color:rgba(0,0,0,.55); }

.h-xl{
  font-family:var(--serif); font-weight:500; letter-spacing:.005em;
  font-size:clamp(40px, 6.4vw, 84px); line-height:1.02; color:var(--ink);
}
.h-lg{
  font-family:var(--serif); font-weight:500;
  font-size:clamp(32px, 4.4vw, 56px); line-height:1.08; color:var(--ink);
}
.h-md{
  font-family:var(--serif); font-weight:500;
  font-size:clamp(24px, 2.6vw, 34px); line-height:1.18; color:var(--ink);
}
.h-sm{
  font-family:var(--serif); font-weight:600;
  font-size:clamp(19px, 1.6vw, 23px); line-height:1.3; color:var(--ink);
}
.italic{ font-style:italic; color:var(--gold); }
.lede{
  font-family:var(--sans); font-weight:400; font-size:clamp(17px,1.7vw,20px);
  line-height:1.65; color:var(--ink-70); max-width:640px;
}
.body-copy{ font-size:16px; line-height:1.75; color:var(--ink-70); max-width:620px; }
.body-copy + .body-copy{ margin-top:16px; }
.micro{ font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-50); font-weight:600; }
.num{ font-family:var(--serif); font-weight:500; color:var(--gold); }

/* =========================================================
   2. LAYOUT / SECTION RHYTHM
========================================================= */
.section{ padding:var(--pad-y) 0; position:relative; }
.section-alt{ background:var(--bg-alt); }
.section-deep{ background:var(--bg-deep); }
.hair-top{ border-top:1px solid var(--hair); }
.hair-bottom{ border-bottom:1px solid var(--hair); }

.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(32px,6vw,96px); align-items:start; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--hair); border:1px solid var(--hair); }
.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--hair); border:1px solid var(--hair); }
@media (max-width:960px){
  .grid-2{ grid-template-columns:1fr; }
  .grid-3{ grid-template-columns:1fr; }
  .grid-4{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:600px){
  .grid-4{ grid-template-columns:1fr; }
}

.reveal{ opacity:0; transform:translateY(18px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in{ opacity:1; transform:translateY(0); }

/* =========================================================
   3. BUTTONS
========================================================= */
.btn-row{ display:flex; flex-wrap:wrap; gap:14px; margin-top:40px; }
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:15px 30px; font-family:var(--sans); font-weight:600; font-size:13px;
  letter-spacing:.06em; text-transform:uppercase; border-radius:2px;
  transition:all .25s var(--ease); border:1px solid transparent; white-space:nowrap;
}
.btn svg{ width:13px; height:13px; transition:transform .25s var(--ease); }
.btn:hover svg{ transform:translateX(3px); }
.btn-primary{ background:var(--gold); color:var(--black); }
.btn-primary:hover{ background:#9e7e6d; }
.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--hair-strong); }
.btn-ghost:hover{ border-color:var(--gold); color:var(--gold); }

.link-arrow{
  display:inline-flex; align-items:center; gap:8px; color:var(--gold);
  font-weight:600; font-size:13px; letter-spacing:.05em; text-transform:uppercase;
  border-bottom:1px solid var(--gold-dim); padding-bottom:3px; transition:border-color .2s var(--ease);
}
.link-arrow svg{ width:12px; height:12px; transition:transform .25s var(--ease); }
.link-arrow:hover{ border-color:var(--gold); }
.link-arrow:hover svg{ transform:translateX(4px); }

/* =========================================================
   4. HEADER / NAV
========================================================= */
.logo{ fill:var(--ink); flex:none; transition:fill .2s var(--ease); }
.logo--header{ width:80px; height:auto; }
.logo--footer{ width:50%; height:auto; }
.logo--hero{ width:100%; height:100%; }

.site-header{
  position:fixed; top:0; left:0; right:0; z-index:100;
  background:rgba(255,255,255,.86); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--hair);
  transition:background .3s var(--ease);
}
.header-inner{
  max-width:var(--container); margin-inline:auto; padding:0 var(--pad);
  height:84px; display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand-word{ font-family:var(--serif); font-weight:600; font-size:19px; letter-spacing:.03em; color:var(--ink); line-height:1.1; }
.brand-word span{ display:block; font-family:var(--sans); font-weight:500; font-size:9.5px; letter-spacing:.10em; color:var(--gold); text-transform:capitalize; margin-top:3px; }

.main-nav{ display:flex; align-items:center; }
.nav-list{ display:flex; align-items:center; gap:2px; }
.nav-list > li{ position:relative; }
.nav-list > li > a{
  display:flex; align-items:center; gap:6px;
  padding:12px 16px; font-size:13px; font-weight:500; letter-spacing:.02em;
  color:var(--ink-70); transition:color .2s var(--ease);
}
.nav-list > li > a:hover, .nav-list > li > a.is-active{ color:var(--ink); }
.nav-list > li > a.is-active{ color:var(--gold); }
.nav-caret{ width:8px; height:8px; opacity:.6; transition:transform .2s var(--ease); }
.has-dropdown:hover .nav-caret{ transform:rotate(180deg); }
.nav-cta{
  margin-left:10px; padding:11px 22px !important; border:1px solid var(--gold-dim);
  border-radius:2px; color:var(--gold) !important;
}
.nav-cta:hover{ background:var(--gold); color:var(--black) !important; border-color:var(--gold); }

.dropdown{
  position:absolute; top:calc(100% + 1px); left:0; transform:translateY(6px);
  min-width:250px; max-width:280px; background:var(--surface); border:1px solid var(--hair); border-radius:3px;
  padding:10px; opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  box-shadow:0 20px 40px rgba(0,0,0,.35);
}
.has-dropdown:hover .dropdown{ opacity:1; visibility:visible; pointer-events:auto; transform:translateY(0); }
.dropdown li a{
  display:flex; align-items:center; gap:10px; padding:12px 14px; font-size:13.5px; color:var(--ink-70);
  border-radius:2px; transition:background .18s var(--ease), color .18s var(--ease);
}
.dropdown li a::before{ content:""; width:5px; height:5px; border-radius:50%; background:var(--gold-dim); flex:none; transition:background .18s var(--ease); }
.dropdown li a:hover{ background:var(--surface-2); color:var(--ink); }
.dropdown li a:hover::before{ background:var(--gold); }

.nav-toggle{
  display:none; width:40px; height:40px; align-items:center; justify-content:center;
  background:none; border:1px solid var(--hair-strong); border-radius:2px; color:var(--ink);
}
.nav-toggle svg{ width:18px; height:18px; }

@media (max-width:980px){
  .main-nav{ position:fixed; top:84px; left:0; right:0; height:calc(100vh - 84px); background:var(--bg-deep); transform:translateX(100%);
    transition:transform .35s var(--ease); overflow-y:auto; align-items:flex-start; }
  .main-nav.is-open{ transform:translateX(0); }
  .nav-list{ flex-direction:column; align-items:stretch; width:100%; padding:6px var(--pad) 60px; gap:0; }
  .nav-list > li{ border-bottom:1px solid var(--hair); }
  .nav-list > li > a{ padding:18px 0; font-size:16px; justify-content:space-between; }
  .dropdown{ position:static; transform:none; opacity:1; visibility:visible; pointer-events:auto;
    background:none; border:none; box-shadow:none; padding:0 0 12px; min-width:0; display:none; }
  .has-dropdown.is-open .dropdown{ display:block; }
  .has-dropdown.is-open .nav-caret{ transform:rotate(180deg); }
  .nav-cta{ margin:18px 0 0; text-align:center; justify-content:center; }
  .nav-toggle{ display:flex; }
  .icon-close{ display:none; }
  .nav-toggle.is-open .icon-menu{ display:none; }
  .nav-toggle.is-open .icon-close{ display:block; }
}

/* =========================================================
   5. PAGES (routing)
========================================================= */
.page{ display:none; }
.page.is-active{ display:block; animation:pagein .5s var(--ease); }
@keyframes pagein{ from{ opacity:0; transform:translateY(10px);} to{ opacity:1; transform:none;} }
main{ padding-top:84px; }

/* =========================================================
   6. HERO
========================================================= */
.hero{
  position:relative; overflow:hidden;
  padding:clamp(64px,10vw,120px) 0 clamp(56px,8vw,96px);
  border-bottom:1px solid var(--hair);
	background-image:url("../img/hero_bg.jpg");background-size:cover;background-position:top;}
.hero-watermark{ position:absolute; top:50%; right:-6%; width:min(60vw,640px); height:auto;
  transform:translateY(-50%); opacity:.05; pointer-events:none; fill:var(--gold); }
.hero-grid{ display:grid; grid-template-columns:1.15fr .85fr; gap:clamp(32px,6vw,80px); align-items:end; position:relative; }
.hero-kicker{ font-family:var(--sans); font-weight:600; font-size:12px; letter-spacing:.28em; text-transform:uppercase; color:var(--gold); margin-bottom:26px; }
.hero-title{ font-family:var(--serif); font-weight:500; font-size:clamp(46px,7.4vw,96px); line-height:.98; letter-spacing:.005em; }
.hero-title em{ font-style:italic; color:#b99f92; font-weight:400; }
.hero-sub{ font-family:var(--serif); font-style:italic; font-weight:400; font-size:clamp(20px,2.1vw,26px); color:var(--ink-70); margin-top:28px; max-width:560px; }
.hero-copy{ font-size:16px; line-height:1.75; color:var(--ink-50); margin-top:22px; max-width:520px; }
.hero-visual{ position:relative; }
.hero-art{ width:100%; aspect-ratio:4/5; }
.hero-art-frame{ position:absolute; inset:0; border:1px solid var(--hair-strong); pointer-events:none; }
.hero-art-caption{ display:flex; justify-content:space-between; margin-top:16px; font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:#000000; }

/* =========================================================
   7. INVERSE PANEL (manifiesto / pull quotes — usa negro sobre claro)
========================================================= */
.panel-inverse{
  background:var(--dark-band); color:#ffffff;
  padding:clamp(56px,8vw,104px) 0;
}
.panel-inverse .eyebrow{ color:var(--gold); }
.panel-inverse .eyebrow::before{ background:var(--gold); }
.panel-quote{
  font-family:var(--serif); font-weight:500; font-style:italic;
  font-size:clamp(28px,4vw,48px); line-height:1.24; color:#000000; max-width:900px;
}
.panel-body{ font-size:16.5px; line-height:1.8; color:#000000; max-width:640px; margin-top:28px; }
.panel-gold{ background:var(--gold); color:var(--black); padding:clamp(40px,6vw,64px) 0; }
.panel-gold .lede{ color:rgba(0,0,0,.78); }
.panel-gold .h-md{ color:var(--black); }

/* =========================================================
   8. CARDS / LISTS
========================================================= */
.card{ background:var(--surface); padding:clamp(28px,3vw,42px); position:relative; }
.card-title{ font-family:var(--serif); font-weight:600; font-size:22px; margin-bottom:14px; }
.card-text{ font-size:14.5px; line-height:1.7; color:var(--ink-50); }
.card-num{ font-family:var(--serif); font-size:14px; color:var(--gold); letter-spacing:.05em; margin-bottom:16px; display:block; }

.list-plain{ display:flex; flex-direction:column; }
.list-plain li{
  display:flex; align-items:baseline; gap:16px; padding:20px 0; border-top:1px solid var(--hair);
  font-size:16px; color:var(--ink-70);
}
.list-plain li:last-child{ border-bottom:1px solid var(--hair); }
.list-plain li .tick{ color:var(--gold); font-size:14px; flex:none; }

.pill-row{ display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.pill{
  padding:9px 18px; border:1px solid var(--hair-strong); border-radius:100px;
  font-size:13px; letter-spacing:.03em; color:var(--ink-70);
}
.pill.gold{ border-color:var(--gold-dim); color:var(--gold); }

/* Numbered feature blocks (ejes de actuación, ejes rectores, etc.) */
.numlist{ display:flex; flex-direction:column; }
.numblock{
  display:grid; grid-template-columns:96px 1fr; gap:clamp(20px,3vw,40px);
  padding:clamp(32px,4vw,48px) 0; border-top:1px solid var(--hair);
}
.numlist > .numblock:last-child{ border-bottom:1px solid var(--hair); }
.numblock-index{ font-family:var(--serif); font-weight:500; font-size:44px; color:var(--gold); line-height:1; }
.numblock-title{ font-family:var(--serif); font-weight:600; font-size:22px; margin-bottom:10px; }
.numblock-text{ font-size:15px; line-height:1.75; color:var(--ink-50); max-width:640px; }
@media (max-width:640px){
  .numblock{ grid-template-columns:56px 1fr; }
  .numblock-index{ font-size:32px; }
}

/* =========================================================
   9. SERVICE MODULE CARDS (landing de Servicios)
========================================================= */
.module-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:1px; background:var(--hair); border:1px solid var(--hair); margin-top:56px; }
.module-card{
  background:var(--bg); padding:clamp(36px,4vw,56px); display:flex; flex-direction:column; gap:18px;
  transition:background .25s var(--ease);
}
.module-card:hover{ background:var(--surface); }
.module-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.module-index{ font-family:var(--serif); font-size:15px; color:var(--gold); letter-spacing:.06em; }
.module-card h3{ font-family:var(--serif); font-weight:600; font-size:28px; }
.module-card p{ font-size:14.5px; line-height:1.75; color:var(--ink-50); flex:1; }
@media (max-width:760px){ .module-grid{ grid-template-columns:1fr; } }

/* sub-nav for servicios subpages */
.subnav{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:48px; }
.subnav a{
  padding:10px 18px; border:1px solid var(--hair); border-radius:100px; font-size:12.5px;
  letter-spacing:.04em; text-transform:uppercase; color:var(--ink-50); font-weight:500;
  transition:all .2s var(--ease);
}
.subnav a:hover{ color:var(--ink); border-color:var(--hair-strong); }
.subnav a.is-active{ color:var(--black); background:var(--gold); border-color:var(--gold); }

/* =========================================================
   10. PIPELINE — signature diagram (Modelo de Atención)
========================================================= */
.pipeline-wrap{ margin:64px 0 24px; overflow-x:auto; padding-bottom:8px; }
.pipeline{ display:flex; position:relative; min-width:760px; padding-top:10px; }
.pipeline-line{ position:absolute; top:19px; left:0; right:0; height:1px; background:linear-gradient(90deg, transparent, var(--gold-dim) 6%, var(--gold-dim) 94%, transparent); }
.pnode{ position:relative; flex:1; display:flex; flex-direction:column; align-items:center; text-align:center; padding:0 10px; }
.pnode-dot{ width:18px; height:18px; border-radius:50%; background:var(--bg-alt); border:2px solid var(--gold); z-index:1; }
.pnode:nth-child(even) .pnode-dot{ background:var(--gold); }
.pnode-label{ margin-top:22px; font-family:var(--serif); font-weight:600; font-size:16px; line-height:1.3; }
.pnode-sub{ margin-top:6px; font-size:11.5px; color:var(--ink-32); letter-spacing:.04em; text-transform:uppercase; }
.pnode-arrow{ position:absolute; top:11px; right:-6px; color:var(--gold-dim); font-size:14px; }
.pnode:last-child .pnode-arrow{ display:none; }
@media (max-width:760px){
  .pipeline{ flex-direction:column; min-width:0; align-items:flex-start; gap:36px; padding-left:9px; }
  .pipeline-line{ top:0; bottom:0; left:9px; right:auto; width:1px; height:auto;
    background:linear-gradient(180deg, transparent, var(--gold-dim) 6%, var(--gold-dim) 94%, transparent); }
  .pnode{ flex-direction:row; align-items:center; text-align:left; padding:0; gap:20px; }
  .pnode-label{ margin-top:0; } .pnode-sub{ margin-top:2px; }
  .pnode-arrow{ display:none; }
}

/* tagline flow (PREVENIR → DETECTAR → CORREGIR → DEFENDER) */
.tagline-flow{ display:flex; flex-wrap:wrap; align-items:center; gap:14px 22px; margin-top:12px; }
.tagline-flow span{ font-family:var(--serif); font-style:italic; font-size:clamp(19px,2.4vw,28px); color:var(--ink); }
.tagline-flow .arrow{ color:var(--gold); font-style:normal; font-size:20px; }
.tagline-flow span.kw{ color:var(--gold); }
.panel-inverse .tagline-flow span{ color:#ffffff; }
.panel-inverse .tagline-flow .arrow{ color:var(--gold); }
.panel-inverse .tagline-flow span.kw{ color:var(--gold); }

/* vertical model steps */
.steps{ display:flex; flex-direction:column; margin-top:8px; }
.step{ display:grid; grid-template-columns:56px 1fr; gap:24px; position:relative; padding-bottom:44px; }
.step:last-child{ padding-bottom:0; }
.step-rail{ position:relative; display:flex; flex-direction:column; align-items:center; }
.step-num{ width:40px; height:40px; border-radius:50%; border:1px solid var(--gold-dim); display:flex; align-items:center; justify-content:center; font-family:var(--serif); font-weight:600; color:var(--gold); font-size:15px; flex:none; background:var(--bg); z-index:1; }
.step:not(:last-child) .step-rail::after{ content:""; position:absolute; top:40px; bottom:-44px; width:1px; background:var(--hair-strong); }
.step-body h4{ font-family:var(--serif); font-weight:600; font-size:20px; margin-bottom:8px; }
.step-body p{ font-size:14.5px; color:var(--ink-50); line-height:1.7; max-width:560px; }

/* =========================================================
   11. EJES RECTORES / DIFERENCIADORES BLOCKS
========================================================= */
.eje-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:0; margin-top:8px; }
.eje{ padding:44px 40px 44px 0; border-top:1px solid var(--hair); }
.eje-grid > .eje:nth-child(odd){ padding-right:48px; border-right:1px solid var(--hair); padding-left:0; }
.eje-grid > .eje:nth-child(even){ padding-left:48px; }
.eje-grid > .eje:nth-last-child(-n+2){ border-bottom:1px solid var(--hair); }
.eje-num{ font-family:var(--serif); font-weight:500; font-size:52px; color:var(--gold); line-height:1; margin-bottom:18px; }
.eje h4{ font-family:var(--serif); font-weight:600; font-size:21px; margin-bottom:12px; }
.eje p{ font-size:14.5px; line-height:1.75; color:var(--ink-50); }
@media (max-width:760px){
  .eje-grid{ grid-template-columns:1fr; }
  .eje-grid > .eje:nth-child(odd){ border-right:none; padding-right:0; border-bottom:1px solid var(--hair); }
  .eje-grid > .eje:nth-child(even){ padding-left:0; border-bottom:1px solid var(--hair); }
  .eje-grid > .eje:nth-last-child(-n+2){ border-bottom:1px solid var(--hair); }
}

.diff-row{ display:flex; flex-direction:column; margin-top:8px; }
.diff-item{ display:grid; grid-template-columns:200px 1fr; gap:32px; padding:28px 0; border-top:1px solid var(--hair); align-items:baseline; }
.diff-row .diff-item:last-child{ border-bottom:1px solid var(--hair); }
.diff-item h5{ font-family:var(--serif); font-weight:600; font-size:19px; color:var(--ink); }
.diff-item p{ font-size:14.5px; color:var(--ink-50); line-height:1.7; }
@media (max-width:700px){ .diff-item{ grid-template-columns:1fr; gap:8px; } }

/* =========================================================
   12. CONTACT
========================================================= */
.contact-grid{ display:grid; grid-template-columns:1fr .85fr; gap:clamp(40px,6vw,90px); align-items:start; }
.contact-card{ background:var(--surface); border:1px solid var(--hair); padding:clamp(32px,4vw,48px); }
.field{ margin-bottom:20px; }
.field label{ display:block; font-size:11.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-50); margin-bottom:9px; }
.field input, .field textarea, .field select{
  width:100%; background:transparent; border:none; border-bottom:1px solid var(--hair-strong);
  color:var(--ink); font-family:var(--sans); font-size:15px; padding:10px 2px; transition:border-color .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus{ border-color:var(--gold); outline:none; }
.field textarea{ resize:vertical; min-height:90px; }
.field select option{ background:var(--surface); }
.contact-submit{ margin-top:8px; width:100%; justify-content:center; }
.form-note{ font-size:12px; color:var(--ink-32); margin-top:16px; line-height:1.6; }
.form-error{ background:rgba(220,80,60,.12); border:1px solid rgba(220,80,60,.4); color:#ff9d8a; font-size:13.5px; padding:12px 16px; border-radius:2px; margin-bottom:18px; }
.form-success{ display:none; text-align:center; padding:40px 10px; }
.form-success.show{ display:block; }
.form-success svg{ margin:0 auto 18px; width:34px; height:34px; color:var(--gold); }

.info-list{ display:flex; flex-direction:column; gap:0; margin-top:32px; }
.info-item{ display:flex; gap:18px; padding:20px 0; border-top:1px solid var(--hair); }
.info-list .info-item:last-child{ border-bottom:1px solid var(--hair); }
.info-item .ic{ width:18px; height:18px; color:var(--gold); flex:none; margin-top:2px; }
.info-item .label{ font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-32); margin-bottom:5px; }
.info-item .val{ font-size:15.5px; color:var(--ink); }

/* =========================================================
   13. FOOTER
========================================================= */
.site-footer{ background:var(--bg-deep); border-top:1px solid var(--hair); padding:72px 0 28px; }
.footer-top{ display:grid; grid-template-columns:1.3fr repeat(4,1fr); gap:36px; padding-bottom:56px; border-bottom:1px solid var(--hair); }
.footer-brand{ display:flex; align-items:flex-start; gap:12px; }
.footer-tag{ font-size:13.5px; color:var(--ink-32); margin-top:16px; line-height:1.7; max-width:230px; }
.footer-col h6{ font-size:11.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-32); margin-bottom:18px; }
.footer-col ul li{ margin-bottom:11px; }
.footer-col ul li a{ font-size:14px; color:var(--ink-70); transition:color .2s var(--ease); }
.footer-col ul li a:hover{ color:var(--gold); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:26px; flex-wrap:wrap; gap:12px; }
.footer-bottom p{ font-size:12px; color:var(--ink-32); }
@media (max-width:900px){
  .footer-top{ grid-template-columns:1fr 1fr; }
}
@media (max-width:560px){
  .footer-top{ grid-template-columns:1fr; }
}

/* =========================================================
   14. UTILITIES
========================================================= */
.mt-64{ margin-top:64px; } .mt-48{ margin-top:48px; } .mt-32{ margin-top:32px; }
.mt-22{ margin-top:22px; } .mt-20{ margin-top:20px; } .mt-18{ margin-top:18px; }
.mt-10{ margin-top:10px; } .mt-0{ margin-top:0; } .mb-0{ margin-bottom:0; }
.mx-auto{ margin-inline:auto; } .ml-6{ margin-left:6px; }
.gap-20{ gap:20px; } .max-w-720{ max-width:720px; }
.jc-center{ justify-content:center; } .items-baseline{ align-items:baseline; }
.justify-end-m0{ justify-self:end; margin:0; }
.w-100{ width:100%; } .is-hidden{ display:none; }
.c-black{ color:#000000; } .c-mist{ color:#f4f4f5; }
.text-center{ text-align:center; }
.center-col{ max-width:760px; margin-inline:auto; text-align:center; }
.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; }

/* =========================================================
   15. ICONOS TEMÁTICOS
========================================================= */
.theme-icon{
  width:46px; height:46px; border:1px solid var(--gold-dim); border-radius:50%;
  display:flex; align-items:center; justify-content:center; flex:none;
  color:var(--gold); margin-top:24px; opacity:0; transform:scale(.7);
  transition:opacity .5s var(--ease) .12s, transform .5s var(--ease) .12s, border-color .25s var(--ease), background .25s var(--ease);
}
.theme-icon svg{ width:20px; height:20px; }
.reveal.in .theme-icon{ opacity:1; transform:scale(1); }
.card:hover .theme-icon, .module-card:hover .theme-icon, .eje:hover .theme-icon, .diff-item:hover .theme-icon{
  border-color:var(--gold); background:var(--gold-08);
}
.theme-icon.icon-end{ margin-top:24px; margin-bottom:0; align-self:flex-start; }
.list-plain li{ position:relative; }
.list-plain li .theme-icon{ width:34px; height:34px; margin:0 0 0 auto; order:2; }
.list-plain li .li-text{ order:1; flex:1; }
.list-plain li{ justify-content:space-between; }
.list-plain li .theme-icon svg{ width:15px; height:15px; }

.card-icon-row{ display:flex; justify-content:flex-end; }

/* =========================================================
   16. ILUSTRACIONES DE FONDO
========================================================= */
.bg-illustration{ position:absolute; pointer-events:none; z-index:0; opacity:.09; color:var(--gold); }
.bg-illustration.gray{ color:var(--ink); opacity:.06; }
.section > .bg-illustration + .container,
.hero > .bg-illustration + .container{ position:relative; z-index:1; }
.section{ overflow:hidden; }

.blueprint-tr{ top:-6%; right:-8%; width:min(46vw,520px); height:auto; }
.blueprint-bl{ bottom:-10%; left:-6%; width:min(40vw,460px); height:auto; }
.blueprint-center{ top:50%; left:50%; transform:translate(-50%,-50%); width:min(70vw,900px); height:auto; }
.hero-motif{ position:absolute; top:8%; right:-4%; width:min(30vw,320px); height:auto; opacity:.1; color:var(--gold); pointer-events:none; }

/* =========================================================
   17. ANIMACIONES
========================================================= */
@keyframes growUp{ from{ transform:scaleY(0); } to{ transform:scaleY(1); } }
@keyframes floatSlow{ 0%,100%{ transform:translateY(-50%) translateX(0); } 50%{ transform:translateY(-52%) translateX(-6px); } }
@keyframes spinSlow{ from{ transform:rotate(0deg); } to{ transform:rotate(360deg); } }
@keyframes dashMove{ to{ stroke-dashoffset:-40; } }
@keyframes popIn{ from{ opacity:0; transform:scale(.85); } to{ opacity:1; transform:scale(1); } }

.hero-art rect{ transform-box:fill-box; transform-origin:center bottom; transform:scaleY(0); }
.hero-visual.in .hero-art rect{ animation:growUp .85s var(--ease) forwards; }
.hero-visual.in .hero-art rect:nth-of-type(1){ animation-delay:.05s; }
.hero-visual.in .hero-art rect:nth-of-type(2){ animation-delay:.15s; }
.hero-visual.in .hero-art rect:nth-of-type(3){ animation-delay:.25s; }
.hero-visual.in .hero-art rect:nth-of-type(4){ animation-delay:.35s; }
.hero-visual.in .hero-art rect:nth-of-type(5){ animation-delay:.45s; }
.hero-visual.in .hero-art rect:nth-of-type(6){ animation-delay:.55s; }
.hero-art .draw-line{ stroke-dasharray:6 6; animation:dashMove 6s linear infinite; }
.hero-art .accent-dot{ animation:popIn .5s var(--ease) 1s backwards; }

.hero-watermark{ animation:spinSlow 140s linear infinite; transform-origin:center; }
.hero-motif{ animation:floatSlow 8s ease-in-out infinite; }

/* dibujo de línea del pipeline */
.pipeline-line{ transform-origin:left center; transform:scaleX(0); transition:transform .9s var(--ease) .1s; }
.pipeline-wrap.in .pipeline-line{ transform:scaleX(1); }
.pnode{ opacity:0; transform:translateY(14px); transition:opacity .55s var(--ease), transform .55s var(--ease); }
.pipeline-wrap.in .pnode{ opacity:1; transform:none; }
.pipeline > .pnode:nth-child(2){ transition-delay:.15s; }
.pipeline > .pnode:nth-child(3){ transition-delay:.28s; }
.pipeline > .pnode:nth-child(4){ transition-delay:.41s; }
.pipeline > .pnode:nth-child(5){ transition-delay:.54s; }
.pipeline > .pnode:nth-child(6){ transition-delay:.67s; }
.pipeline > .pnode:nth-child(7){ transition-delay:.80s; }
.pnode-dot{ transition:transform .3s var(--ease), background .3s var(--ease); }
.pnode:hover .pnode-dot{ transform:scale(1.25); }
@media (max-width:760px){
  .pipeline-line{ transform-origin:center top; }
}

/* stagger de tarjetas y bloques al aparecer */
.module-grid .module-card.reveal:nth-child(1){ transition-delay:0s; }
.module-grid .module-card.reveal:nth-child(2){ transition-delay:.09s; }
.module-grid .module-card.reveal:nth-child(3){ transition-delay:.18s; }
.module-grid .module-card.reveal:nth-child(4){ transition-delay:.27s; }
.grid-4 .card.reveal:nth-child(1){ transition-delay:0s; }
.grid-4 .card.reveal:nth-child(2){ transition-delay:.09s; }
.grid-4 .card.reveal:nth-child(3){ transition-delay:.18s; }
.grid-4 .card.reveal:nth-child(4){ transition-delay:.27s; }
.eje-grid .eje.reveal:nth-child(1){ transition-delay:0s; }
.eje-grid .eje.reveal:nth-child(2){ transition-delay:.09s; }
.eje-grid .eje.reveal:nth-child(3){ transition-delay:.18s; }
.eje-grid .eje.reveal:nth-child(4){ transition-delay:.27s; }
.diff-grid .diff-card.reveal:nth-child(1){ transition-delay:0s; }
.diff-grid .diff-card.reveal:nth-child(2){ transition-delay:.08s; }
.diff-grid .diff-card.reveal:nth-child(3){ transition-delay:.16s; }
.diff-grid .diff-card.reveal:nth-child(4){ transition-delay:.24s; }
.diff-grid .diff-card.reveal:nth-child(5){ transition-delay:.32s; }
.numlist .numblock.reveal:nth-child(1){ transition-delay:0s; }
.numlist .numblock.reveal:nth-child(2){ transition-delay:.08s; }
.numlist .numblock.reveal:nth-child(3){ transition-delay:.16s; }
.numlist .numblock.reveal:nth-child(4){ transition-delay:.24s; }
.numlist .numblock.reveal:nth-child(5){ transition-delay:.32s; }
.steps .step.reveal:nth-child(1){ transition-delay:0s; }
.steps .step.reveal:nth-child(2){ transition-delay:.12s; }
.steps .step.reveal:nth-child(3){ transition-delay:.24s; }
.steps .step.reveal:nth-child(4){ transition-delay:.36s; }
.list-plain.reveal-list li{ opacity:0; transform:translateY(10px); transition:opacity .5s var(--ease), transform .5s var(--ease); }
.list-plain.reveal-list.in li{ opacity:1; transform:none; }
.list-plain.reveal-list.in li:nth-child(1){ transition-delay:0s; }
.list-plain.reveal-list.in li:nth-child(2){ transition-delay:.07s; }
.list-plain.reveal-list.in li:nth-child(3){ transition-delay:.14s; }
.list-plain.reveal-list.in li:nth-child(4){ transition-delay:.21s; }
.list-plain.reveal-list.in li:nth-child(5){ transition-delay:.28s; }
.pill-row.reveal-list .pill{ opacity:0; transform:translateY(8px); transition:opacity .45s var(--ease), transform .45s var(--ease); }
.pill-row.reveal-list.in .pill{ opacity:1; transform:none; }
.pill-row.reveal-list.in .pill:nth-child(1){ transition-delay:0s; }
.pill-row.reveal-list.in .pill:nth-child(2){ transition-delay:.06s; }
.pill-row.reveal-list.in .pill:nth-child(3){ transition-delay:.12s; }
.pill-row.reveal-list.in .pill:nth-child(4){ transition-delay:.18s; }
.pill-row.reveal-list.in .pill:nth-child(5){ transition-delay:.24s; }
.info-list .info-item.reveal:nth-child(1){ transition-delay:0s; }
.info-list .info-item.reveal:nth-child(2){ transition-delay:.08s; }
.info-list .info-item.reveal:nth-child(3){ transition-delay:.16s; }
.info-list .info-item.reveal:nth-child(4){ transition-delay:.24s; }

@media (prefers-reduced-motion: reduce){
  .hero-watermark, .hero-motif, .hero-art .draw-line{ animation:none !important; }
  .hero-art rect{ transform:none !important; }
}

/* =========================================================
   18. FONDOS FOTOGRÁFICOS (secciones con imagen de fondo)
========================================================= */
.section.photo-bg, .hero.photo-bg{
  background-size:cover; background-position:center; background-repeat:no-repeat;
  padding-top:calc(var(--pad-y) + 20px);
}
.section.photo-bg::after, .hero.photo-bg::after{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:linear-gradient(180deg, rgba(10,11,12,.5) 0%, rgba(244,244,245,.82) 62%, var(--bg) 100%);
}
.section.photo-bg > .container, .hero.photo-bg > .container,
.section.photo-bg > .bg-illustration, .hero.photo-bg > .bg-illustration{ position:relative; z-index:1; }

/* secciones introductorias sin imagen de fondo que requieren el mismo espaciado superior */
.section-hero{ padding-top:calc(var(--pad-y) + 20px); }

/* imagen de fondo específica de cada sección introductoria */
.photo-intro-despacho{ background-image:url('../img/el_despacho_bg.jpg'); }
.photo-intro-servicios{ background-image:url('../img/servicios-bg.jpg'); }
.photo-intro-sectores{ background-image:url('../img/sectores-bg.jpg'); }
.photo-intro-modelo{ background-image:url('../img/modelo-bg.jpg'); }
.photo-intro-ejes{ background-image:url('../img/ejes-bg.jpg'); }

/* oculta visualmente el sprite de íconos SVG sin quitarlo del flujo accesible */
.svg-sprite-hidden{ position:absolute; width:0; height:0; overflow:hidden; }

/* imagen principal del hero (Inicio) */
.hero-photo-frame{ position:relative; width:100%; aspect-ratio:4/5; overflow:hidden; border:1px solid var(--hair-strong); }
.hero-photo-frame img{ width:100%; height:100%; object-fit:cover; display:block; transform:scale(1.06); opacity:0; transition:transform 1.4s var(--ease), opacity .9s var(--ease); }
.hero-visual.in .hero-photo-frame img{ transform:scale(1); opacity:1; }

/* imagen del panel Mensaje Estratégico */
.panel-inverse .msg-grid{ display:grid; grid-template-columns:1.2fr .8fr; gap:clamp(32px,5vw,64px); align-items:center; }
.panel-photo-frame{ position:relative; width:100%; aspect-ratio:9/7; overflow:hidden; border-radius:4px; box-shadow:0 30px 60px rgba(0,0,0,.28); }
.panel-photo-frame img{ width:100%; height:100%; object-fit:cover; display:block; }
@media (max-width:900px){ .panel-inverse .msg-grid{ grid-template-columns:1fr; } }

/* tarjetas de diferenciadores con fotografía */
.diff-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--hair); border:1px solid var(--hair); margin-top:8px; }
.diff-card{ background:var(--bg); display:flex; flex-direction:column; transition:background .25s var(--ease); }
.diff-card:hover{ background:var(--surface); }
.diff-photo{ width:100%; aspect-ratio:4/3; overflow:hidden; }
.diff-photo img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .6s var(--ease); }
.diff-card:hover .diff-photo img{ transform:scale(1.06); }
.diff-body{ padding:clamp(22px,2.6vw,30px); flex:1; display:flex; flex-direction:column; }
.diff-body h5{ font-family:var(--serif); font-weight:600; font-size:19px; color:var(--ink); margin-bottom:10px; }
.diff-body p{ font-size:14.5px; color:var(--ink-50); line-height:1.75; flex:1; }
@media (max-width:900px){ .diff-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px){ .diff-grid{ grid-template-columns:1fr; } }

/* =========================================================
   19. MAPA DE CONTACTO
========================================================= */
.map-frame{ position:relative; width:100%; aspect-ratio:16/10; border:1px solid var(--hair); overflow:hidden; filter:grayscale(.35) contrast(1.05); }
.map-frame iframe{ width:100%; height:100%; border:0; display:block; }
.info-item .val a{ color:var(--ink); border-bottom:1px solid transparent; transition:color .2s var(--ease), border-color .2s var(--ease); }
.info-item .val a:hover{ color:var(--gold); border-color:var(--gold-dim); }

/* =========================================================
   20. RESPONSIVE / COMPATIBILIDAD ADICIONAL
========================================================= */
html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; }
input, textarea, select, button{ -webkit-appearance:none; appearance:none; border-radius:0; }
.btn, .pill{ -webkit-appearance:none; appearance:none; }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)){
  .site-header{ background:rgba(255,255,255,.72); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
  .site-header{ background:rgba(255,255,255,.96); }
}
img{ max-width:100%; height:auto; }
.container, .header-inner{ width:100%; }

@media (max-width:1180px){ :root{ --container:96vw; } }
@media (max-width:1024px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-visual{ order:-1; max-width:420px; margin:0 auto 12px; }
  .contact-grid{ grid-template-columns:1fr; }
}
@media (max-width:820px){
  .grid-2{ gap:32px; }
  .header-inner{ height:72px; }
  main{ padding-top:72px; }
  .main-nav{ top:72px; height:calc(100vh - 72px); }
  .logo--header{ width:66px; }
}
@media (max-width:480px){
  .h-xl{ font-size:clamp(32px,10vw,44px); }
  .btn{ width:100%; justify-content:center; }
  .btn-row{ flex-direction:column; }
  .header-inner{ padding:0 16px; }
  .brand-word{ font-size:15px; }
}
@media (min-width:1600px){
  :root{ --container:1360px; }
}
@media (hover:none) and (pointer:coarse){
  .dropdown{ transition:none; }
  .module-card:hover, .diff-card:hover, .card:hover{ background:inherit; }
}

/* =========================================================
   21. COMPONENTES ADICIONALES (estadísticas, actualidad)
========================================================= */
.stats-row{
  display:grid; grid-template-columns:repeat(4,1fr); gap:1px;
  background:var(--hair); border:1px solid var(--hair); margin-top:8px;
}
.stat-item{
  background:var(--bg); padding:clamp(28px,3.4vw,44px) clamp(16px,2vw,28px);
  text-align:center; display:flex; flex-direction:column; align-items:center; gap:8px;
}
.stat-number{
  font-family:var(--serif); font-weight:600; color:var(--gold);
  font-size:clamp(34px,4.2vw,56px); line-height:1;
}
.stat-label{ font-size:13px; color:var(--ink-50); letter-spacing:.03em; max-width:160px; }
@media (max-width:900px){ .stats-row{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:480px){ .stats-row{ grid-template-columns:1fr; } }

.news-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; margin-top:40px; }
.news-card{ display:flex; flex-direction:column; border-top:3px solid var(--gold); padding-top:20px; }
.news-tag{ font-size:11.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--gold); margin-bottom:12px; }
.news-title{ font-family:var(--serif); font-weight:600; font-size:20px; line-height:1.35; color:var(--ink); margin-bottom:14px; }
.news-card .link-arrow{ margin-top:auto; }
@media (max-width:900px){ .news-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .news-grid{ grid-template-columns:1fr; } }

.btn-dark{ background:var(--black); color:var(--gold); }
.btn-dark:hover{ background:#000; color:#fff; }

