/* ==============================================================
   GRUPO CONTSULTA — Sitio web · Sistema visual
   ============================================================== */

:root{
  --navy:#0A1B33;
  --navy-2:#0F2645;
  --petrol:#0E4C58;
  --petrol-2:#12616F;
  --white:#FFFFFF;
  --graphite:#2B2F36;
  --graphite-60:#6B7078;
  --light:#EEF1F4;
  --light-2:#F7F8FA;
  --line:#DCE1E6;
  --accent:#B9863F;
  --accent-soft:#E8D8BE;

  --font-display:'Space Grotesk', sans-serif;
  --font-body:'Manrope', sans-serif;

  --container:1120px;
  --radius:6px;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; scroll-padding-top:84px; }
body{
  font-family:var(--font-body);
  color:var(--graphite);
  background:var(--white);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
.container{ max-width:var(--container); margin:0 auto; padding:0 24px; }

h1,h2,h3,h4{ font-family:var(--font-display); color:var(--navy); font-weight:700; letter-spacing:-0.01em; line-height:1.15; }
h2{ font-size:clamp(1.7rem, 3.2vw, 2.4rem); max-width:720px; }
h3{ font-size:1.5rem; }
h4{ font-size:1.05rem; }

.eyebrow{
  font-family:var(--font-body); font-weight:700; font-size:0.72rem; letter-spacing:0.16em;
  text-transform:uppercase; color:var(--accent); margin-bottom:0.6rem; display:block;
}
.eyebrow-light{ color:var(--accent-soft); }
.lede{ color:var(--graphite-60); font-size:1.05rem; max-width:640px; margin-top:0.75rem; margin-bottom:2.5rem; }
.meta-label{ font-size:0.68rem; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--graphite-60); }
.meta-label-light{ color:#8FA1B8; }

/* ---------- reveal-on-scroll ---------- */
.reveal{ opacity:1; transform:none; }
.js-reveal .reveal{ opacity:0; transform:translateY(18px); transition:opacity 0.7s ease, transform 0.7s ease; }
.js-reveal .reveal.in{ opacity:1; transform:translateY(0); }
@media (prefers-reduced-motion: reduce){
  .js-reveal .reveal{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:0.5rem;
  padding:0.85rem 1.6rem; border-radius:999px; font-weight:600; font-size:0.92rem;
  transition:transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-accent{ background:var(--accent); color:var(--white); }
.btn-accent:hover{ transform:translateY(-2px); background:#a8752f; }
.btn-ghost{ border:1.5px solid rgba(255,255,255,0.35); color:var(--white); }
.btn-ghost:hover{ border-color:var(--white); transform:translateY(-2px); }

/* ==============================================================
   NAV
   ============================================================== */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:100;
  background:rgba(10,27,51,0.72); backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.nav-inner{
  max-width:var(--container); margin:0 auto; padding:0 24px;
  height:68px; display:flex; align-items:center; justify-content:space-between;
}
.nav-brand{ display:flex; align-items:center; gap:0.6rem; }
.nav-logo{ height:32px; width:auto; }
.nav-brand span{ font-family:var(--font-display); font-weight:700; font-size:0.85rem; letter-spacing:0.08em; color:var(--white); }
.nav-brand span b{ color:var(--accent); font-weight:700; }
.nav-links{ display:flex; align-items:center; gap:2rem; }
.nav-links a{ color:#C8D2DE; font-size:0.88rem; font-weight:500; transition:color 0.2s ease; }
.nav-links a:hover{ color:var(--white); }
.nav-cta{
  background:var(--accent); color:var(--white) !important; padding:0.55rem 1.2rem;
  border-radius:999px; font-weight:600 !important;
}
.nav-toggle{
  display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:8px;
}
.nav-toggle span{ width:22px; height:2px; background:var(--white); transition:all 0.25s ease; }
.nav-toggle.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ==============================================================
   HERO
   ============================================================== */
.hero{
  position:relative; background:var(--navy); overflow:hidden;
  padding:150px 0 90px 0; min-height:88vh; display:flex; align-items:center;
}
.hero-network{ position:absolute; inset:0; opacity:0.9; pointer-events:none; }
.hero-network svg{ width:100%; height:100%; }
.net-line{ stroke:#1B3A56; stroke-width:1; }
.net-dot{ fill:var(--petrol-2); }
.net-dot.accent{ fill:var(--accent); }

.hero-inner{
  position:relative; z-index:1; max-width:var(--container); margin:0 auto; padding:0 24px;
  display:grid; grid-template-columns:1.15fr 0.85fr; gap:4rem; align-items:center;
}
.hero-copy h1{
  color:var(--white); font-size:clamp(2.6rem, 6vw, 4.2rem); line-height:1.02; margin:0.5rem 0 1.5rem 0;
}
.hero-tags{ color:#C8D2DE; font-size:1rem; font-weight:500; margin-bottom:1.75rem; }
.hero-quote{
  border-left:2px solid var(--accent); padding-left:1.3rem; color:var(--white);
  font-family:var(--font-display); font-weight:500; font-size:1.15rem; line-height:1.55; margin-bottom:2.25rem;
}
.hero-actions{ display:flex; gap:1rem; flex-wrap:wrap; }
.hero-media{
  border-radius:var(--radius); overflow:hidden; box-shadow:0 30px 60px -20px rgba(0,0,0,0.6);
  border:1px solid rgba(255,255,255,0.1);
}
.hero-media img{ width:100%; height:100%; object-fit:cover; aspect-ratio:4/5; }

.scroll-cue{
  position:absolute; bottom:28px; left:50%; transform:translateX(-50%);
  width:26px; height:42px; border:1.5px solid rgba(255,255,255,0.35); border-radius:16px;
  display:flex; justify-content:center; padding-top:8px; z-index:1;
}
.scroll-cue span{ width:4px; height:8px; border-radius:2px; background:var(--accent); animation:scrollcue 1.8s ease-in-out infinite; }
@keyframes scrollcue{ 0%{ transform:translateY(0); opacity:1; } 70%{ transform:translateY(14px); opacity:0; } 100%{ opacity:0; } }
@media (prefers-reduced-motion: reduce){ .scroll-cue span{ animation:none; } }

/* ==============================================================
   SECTIONS
   ============================================================== */
.section{ padding:6rem 0; }
.section-alt{ background:var(--light-2); }
.area-section{ scroll-margin-top:84px; }

.area-header{ display:flex; align-items:flex-start; gap:1.5rem; margin-bottom:1rem; }
.area-icon{
  flex-shrink:0; width:56px; height:56px; border-radius:50%; background:var(--navy);
  display:flex; align-items:center; justify-content:center;
}
.area-icon svg{ width:26px; height:26px; }
.area-icon-petrol{ background:var(--petrol); }
.area-icon-accent{ background:var(--accent); }

/* ---------- area quick-nav chips (portafolio) ---------- */
.area-nav{ display:flex; flex-wrap:wrap; gap:0.75rem; margin:2rem 0 3rem 0; }
.area-chip{
  display:flex; align-items:center; gap:0.5rem; padding:0.7rem 1.2rem;
  border:1px solid var(--line); border-radius:999px; background:var(--white);
  font-weight:600; font-size:0.88rem; color:var(--navy); transition:all 0.2s ease;
}
.area-chip:hover{ border-color:var(--petrol); background:var(--light); transform:translateY(-2px); }
.area-chip-num{ font-family:var(--font-display); font-weight:700; color:var(--accent); font-size:0.8rem; }

.concept-row{ display:flex; flex-wrap:wrap; align-items:center; gap:0.6rem; justify-content:center; padding-top:1rem; }
.concept-tag{
  font-family:var(--font-display); font-weight:700; font-size:0.72rem; letter-spacing:0.06em;
  background:var(--light); color:var(--navy); padding:0.45rem 0.9rem; border-radius:999px;
}
.concept-tag-accent{ background:var(--accent); color:var(--white); }
.concept-plus{ color:var(--line); font-weight:700; }

/* ==============================================================
   FLOW DIAGRAM (horizontal)
   ============================================================== */
.flow{ position:relative; display:flex; margin:3rem 0; }
.flow-line{ position:absolute; left:8%; right:8%; top:20px; height:1.5px; background:var(--line); }
.flow-dark .flow-line{ background:rgba(255,255,255,0.18); }
.flow-step{ flex:1; text-align:center; position:relative; padding:0 0.5rem; }
.flow-dot{
  width:42px; height:42px; border-radius:50%; background:var(--navy); color:var(--white);
  display:flex; align-items:center; justify-content:center; margin:0 auto 0.9rem auto;
  font-family:var(--font-display); font-weight:700; font-size:0.78rem; position:relative; z-index:1;
}
.flow-dot.accent{ background:var(--accent); }
.flow-label{ font-family:var(--font-display); font-weight:700; font-size:0.9rem; color:var(--navy); }
.flow-dark .flow-label{ color:var(--white); }
.flow-sub{ font-size:0.78rem; color:var(--graphite-60); margin-top:0.3rem; }

/* ---------- vertical flow ---------- */
.vflow{ position:relative; padding-left:2.2rem; }
.vflow-line{ position:absolute; left:0.32rem; top:0.3rem; bottom:0.6rem; width:1.5px; background:var(--line); }
.vflow-step{ position:relative; padding-bottom:1.6rem; }
.vflow-step:last-child{ padding-bottom:0; }
.vflow-dot{
  position:absolute; left:-2.2rem; top:0.2rem; width:11px; height:11px; border-radius:50%;
  background:var(--navy); border:2px solid var(--white); box-shadow:0 0 0 1.5px var(--navy);
}
.vflow-dot.accent{ background:var(--accent); box-shadow:0 0 0 1.5px var(--accent); }
.vflow-step h4{ font-size:1rem; margin-bottom:0.2rem; }
.vflow-step p{ color:var(--graphite-60); font-size:0.9rem; max-width:420px; }

/* ==============================================================
   CARDS / GRIDS
   ============================================================== */
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:2rem; margin:2.5rem 0; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:2rem; margin:2.5rem 0; }
.grid-2 p:last-child, .grid-3 p:last-child{ color:var(--graphite-60); font-size:0.92rem; margin-top:0.3rem; }

.mini-feature h4{ margin-bottom:0.4rem; }
.mini-feature p{ color:var(--graphite-60); font-size:0.92rem; }
.icon-circle{
  width:52px; height:52px; border-radius:50%; background:var(--petrol);
  display:flex; align-items:center; justify-content:center; margin-bottom:1.1rem;
}
.icon-circle svg{ width:24px; height:24px; }
.icon-circle-petrol{ background:var(--navy); }
.icon-circle-accent{ background:var(--accent); }

.mini-feature-num{ text-align:left; }
.mini-feature-numlabel{ font-family:var(--font-display); font-weight:700; font-size:2rem; color:var(--navy); margin-bottom:0.3rem; }
.mini-feature-numlabel.petrol{ color:var(--petrol); }
.mini-feature-numlabel.accent{ color:var(--accent); }

.diff-grid{ grid-template-columns:repeat(3,1fr); text-align:center; }
.diff-grid .icon-circle{ margin-left:auto; margin-right:auto; }

.mini-grid{ display:grid; grid-template-columns:1fr 1fr; gap:0 3rem; margin:3rem 0; }
.mini-item{ display:flex; gap:1rem; padding:1.1rem 0; border-bottom:1px solid var(--line); }
.mini-num{ font-family:var(--font-display); font-weight:700; color:var(--accent); font-size:1rem; flex-shrink:0; width:28px; }
.mini-item h4{ font-size:0.98rem; margin-bottom:0.2rem; }
.mini-item p{ color:var(--graphite-60); font-size:0.86rem; }

.outcome-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; margin-top:1rem; }
.outcome-card{
  background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.12); border-left:3px solid var(--accent);
  padding:1.1rem 1.2rem; border-radius:4px;
}
.outcome-card h4{ color:var(--white); font-size:0.95rem; margin-bottom:0.35rem; }
.outcome-card p{ color:#B8C4D2; font-size:0.82rem; }

.two-col{ display:grid; grid-template-columns:1.2fr 1fr; gap:3.5rem; margin-top:2.5rem; }

/* ==============================================================
   SERVICE ACCORDION
   ============================================================== */
.service-list{ display:flex; flex-direction:column; gap:0.9rem; }
.service-item{
  background:var(--light-2); border:1px solid var(--line); border-left:3px solid var(--petrol);
  border-radius:4px; overflow:hidden;
}
.service-item summary{
  list-style:none; cursor:pointer; padding:1.1rem 1.4rem; display:flex; align-items:center; justify-content:space-between;
  gap:1rem; font-family:var(--font-display); font-weight:700; font-size:1.02rem; color:var(--navy);
}
.service-item summary::-webkit-details-marker{ display:none; }
.service-toggle{ position:relative; width:18px; height:18px; flex-shrink:0; }
.service-toggle::before, .service-toggle::after{
  content:''; position:absolute; background:var(--accent); border-radius:2px; transition:transform 0.25s ease;
}
.service-toggle::before{ width:14px; height:2px; top:8px; left:2px; }
.service-toggle::after{ width:2px; height:14px; top:2px; left:8px; }
.service-item[open] .service-toggle::after{ transform:rotate(90deg); opacity:0; }
.service-body{ padding:0 1.4rem 1.4rem 1.4rem; }
.service-promise{ font-style:italic; color:var(--petrol-2); font-size:0.98rem; margin-bottom:1rem; }
.service-meta{ display:grid; gap:0.7rem; margin-bottom:1rem; }
.service-meta > div{ font-size:0.9rem; color:var(--graphite); }
.service-meta .meta-label{ display:block; margin-bottom:0.2rem; }
.service-desc{
  font-size:0.88rem; color:var(--graphite-60); border-top:1px solid var(--line); padding-top:1rem; line-height:1.6;
}

/* ==============================================================
   FEATURED SERVICE / DARK PANELS
   ============================================================== */
.featured-service{
  background:var(--navy); border-radius:8px; padding:2.5rem; margin:2.5rem 0;
  position:relative; overflow:hidden;
}
.featured-service h3{ color:var(--white); margin-bottom:0.6rem; }
.featured-promise{ color:var(--accent-soft); font-style:italic; font-size:1.05rem; margin-bottom:2rem; }
.featured-plain{ color:#C8D2DE; font-size:0.95rem; margin-top:0.5rem; }
.featured-note{
  margin-top:2rem; background:rgba(255,255,255,0.06); border-radius:4px; padding:1.5rem;
  color:#D6DEE7; font-size:0.95rem; line-height:1.6;
}
.chip-row{ display:flex; flex-wrap:wrap; gap:0.6rem; margin-top:0.8rem; }
.chip{
  font-size:0.82rem; background:var(--white); border:1px solid var(--line); color:var(--graphite);
  padding:0.4rem 0.9rem; border-radius:999px; white-space:nowrap;
}
.chip-dark{ background:rgba(255,255,255,0.06); border-color:rgba(255,255,255,0.18); color:#E8ECF1; }
.chip-col{ display:flex; flex-direction:column; gap:0.6rem; align-items:flex-start; }

.pull-quote{
  font-family:var(--font-display); font-weight:500; font-size:1.3rem; color:var(--navy);
  border-left:3px solid var(--accent); padding-left:1.4rem; max-width:600px; margin-bottom:2.5rem; line-height:1.5;
}
.dark-panel{
  background:var(--navy); border-radius:8px; padding:2.5rem; margin:3rem 0; position:relative; overflow:hidden;
}
.dark-panel-lead{ color:var(--white); font-family:var(--font-display); font-weight:500; font-size:1.35rem; line-height:1.5; max-width:640px; }

.note-box{
  background:var(--light-2); border:1px solid var(--line); border-radius:6px; padding:1.5rem 1.75rem;
  color:var(--graphite-60); font-size:0.95rem; line-height:1.65; margin-top:1rem;
}
.side-quote{
  border-left:2.5px solid var(--accent); padding-left:1.1rem; margin-top:1.8rem;
  font-size:0.92rem; font-style:italic; color:var(--graphite-60); line-height:1.6;
}

.check-item{ display:flex; gap:0.75rem; align-items:flex-start; }
.check-item svg{ width:18px; height:18px; flex-shrink:0; margin-top:0.2rem; }
.check-item p{ font-size:0.9rem; color:var(--graphite-60); }

/* ==============================================================
   CYCLE DIAGRAM (modelo de relación)
   ============================================================== */
.cycle-wrap{ display:flex; justify-content:center; margin:3rem 0; }
.cycle-svg{ width:100%; max-width:560px; height:auto; }
.cycle-node.navy{ fill:var(--navy); }
.cycle-node.petrol{ fill:var(--petrol); }
.cycle-num{ font-family:var(--font-display); font-weight:700; font-size:18px; fill:var(--white); }
.cycle-label{ font-family:var(--font-display); font-weight:700; font-size:13px; fill:var(--navy); letter-spacing:0.04em; }

/* ==============================================================
   FOOTER
   ============================================================== */
.footer{ position:relative; background:var(--navy); padding:5rem 0 2rem 0; overflow:hidden; }
.footer-network{ position:absolute; inset:0; opacity:0.7; pointer-events:none; }
.footer-network svg{ width:100%; height:100%; }
.footer-inner{ position:relative; z-index:1; }
.footer-logo{ height:44px; width:auto; margin-bottom:1.5rem; }
.footer-top h2{ color:var(--white); margin-bottom:0.75rem; }
.footer-top{ margin-bottom:3rem; max-width:640px; }
.footer-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:2rem;
  padding-top:2.5rem; border-top:1px solid rgba(255,255,255,0.14); margin-bottom:2.5rem;
}
.footer-value{ color:var(--white); font-size:0.95rem; margin-top:0.35rem; }
.footer-value a{ transition:color 0.2s ease; }
.footer-value a:hover{ color:var(--accent-soft); }
.footer-placeholder{ color:#8FA1B8; font-style:italic; }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1rem;
  font-size:0.82rem; color:#8FA1B8; padding-top:1.5rem; border-top:1px solid rgba(255,255,255,0.1);
}
.footer-back{ color:#C8D2DE; font-weight:600; transition:color 0.2s ease; }
.footer-back:hover{ color:var(--white); }

/* ==============================================================
   BACK TO TOP
   ============================================================== */
.back-to-top{
  position:fixed; right:24px; bottom:24px; width:46px; height:46px; border-radius:50%;
  background:var(--navy); color:var(--white); border:none; font-size:1.1rem; cursor:pointer;
  display:flex; align-items:center; justify-content:center; box-shadow:0 8px 24px rgba(0,0,0,0.25);
  opacity:0; visibility:hidden; transform:translateY(10px); transition:all 0.3s ease; z-index:90;
}
.back-to-top.show{ opacity:1; visibility:visible; transform:translateY(0); }
.back-to-top:hover{ background:var(--accent); }

/* ==============================================================
   RESPONSIVE
   ============================================================== */
@media (max-width: 900px){
  .hero-inner{ grid-template-columns:1fr; gap:2.5rem; }
  .hero-media{ order:-1; max-width:360px; margin:0 auto; }
  .two-col{ grid-template-columns:1fr; gap:2.5rem; }
  .mini-grid{ grid-template-columns:1fr; gap:0; }
  .grid-3, .diff-grid{ grid-template-columns:1fr 1fr; }
  .outcome-grid{ grid-template-columns:1fr; }
}

@media (max-width: 720px){
  .nav-links{
    position:fixed; top:68px; left:0; right:0; background:var(--navy);
    flex-direction:column; align-items:flex-start; gap:0; padding:1rem 24px 1.5rem 24px;
    border-bottom:1px solid rgba(255,255,255,0.1);
    transform:translateY(-110%); opacity:0; transition:all 0.3s ease; pointer-events:none;
  }
  .nav-links.open{ transform:translateY(0); opacity:1; pointer-events:auto; }
  .nav-links a{ padding:0.85rem 0; width:100%; border-bottom:1px solid rgba(255,255,255,0.06); }
  .nav-cta{ margin-top:0.75rem; text-align:center; }
  .nav-toggle{ display:flex; }

  .hero{ padding:120px 0 70px 0; }
  .section{ padding:4rem 0; }
  .grid-2, .grid-3, .diff-grid{ grid-template-columns:1fr; }
  .flow{ flex-direction:column; gap:1.75rem; }
  .flow-line{ display:none; }
  .flow-step{ display:flex; align-items:center; gap:1rem; text-align:left; }
  .flow-dot{ margin:0; flex-shrink:0; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .area-header{ flex-direction:column; gap:1rem; }
}

@media (max-width: 480px){
  .footer-grid{ grid-template-columns:1fr; }
  .hero-actions{ flex-direction:column; align-items:stretch; }
}
