/* =========================================================
   ROA Consultorías · Hoja de estilos
   Paleta tomada directamente del logo.
   ========================================================= */

:root{
  /* Colores de marca (muestreados del logotipo) */
  --azul:     #3666AF;
  --azul-osc: #2A5290;
  --lima:     #76B82A;
  --verde:    #009640;
  --cian:     #1992CF;
  --cian-cl:  #6BC8ED;
  --gris:     #9D9D9C;

  /* Neutros derivados */
  --ink:      #101C31;
  --ink-2:    #182742;
  --paper:    #F2F4F7;
  --paper-2:  #FFFFFF;
  --muted:    #5D6B80;
  --line:     rgba(16,28,49,.13);
  --line-lt:  rgba(255,255,255,.16);

  /* Tipografía */
  --display: "Archivo", system-ui, sans-serif;
  --body:    "Instrument Sans", system-ui, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* Medidas */
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 4px;
  --pad-y: clamp(72px, 10vw, 132px);
}

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

html { scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(16px, 1.05vw, 17px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas, picture { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }

h1, h2, h3{
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.mono{
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.skip{
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--ink); color: #fff; padding: 12px 18px;
}
.skip:focus { left: 12px; top: 12px; }

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

/* ---------- Encabezado ---------- */
.site-head{
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.site-head.is-stuck { border-bottom-color: var(--line); }

.head-inner{
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 76px;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 210px; }

.nav{ display: flex; align-items: center; gap: 26px; }
.nav a{
  text-decoration: none; font-size: .95rem;
  color: var(--muted); transition: color .2s ease;
}
.nav a:hover { color: var(--azul); }

.nav-cta{
  border: 1px solid var(--azul);
  border-radius: 100px;
  padding: 9px 18px;
  color: var(--azul) !important;
}
.nav-cta:hover { background: var(--azul); color: #fff !important; }

.burger{
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent; cursor: pointer; padding: 0;
}
.burger span{
  display: block; width: 20px; height: 1.5px;
  background: var(--ink); margin: 5px auto;
  transition: transform .25s ease;
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- Botones ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-size: .95rem; font-weight: 600;
  padding: 14px 26px;
  border-radius: 100px;
  border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-solid{ background: var(--azul); color: #fff; }
.btn-solid:hover{ background: var(--azul-osc); }

.btn-ghost{ border-color: var(--line); color: var(--ink); }
.btn-ghost:hover{ border-color: var(--lima); color: var(--verde); }

.btn-on-dark{ background: var(--lima); color: var(--ink); }
.btn-on-dark:hover{ background: #fff; }

.btn-block{ width: 100%; }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  padding-block: clamp(48px, 7vw, 88px) clamp(56px, 8vw, 96px);
  overflow: hidden;
}
.hero-signal{
  position: absolute; inset: auto 0 0 0;
  width: 100%; height: 42%;
  pointer-events: none;
}
.hero-inner{
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.eyebrow{
  font-family: var(--mono);
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.eyebrow-light { color: rgba(242,244,247,.6); }

.hero-title{
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  font-stretch: 92%;
  max-width: 13ch;
}
.hero-title em{
  font-style: normal;
  font-stretch: 118%;
  background: linear-gradient(100deg, var(--verde), var(--lima) 45%, var(--cian));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.hero-lede{
  margin-top: 24px; max-width: 46ch;
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  color: var(--muted);
}

.hero-actions{ margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-meta{
  margin: 48px 0 0;
  display: flex; flex-wrap: wrap; gap: 14px 44px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.hero-meta dt{
  font-family: var(--mono); font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.hero-meta dd { margin: 0; font-size: .93rem; }

.hero-figure{ position: relative; margin: 0; }
.hero-figure img{ position: relative; width: 100%; }

@media (min-width: 941px){
  .hero-figure img{ width: 114%; margin-left: -7%; }
  .hero-halo{ width: 100%; }
}
.hero-halo{
  position: absolute; z-index: 0;
  left: 50%; top: 46%;
  width: 88%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(118,184,42,.20) 0%,
    rgba(25,146,207,.14) 45%,
    rgba(242,244,247,0) 70%);
}
.hero-figure figcaption{
  position: relative;
  margin-top: 10px; text-align: center;
  color: var(--muted); font-size: .7rem; letter-spacing: .12em;
}

/* ---------- Secciones ---------- */
.section{ padding-block: var(--pad-y); }
.section-alt{ background: var(--paper-2); }

.section-head{ max-width: 44ch; margin-bottom: clamp(40px, 6vw, 68px); }
.section-title{ font-size: clamp(1.9rem, 3.6vw, 3rem); font-stretch: 95%; }
.section-lede{ margin-top: 18px; color: var(--muted); }

/* ---------- Etapas ---------- */
.stages{
  display: grid; gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  grid-template-columns: repeat(4, 1fr);
}
.stage{
  background: var(--paper);
  padding: 34px 26px 40px;
  transition: background .3s ease;
}
.stage:hover{ background: var(--paper-2); }

.stage-num{
  font-family: var(--mono);
  font-size: .74rem; letter-spacing: .14em;
  display: block; margin-bottom: 26px;
}
.stages .stage:nth-child(1) .stage-num{ color: var(--verde); }
.stages .stage:nth-child(2) .stage-num{ color: var(--lima); }
.stages .stage:nth-child(3) .stage-num{ color: var(--cian); }
.stages .stage:nth-child(4) .stage-num{ color: var(--azul); }

.stage h3{ font-size: 1.18rem; font-weight: 700; font-stretch: 105%; margin-bottom: 12px; }
.stage p{ color: var(--muted); font-size: .93rem; }

/* ---------- Servicios ---------- */
.service{
  display: grid;
  grid-template-columns: 1fr 200px;
  align-items: center; gap: 32px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.service:last-child{ border-bottom: 1px solid var(--line); }

.service h3{ font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 700; font-stretch: 100%; }
.service p{ color: var(--muted); margin-top: 8px; font-size: .95rem; }

.service-spark{ height: 46px; }
.service-spark svg{ width: 100%; height: 100%; overflow: visible; }
.service-spark path{
  fill: none; stroke: var(--line);
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .3s ease;
}
.service:hover .service-spark path{ stroke: var(--lima); }

/* ---------- Bio Assess ---------- */
.bio{
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--pad-y);
  overflow: hidden;
}
.bio-net{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .22;
  pointer-events: none;
}
.bio-grid{
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.bio-title{ font-size: clamp(2rem, 4vw, 3.1rem); font-stretch: 92%; max-width: 14ch; }
.bio-lede{
  margin: 24px 0 34px;
  color: rgba(242,244,247,.72);
  max-width: 48ch;
}

.bio-visual{ margin: 0; }
.bio-photo{
  width: 78%;
  margin: 0 auto -34px;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.45));
}

.monitor{
  position: relative;
  background: rgba(24,39,66,.92);
  border: 1px solid var(--line-lt);
  border-radius: 6px;
  padding: 16px;
  backdrop-filter: blur(4px);
}
.monitor-head{
  display: flex; justify-content: space-between; align-items: center;
  color: rgba(242,244,247,.55);
  margin-bottom: 12px;
}
.monitor-dot{ display: inline-flex; align-items: center; gap: 7px; }
.monitor-dot::before{
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--lima);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }

#bioSignal{ width: 100%; height: 150px; }

.channels{
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--line-lt);
  color: rgba(242,244,247,.62);
  font-size: .72rem;
}
.channels li{ display: inline-flex; align-items: center; gap: 8px; }
.ch-key{ width: 14px; height: 2px; border-radius: 2px; }
.ch-key[data-ch="0"]{ background: var(--lima); }
.ch-key[data-ch="1"]{ background: var(--cian-cl); }
.ch-key[data-ch="2"]{ background: var(--verde); }

.bio-visual figcaption{
  margin-top: 14px;
  color: rgba(242,244,247,.4);
  font-size: .68rem; letter-spacing: .1em;
}

/* ---------- Catas neuroanalíticas ---------- */
.tastings{
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.tasting-figure{
  margin: 0; border-radius: 8px; overflow: hidden;
}
.tasting-figure img{ width: 100%; }

.tasting-text{ margin-top: 22px; }
.tasting-tag{ color: var(--muted); margin-bottom: 10px; }
.tasting-text h3{
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700; font-stretch: 100%;
  margin-bottom: 12px;
}
.tasting-text p{ color: var(--muted); font-size: .95rem; }

.tasting-metrics{
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: .7rem;
}
.tasting-metrics li{ display: inline-flex; align-items: center; gap: 7px; }
.tasting-metrics li::before{
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--lima);
}
.tasting-metrics li:nth-child(2)::before{ background: var(--cian); }
.tasting-metrics li:nth-child(3)::before{ background: var(--verde); }

/* ---------- Métricas ---------- */
.metrics{
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border-block: 1px solid var(--line);
}
.metric{ background: var(--paper); padding: 32px 24px 38px; }
.metric-num{
  font-family: var(--display);
  font-weight: 900; font-stretch: 78%;
  font-size: clamp(3rem, 6vw, 4.4rem);
  line-height: 1; letter-spacing: -0.04em;
  display: flex; align-items: baseline; gap: 2px;
  color: var(--azul);
}
.metric-unit{ font-stretch: 100%; font-size: .45em; }
.metrics .metric:nth-child(1) .metric-unit{ color: var(--verde); }
.metrics .metric:nth-child(2) .metric-unit{ color: var(--lima); }
.metrics .metric:nth-child(3) .metric-unit{ color: var(--cian); }
.metrics .metric:nth-child(4) .metric-unit{ color: var(--verde); }

.metric h3{ margin-top: 18px; font-size: 1.02rem; font-weight: 700; font-stretch: 105%; }
.metric-note{ margin-top: 8px; color: var(--muted); font-size: .88rem; }

.values{
  margin-top: 40px; text-align: center;
  color: var(--muted); letter-spacing: .18em;
}

/* ---------- Contacto ---------- */
.contact-grid{
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}
.contact-list{ margin-top: 34px; border-top: 1px solid var(--line); }
.contact-list li{
  display: flex; gap: 18px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  text-transform: none; letter-spacing: 0; font-size: .9rem;
}
.contact-list span{
  min-width: 90px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .1em;
  font-size: .72rem; padding-top: 3px;
}
.contact-list a{ text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list a:hover{ border-bottom-color: var(--lima); color: var(--verde); }

.form{ display: grid; gap: 20px; }
.field{ display: grid; gap: 7px; }
.field label{
  font-family: var(--mono);
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.opt{ text-transform: none; letter-spacing: 0; }

.field input,
.field textarea{
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px; width: 100%;
  transition: border-color .2s ease, background .2s ease;
}
.field input:focus,
.field textarea:focus{ border-color: var(--azul); background: #fff; }
.field textarea{ resize: vertical; }

.field.is-invalid input,
.field.is-invalid textarea{ border-color: #C0392B; }

.error{ font-size: .82rem; color: #C0392B; min-height: 1.1em; }

.form-status{ font-size: .9rem; color: var(--muted); min-height: 1.2em; }
.form-status.is-ok{ color: var(--verde); font-weight: 600; }

/* ---------- Pie ---------- */
.site-foot{
  background: var(--ink);
  color: rgba(242,244,247,.7);
  padding-block: 44px;
}
.foot-inner{
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 22px;
}
.brand-foot img{ width: 190px; }
.foot-nav{ display: flex; flex-wrap: wrap; gap: 22px; }
.foot-nav a{ text-decoration: none; font-size: .92rem; }
.foot-nav a:hover{ color: var(--lima); }
.foot-legal{ color: rgba(242,244,247,.4); }

/* ---------- Animación de entrada ---------- */
.reveal{
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible{ opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 940px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-figure{ max-width: 380px; margin-inline: auto; order: -1; }
  .hero-title{ max-width: 100%; }
  .stages{ grid-template-columns: repeat(2, 1fr); }
  .metrics{ grid-template-columns: repeat(2, 1fr); }
  .bio-grid,
  .contact-grid,
  .tastings{ grid-template-columns: 1fr; }
  .bio-photo{ width: 62%; }
}

@media (max-width: 760px){
  .burger{ display: block; }
  .brand img{ width: 165px; }

  .nav{
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-130%);
    transition: transform .3s ease;
  }
  .nav.is-open{ transform: none; }
  .nav a{ padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-cta{ margin-top: 16px; text-align: center; border-bottom: none; }

  .service{ grid-template-columns: 1fr; gap: 16px; }
  .service-spark{ height: 34px; }
  .hero-meta{ gap: 18px; }
  .foot-inner{ flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px){
  .stages{ grid-template-columns: 1fr; }
  .metrics{ grid-template-columns: 1fr; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal{ opacity: 1; transform: none; }
}
