/* ============================================
   DCS Compliance — dark navy SaaS
   ============================================ */

:root{
  /* palette */
  --bg: #0A0E1F;
  --bg-2: #0C1126;
  --bg-3: #0E1430;
  --surface: #131A33;
  --surface-2: #182040;
  --surface-3: #1E2754;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --border-blue: rgba(91,107,251,0.32);

  --text: #FFFFFF;
  --text-1: #E5E9F5;
  --text-mute: #A3ABCE;
  --text-soft: #6F77A0;

  --primary: #5168FF;
  --primary-2: #4255F0;
  --primary-soft: #7383FF;
  --primary-bright: #6C7EFF;
  --primary-glow: rgba(81,104,255,0.45);
  --primary-tint: rgba(81,104,255,0.10);
  --primary-tint-2: rgba(81,104,255,0.18);

  --success: #4FD693;
  --success-bg: rgba(79,214,147,0.12);
  --warning: #F5B547;
  --warning-bg: rgba(245,181,71,0.14);
  --critical: #FF5C6A;
  --critical-bg: rgba(255,92,106,0.14);
  --info-bg: rgba(91,107,251,0.14);

  /* effects */
  --shadow-md: 0 12px 30px -10px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.25);
  --shadow-lg: 0 40px 80px -20px rgba(0,0,0,0.7), 0 8px 24px rgba(0,0,0,0.35);
  --glow-blue: 0 0 0 1px rgba(91,107,251,0.35), 0 20px 60px -20px rgba(81,104,255,0.55);

  /* type */
  --sans: 'Geist', 'Söhne', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;

  /* layout */
  --maxw: 1200px;
  --gutter: 24px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-pill: 999px;
}

*,*::before,*::after{box-sizing:border-box;}
html,body{margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  font-feature-settings:"ss01","cv01","cv11";
  overflow-x:hidden;
}

img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
button{font:inherit;cursor:pointer;border:none;background:none;color:inherit;}

.container{max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter);}

h1,h2,h3,h4{font-family:var(--sans);font-weight:600;letter-spacing:-0.02em;margin:0;color:var(--text);}
h1{font-size:clamp(34px, 3.6vw, 46px);line-height:1.08;letter-spacing:-0.025em;}
h2{font-size:clamp(36px, 4.4vw, 52px);line-height:1.06;letter-spacing:-0.03em;}
h3{font-size:22px;line-height:1.2;letter-spacing:-0.01em;}
h4{font-size:17px;line-height:1.3;}
p{margin:0;}

.mono{font-family:var(--mono);font-feature-settings:"tnum","zero";}

.text-blue{color:var(--primary-bright);}
.text-blue-soft{color:var(--primary-soft);}

/* ============================================
   SECTION LABEL — "— LA PLATAFORMA"
   ============================================ */
.section-label{
  display:inline-flex;
  align-items:center;
  gap:12px;
  font-size:13px;
  font-weight:500;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:var(--primary-bright);
  margin-bottom:24px;
}
.section-label::before{
  content:"";
  width:26px;height:1px;
  background:currentColor;
  display:inline-block;
}

/* ============================================
   NAV
   ============================================ */
.nav{
  position:sticky;top:0;z-index:100;
  background:rgba(10,14,31,0.78);
  backdrop-filter:blur(16px) saturate(140%);
  -webkit-backdrop-filter:blur(16px) saturate(140%);
  border-bottom:1px solid transparent;
  transition:border-color .25s ease, transform .28s cubic-bezier(.2,.8,.2,1);
  will-change:transform;
}
.nav.is-scrolled{border-bottom-color:var(--border);}
.nav.nav--hidden{transform:translateY(-100%);}
.nav__inner{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px var(--gutter);
  max-width:var(--maxw);margin:0 auto;
  gap:24px;
}

.brand{
  display:inline-flex;align-items:center;gap:10px;
  font-size:17px;
  font-weight:700;
  letter-spacing:0.04em;
  color:var(--text);
  white-space:nowrap;
  flex-shrink:0;
}
.brand__shield{
  width:32px;height:32px;
  background:linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  border-radius:8px;
  display:grid;place-items:center;
  position:relative;
  box-shadow:0 4px 18px -4px var(--primary-glow);
}
.brand__shield svg{width:18px;height:18px;color:#fff;}
.brand strong{color:var(--primary-bright);font-weight:700;}

/* stacked brand variant — wordmark on top, "Una división de Garín" subline below */
.brand--stack{align-items:center;gap:11px;}
.brand--stack .brand__text{
  display:inline-flex;
  flex-direction:column;
  gap:2px;
  line-height:1.05;
}
.brand--stack .brand__name{
  font-size:16px;
  font-weight:700;
  letter-spacing:0.04em;
  color:var(--text);
}
.brand--stack .brand__by{
  font-family:var(--sans);
  font-size:10.5px;
  font-weight:400;
  letter-spacing:0.02em;
  color:var(--text-soft);
  text-transform:none;
  font-style:italic;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.brand--stack .brand__by strong{
  font-weight:600;
  font-style:normal;
  color:var(--text-1);
  letter-spacing:0.02em;
}
.brand--stack .brand__garin{
  height:13px;
  width:auto;
  display:inline-block;
  vertical-align:middle;
  transform:translateY(-1px);
  opacity:.95;
}
/* on light sections, swap to a dark logo */
.section--light .brand--stack .brand__name{color:#0C1330;}
.section--light .brand--stack .brand__by{color:#6F77A0;}
.section--light .brand--stack .brand__by strong{color:#0C1330;}
.section--light .brand--stack .brand__garin{filter:invert(1) brightness(0.18);}

.nav__menu{display:flex;align-items:center;gap:28px;flex:1;justify-content:center;}
.nav__menu a{
  font-size:14px;
  font-weight:450;
  color:var(--text-mute);
  transition:color .15s ease;
}
.nav__menu a:hover{color:var(--text);}

/* dropdown */
.nav__dropdown{position:relative;}
.nav__dd-trigger{
  display:inline-flex;align-items:center;gap:6px;
  font-size:14px;
  font-weight:450;
  color:var(--text-mute);
  padding:6px 0;
  transition:color .15s ease;
}
.nav__dd-trigger:hover,
.nav__dropdown[data-open="true"] .nav__dd-trigger{color:var(--text);}
.nav__dd-chev{
  color:var(--text-soft);
  transition:transform .2s ease;
}
.nav__dropdown[data-open="true"] .nav__dd-chev{
  transform:rotate(180deg);
  color:var(--primary-bright);
}
.nav__dd-panel{
  position:absolute;
  top:calc(100% + 14px);
  left:50%;
  transform:translateX(-50%) translateY(-4px);
  width:380px;
  background:rgba(14,20,46,0.96);
  backdrop-filter:blur(16px) saturate(140%);
  -webkit-backdrop-filter:blur(16px) saturate(140%);
  border:1px solid var(--border-blue);
  border-radius:14px;
  box-shadow:0 24px 60px -16px rgba(0,0,0,0.65), 0 0 0 1px rgba(91,107,251,0.15);
  padding:8px;
  z-index:120;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.nav__dropdown[data-open="true"] .nav__dd-panel{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateX(-50%) translateY(0);
  transition:opacity .2s ease, transform .2s ease;
}
.nav__dd-panel::before{
  content:"";
  position:absolute;
  top:-7px;left:50%;transform:translateX(-50%) rotate(45deg);
  width:12px;height:12px;
  background:rgba(14,20,46,0.96);
  border-left:1px solid var(--border-blue);
  border-top:1px solid var(--border-blue);
}
.nav__dd-item{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:14px 16px;
  border-radius:9px;
  text-decoration:none;
  transition:background .15s ease;
  color:inherit !important;
}
.nav__dd-item:hover{
  background:rgba(91,107,251,0.12);
}
.nav__dd-item + .nav__dd-item{
  margin-top:2px;
}
.nav__dd-tag{
  font-family:var(--mono);
  font-size:10px;
  font-weight:500;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--primary-soft);
}
.nav__dd-title{
  font-size:14.5px;
  font-weight:600;
  color:var(--text) !important;
  letter-spacing:-0.005em;
}
.nav__dd-sub{
  font-size:12.5px;
  color:var(--text-mute);
  line-height:1.4;
}

.nav__actions{display:flex;align-items:center;gap:10px;}

.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 18px;
  border-radius:8px;
  font-size:14px;
  font-weight:500;
  font-family:var(--sans);
  transition:all .18s ease;
  white-space:nowrap;
  border:1px solid transparent;
  letter-spacing:-0.005em;
}
.btn--outline{
  border-color:var(--border-strong);
  background:transparent;
  color:var(--text);
}
.btn--outline:hover{background:rgba(255,255,255,0.05);border-color:rgba(255,255,255,0.22);}
.btn--primary{
  background:linear-gradient(180deg, var(--primary) 0%, var(--primary-2) 100%);
  color:#fff;
  box-shadow:0 1px 0 rgba(255,255,255,0.18) inset, 0 6px 20px -6px var(--primary-glow);
}
.btn--primary:hover{
  background:linear-gradient(180deg, var(--primary-bright) 0%, var(--primary) 100%);
  box-shadow:0 1px 0 rgba(255,255,255,0.22) inset, 0 10px 28px -6px var(--primary-glow);
}
.btn--ghost{color:var(--text-mute);padding:10px 14px;}
.btn--ghost:hover{color:var(--text);}
.btn .arrow{transition:transform .2s ease;}
.btn:hover .arrow{transform:translateX(3px);}

/* ============================================
   HERO
   ============================================ */
.hero{
  position:relative;
  padding:60px 0 80px;
  overflow:hidden;
}

/* hero background: real photograph */
.hero__bg{
  position:absolute;inset:0;
  z-index:0;
  background:
    linear-gradient(180deg, rgba(10,14,31,0.30) 0%, rgba(10,14,31,0.18) 35%, rgba(10,14,31,0.45) 70%, rgba(10,14,31,0.95) 95%, var(--bg) 100%),
    url('assets/hero-mountains.png') center center / cover no-repeat,
    var(--bg);
}
.hero__mountains{display:none;}
.hero__stars{display:none;}

.hero .container{position:relative;z-index:1;}

.hero__grid{
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:48px;
  align-items:start;
  padding-top:30px;
}
.hero__copy{padding-top:30px;}
.hero__badge{
  display:inline-flex;align-items:center;gap:10px;
  padding:5px 12px 5px 5px;
  border:1px solid var(--border-strong);
  border-radius:var(--r-pill);
  background:rgba(20,26,55,0.5);
  backdrop-filter:blur(8px);
  font-size:13px;
  color:var(--text-1);
  margin-bottom:28px;
}
.hero__badge .pill{
  display:inline-block;
  background:var(--primary);
  color:#fff;
  font-weight:600;
  font-size:10.5px;
  letter-spacing:0.12em;
  padding:4px 10px;
  border-radius:var(--r-pill);
  text-transform:uppercase;
  box-shadow:0 0 0 1px rgba(255,255,255,0.10) inset;
}

.hero h1{margin-bottom:26px;color:var(--text);}
.hero h1 .hl{
  font-weight:600;
}
.hero h1 .hl-1{color:#5168FF;}                /* electric blue */
.hero h1 .hl-2{color:#4FC4FF;}                /* sky cyan */
.hero h1 .hl-3{color:#A78BFF;}                /* periwinkle */
.hero h1 .accent{color:var(--primary-soft);text-decoration:none;}
.hero h1 .underline{
  position:relative;
  color:var(--primary-soft);
  text-decoration:underline;
  text-decoration-color:var(--primary);
  text-underline-offset:8px;
  text-decoration-thickness:2px;
}

.hero__sub{
  font-size:17px;
  color:#C8CFE7;
  line-height:1.55;
  margin-bottom:34px;
  max-width:560px;
}
.hero__cta{display:flex;gap:12px;align-items:center;margin-bottom:14px;}
.hero__meta{
  font-size:13px;
  color:var(--text-soft);
  display:inline-flex;gap:8px;align-items:center;
}
.hero__meta svg{color:var(--success);width:14px;height:14px;}

/* hero visual */
.hero__visual{
  position:relative;
  min-height:540px;
}

.hcard{
  position:absolute;
  background:linear-gradient(180deg, rgba(24,32,64,0.92) 0%, rgba(20,26,55,0.92) 100%);
  border:1px solid var(--border);
  border-radius:14px;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  box-shadow:var(--shadow-lg);
  padding:18px 20px;
  animation:hcard-float 7.5s ease-in-out infinite;
  will-change:transform;
}

/* stagger each card so they float at different rhythms */
.hcard--matrix  { animation-duration:8.2s;  animation-delay:-0.4s; }
.hcard--metric  { animation-duration:7.0s;  animation-delay:-2.6s; }
.hcard--plan    { animation-duration:9.1s;  animation-delay:-4.8s; }
.hcard--evidence{ animation-duration:6.4s;  animation-delay:-1.8s; }

@keyframes hcard-float{
  0%,100%{ transform:translate3d(0, 0, 0) rotate(0); }
  50%    { transform:translate3d(0,-9px,0) rotate(-0.35deg); }
}

/* pause the float when the user is interacting with the hero visuals */
.hero__visual:hover .hcard{ animation-play-state:paused; }

@media (prefers-reduced-motion: reduce){
  .hcard{ animation:none; }
}

.hcard--matrix{
  top:0;left:0;
  width:320px;
}
.hcard--metric{
  top:24px;right:0;
  width:300px;
}
.hcard--plan{
  top:280px;right:30px;
  width:340px;
}
.hcard--evidence{
  top:240px;left:-10px;
  width:260px;
  z-index:2;
}

.hcard__title{
  font-size:13px;
  font-weight:500;
  color:var(--text-1);
  margin-bottom:14px;
  display:flex;justify-content:space-between;align-items:center;
}
.hcard__title small{
  display:block;
  font-size:11px;
  color:var(--text-soft);
  font-weight:400;
  margin-top:2px;
}
.hcard__sub{
  font-size:11px;
  color:var(--text-soft);
  margin-top:2px;
}
.tagpill{
  font-size:10px;
  font-weight:600;
  letter-spacing:0.08em;
  text-transform:uppercase;
  padding:3px 8px;
  border-radius:var(--r-pill);
}
.tagpill--ok{background:var(--success-bg);color:var(--success);border:1px solid rgba(79,214,147,0.25);}
.tagpill--warn{background:var(--warning-bg);color:var(--warning);border:1px solid rgba(245,181,71,0.25);}
.tagpill--info{background:var(--info-bg);color:var(--primary-soft);border:1px solid var(--border-blue);}

/* matrix heat map */
.heatmap{
  display:grid;
  grid-template-columns:24px repeat(5,1fr);
  gap:5px;
  align-items:center;
  margin-bottom:10px;
}
.heatmap__y{
  font-size:8px;
  letter-spacing:0.12em;
  color:var(--text-soft);
  text-transform:uppercase;
  writing-mode:vertical-rl;
  transform:rotate(180deg);
  text-align:center;
  height:100%;
  display:flex;align-items:center;justify-content:center;
}
.heatmap__cell{
  aspect-ratio:1;
  border-radius:4px;
  background:rgba(91,107,251,0.10);
  border:1px solid rgba(255,255,255,0.04);
  position:relative;
}
.heatmap__cell--low{background:rgba(79,214,147,0.20);}
.heatmap__cell--med{background:rgba(245,181,71,0.28);}
.heatmap__cell--high{background:rgba(255,92,106,0.32);}
.heatmap__cell--crit{
  background:rgba(255,92,106,0.55);
  box-shadow:0 0 12px rgba(255,92,106,0.5);
}
.heatmap__cell--dot::after{
  content:"";
  position:absolute;
  top:50%;left:50%;
  width:8px;height:8px;
  border-radius:50%;
  background:var(--primary-bright);
  transform:translate(-50%,-50%);
  box-shadow:0 0 10px var(--primary-bright);
}
.heatmap__x{
  display:grid;
  grid-template-columns:24px repeat(5,1fr);
  gap:5px;
  font-size:8px;
  color:var(--text-soft);
  letter-spacing:0.06em;
  text-transform:uppercase;
  margin-top:6px;
}
.heatmap__x span{text-align:center;}
.heatmap__x span:first-child{visibility:hidden;}
.heatmap__legend{
  display:flex;gap:10px;
  margin-top:12px;
  flex-wrap:wrap;
}
.heatmap__legend span{
  display:inline-flex;align-items:center;gap:5px;
  font-size:10px;
  color:var(--text-mute);
}
.heatmap__legend i{
  width:8px;height:8px;border-radius:2px;display:inline-block;
}

/* metric card */
.bignum{
  font-size:46px;
  font-weight:600;
  letter-spacing:-0.04em;
  color:var(--text);
  line-height:1;
  margin-top:4px;
}
.delta{
  display:inline-flex;align-items:center;gap:6px;
  font-size:11px;
  color:var(--success);
  margin-top:8px;
}
.delta svg{width:11px;height:11px;}
.spark{
  margin-top:10px;
  height:36px;
  width:100%;
}

/* plan card */
.todo-row{
  display:grid;
  grid-template-columns:18px 1fr auto;
  gap:10px;
  align-items:center;
  padding:7px 0;
  border-bottom:1px solid rgba(255,255,255,0.04);
  font-size:12.5px;
}
.todo-row:last-child{border-bottom:none;}
.todo-row__check{
  width:16px;height:16px;
  border:1.5px solid var(--text-soft);
  border-radius:4px;
  display:grid;place-items:center;
  flex-shrink:0;
}
.todo-row__check.done{
  background:var(--primary);
  border-color:var(--primary);
  color:#fff;
}
.todo-row__check svg{width:10px;height:10px;}
.todo-row__name{color:var(--text-1);}
.todo-row__name.done{color:var(--text-soft);text-decoration:line-through;}
.todo-row__date{color:var(--text-soft);font-size:11px;font-family:var(--mono);}

/* evidence chip */
.hcard--evidence{
  padding:12px 14px;
  display:flex;align-items:center;gap:12px;
}
.evicon{
  width:32px;height:32px;
  background:var(--primary-tint-2);
  border:1px solid var(--border-blue);
  border-radius:8px;
  display:grid;place-items:center;
  color:var(--primary-bright);
  flex-shrink:0;
}
.evicon svg{width:16px;height:16px;}

/* stats below hero */
.hero__stats{
  margin-top:80px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:48px;
  max-width:780px;
}
.stat__num{
  font-size:38px;
  font-weight:600;
  letter-spacing:-0.04em;
  color:var(--text);
  line-height:1;
  margin-bottom:10px;
}
.stat__lbl{
  font-size:13px;
  color:var(--text-mute);
  line-height:1.45;
  max-width:200px;
}

/* logos */
.logos{
  padding:80px 0 0;
  border-top:1px solid var(--border);
  margin-top:80px;
}
.logos__lbl{
  text-align:center;
  margin-bottom:32px;
  color:var(--text-soft);
  font-size:11px;
  font-weight:500;
  letter-spacing:0.32em;
  text-transform:uppercase;
}
.logos__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  flex-wrap:wrap;
}

/* marquee variant: track scrolls right-to-left in loop */
.logos__row--marquee{
  position:relative;
  display:block;
  overflow:hidden;
  flex-wrap:nowrap;
  -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image:linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.logos__track{
  display:flex;
  align-items:center;
  gap:56px;
  width:max-content;
  animation:logos-scroll 38s linear infinite;
  will-change:transform;
}
.logos__row--marquee:hover .logos__track{animation-play-state:paused;}
@keyframes logos-scroll{
  from{transform:translate3d(0,0,0);}
  to{transform:translate3d(-50%,0,0);}
}
@media (prefers-reduced-motion: reduce){
  .logos__track{animation:none;}
}
.logo-mark{
  font-size:17px;
  font-weight:600;
  letter-spacing:0.02em;
  color:var(--text-mute);
  display:inline-flex;align-items:center;gap:8px;
  opacity:.6;
  transition:opacity .2s ease;
}
.logo-mark:hover{opacity:1;}

/* ============================================
   SECTION SHELL
   ============================================ */
.section{
  padding:120px 0;
  position:relative;
}

.section__head{
  max-width:760px;
  margin-bottom:64px;
}
.section__head h2{margin-bottom:18px;}
.section__head h2 .accent{color:var(--primary-soft);}
.section__head p{
  font-size:16px;
  color:var(--text-mute);
  line-height:1.6;
  max-width:640px;
}

/* ============================================
   PROBLEMA
   ============================================ */
.problem-wrap{
  background:linear-gradient(180deg, rgba(24,32,64,0.55) 0%, rgba(20,26,55,0.35) 100%);
  border:1px solid var(--border);
  border-radius:16px;
  padding:8px;
}
.problem{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1px;
  background:var(--border);
  border-radius:12px;
  overflow:hidden;
}
.problem__item{
  background:rgba(20,26,55,0.65);
  padding:32px 32px 36px;
  display:flex;flex-direction:column;
  gap:12px;
  transition:background .2s ease;
}
.problem__item:hover{background:rgba(28,36,70,0.85);}
.problem__head{
  display:flex;align-items:center;gap:14px;
  margin-bottom:6px;
}
.problem__icon{
  width:32px;height:32px;
  background:var(--primary-tint);
  border:1px solid var(--border-blue);
  border-radius:8px;
  display:grid;place-items:center;
  color:var(--primary-bright);
  flex-shrink:0;
}
.problem__icon svg{width:16px;height:16px;}
.problem__h{
  font-size:17px;
  font-weight:600;
  color:var(--text);
  line-height:1.3;
}
.problem__p{
  color:var(--text-mute);
  font-size:14px;
  line-height:1.6;
}

.problem__closing{
  margin-top:36px;
  background:linear-gradient(180deg, rgba(81,104,255,0.10) 0%, rgba(81,104,255,0.04) 100%);
  border:1px solid var(--border-blue);
  border-radius:14px;
  padding:24px 28px;
  display:flex;align-items:center;gap:18px;
  font-size:16px;
  color:var(--text-1);
}
.problem__closing-icon{
  width:36px;height:36px;
  background:linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  border-radius:9px;
  display:grid;place-items:center;
  flex-shrink:0;
  box-shadow:0 4px 18px -4px var(--primary-glow);
}
.problem__closing-icon svg{width:18px;height:18px;color:#fff;}
.problem__closing a, .problem__closing .accent{
  color:var(--primary-soft);
  text-decoration:underline;
  text-decoration-color:var(--primary);
  text-underline-offset:4px;
  font-weight:500;
}

/* ============================================
   SERVICIOS
   ============================================ */
.svc__head-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  margin-bottom:48px;
  gap:32px;
  flex-wrap:wrap;
}
.svc__head-row .section__head{margin-bottom:0;}

.svc__tabs{
  display:inline-flex;
  padding:5px;
  background:rgba(20,26,55,0.6);
  border:1px solid var(--border);
  border-radius:var(--r-pill);
  gap:2px;
}
.svc__tab{
  padding:8px 18px;
  font-size:13px;
  font-weight:500;
  color:var(--text-mute);
  border-radius:var(--r-pill);
  transition:all .18s ease;
  white-space:nowrap;
}
.svc__tab[data-active="true"]{
  background:linear-gradient(180deg, var(--primary) 0%, var(--primary-2) 100%);
  color:#fff;
  box-shadow:0 1px 0 rgba(255,255,255,0.18) inset;
}
.svc__tab:hover:not([data-active="true"]){color:var(--text);}

.svc__grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.svc-card{
  background:linear-gradient(180deg, rgba(24,32,64,0.7) 0%, rgba(20,26,55,0.55) 100%);
  border:1px solid var(--border);
  border-radius:14px;
  padding:28px 26px 30px;
  display:flex;flex-direction:column;
  gap:14px;
  position:relative;
  min-height:240px;
  transition:border-color .25s ease, background .25s ease, transform .2s ease, box-shadow .25s ease;
}
.svc-card__icon{
  transition:background .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.svc-card__law{
  transition:background .25s ease, border-color .25s ease, color .25s ease;
}
.svc-card__cta{
  transition:color .15s ease, border-top-color .25s ease;
}

/* hover-intensify: any service card on hover gets the bright treatment */
.svc-card--link:hover{
  border-color:rgba(91,107,251,0.5);
  background:
    radial-gradient(ellipse 100% 80% at 100% 0%, rgba(91,107,251,0.22) 0%, transparent 60%),
    linear-gradient(180deg, rgba(40,52,110,0.85) 0%, rgba(28,38,80,0.7) 100%);
  transform:translateY(-2px);
  box-shadow:0 18px 40px -16px rgba(91,107,251,0.35);
}
.svc-card--link:hover .svc-card__icon{
  background:linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  border-color:transparent;
  color:#fff;
  box-shadow:0 4px 18px -4px var(--primary-glow);
}
.svc-card--link:hover .svc-card__law{
  color:#fff;
  background:rgba(255,255,255,0.10);
  border-color:rgba(255,255,255,0.20);
}
.svc-card--link:hover .svc-card__cta{
  color:#fff;
  border-top-color:rgba(255,255,255,0.18);
}

/* generic non-link card hover keeps the old subtle treatment */
.svc-card:hover:not(.svc-card--link){
  border-color:var(--border-strong);
  background:linear-gradient(180deg, rgba(30,40,82,0.85) 0%, rgba(24,32,64,0.7) 100%);
  transform:translateY(-2px);
}

.svc-card__icon{
  width:36px;height:36px;
  background:var(--primary-tint);
  border:1px solid var(--border-blue);
  border-radius:9px;
  display:grid;place-items:center;
  color:var(--primary-bright);
  flex-shrink:0;
}
.svc-card__icon svg{width:18px;height:18px;}
.svc-card__h{
  font-size:18px;
  font-weight:600;
  color:var(--text);
  line-height:1.25;
  margin-top:4px;
}
.svc-card__p{
  color:var(--text-mute);
  font-size:14px;
  line-height:1.55;
}
.svc-card__bullets{
  margin:auto 0 0;
  padding:14px 0 0;
  border-top:1px solid var(--border);
  display:flex;flex-direction:column;
  gap:7px;
  list-style:none;
}
.svc-card__bullets li{
  font-size:12.5px;
  color:var(--text-mute);
  padding-left:14px;
  position:relative;
}
.svc-card__bullets li::before{
  content:"";
  position:absolute;
  left:0;top:7px;
  width:4px;height:4px;
  background:var(--primary-bright);
  border-radius:50%;
  box-shadow:0 0 6px var(--primary-bright);
}

/* featured CaaS card */
.svc-card--featured{
  /* at rest: visually identical to the others; the featured-pill marks it.
     Hover-intensity is applied uniformly on .svc-card--link:hover below. */
}
.svc-card--featured .featured-pill{
  position:absolute;
  top:18px;right:18px;
  font-size:10px;
  font-weight:600;
  letter-spacing:0.12em;
  text-transform:uppercase;
  padding:4px 10px;
  border-radius:var(--r-pill);
  background:var(--primary);
  color:#fff;
}

/* ============================================
   PROCESS
   ============================================ */
.process{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:48px;
  position:relative;
}
.process::before{
  content:"";
  position:absolute;
  top:38px;
  left:12%;
  right:12%;
  height:1px;
  background:repeating-linear-gradient(to right, var(--border-blue) 0 6px, transparent 6px 14px);
  z-index:0;
}
.process__step{
  position:relative;
  text-align:center;
  display:flex;flex-direction:column;align-items:center;
}
.process__num{
  width:76px;height:76px;
  border-radius:50%;
  background:
    radial-gradient(circle at 50% 30%, rgba(91,107,251,0.25) 0%, rgba(24,32,64,0.95) 60%);
  border:1px solid var(--border-blue);
  display:grid;place-items:center;
  font-size:22px;
  font-weight:600;
  color:var(--primary-soft);
  letter-spacing:-0.02em;
  margin-bottom:28px;
  position:relative;
  z-index:1;
  box-shadow:0 0 0 6px rgba(10,14,31,1), 0 8px 30px -8px var(--primary-glow);
}
.process__h{
  font-size:22px;
  font-weight:600;
  color:var(--text);
  margin-bottom:14px;
}
.process__p{
  color:var(--text-mute);
  font-size:14.5px;
  line-height:1.6;
  max-width:340px;
  margin-bottom:20px;
}
.process__when{
  display:inline-flex;
  padding:5px 14px;
  border-radius:var(--r-pill);
  background:var(--primary-tint-2);
  border:1px solid var(--border-blue);
  font-size:10.5px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--primary-soft);
  font-weight:500;
}

/* highlight: applied on hover OR via .is-active from the auto-cycle */
.process__step{
  transition:transform .35s ease;
}
.process__num,
.process__when{
  transition:background .35s ease, border-color .35s ease, color .35s ease,
             box-shadow .35s ease, transform .35s ease;
}
.process__h,
.process__p{
  transition:color .35s ease;
}
.process__step:hover,
.process__step.is-active{
  transform:translateY(-4px);
}
.process__step:hover .process__num,
.process__step.is-active .process__num{
  background:linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  border-color:transparent;
  color:#fff;
  box-shadow:
    0 0 0 6px rgba(10,14,31,1),
    0 14px 38px -8px var(--primary-glow),
    0 0 0 1px rgba(115,131,255,0.45),
    0 0 0 10px rgba(91,107,251,0.08);
  transform:scale(1.06);
}
.process__step:hover .process__h,
.process__step.is-active .process__h{
  color:var(--primary-bright, #B8C2FF);
}
.process__step:hover .process__when,
.process__step.is-active .process__when{
  background:rgba(91,107,251,0.18);
  border-color:rgba(115,131,255,0.55);
  color:#fff;
}
/* light section variant (section--light, e.g. version-mixta intercalated) */
.section--light .process__step:hover .process__h,
.section--light .process__step.is-active .process__h{
  color:var(--primary);
}
.section--light .process__step:hover .process__num,
.section--light .process__step.is-active .process__num{
  box-shadow:
    0 0 0 6px #F4F6FB,
    0 14px 32px -10px rgba(81,104,255,0.45),
    0 0 0 1px rgba(81,104,255,0.5);
}
@media (prefers-reduced-motion: reduce){
  .process__step,
  .process__step.is-active,
  .process__step:hover{transform:none;}
  .process__step.is-active .process__num,
  .process__step:hover .process__num{transform:none;}
}

/* ============================================
   CONFIANZA
   ============================================ */
.testi{
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:60px;
  align-items:center;
}
.testi__quote{
  font-size:clamp(22px, 2.4vw, 28px);
  line-height:1.4;
  color:var(--text);
  font-weight:500;
  letter-spacing:-0.015em;
  margin-bottom:32px;
  position:relative;
}
.testi__quote::before{
  content:"\201C";
  font-size:80px;
  line-height:0.7;
  color:var(--primary);
  position:absolute;
  left:-40px;top:6px;
  opacity:.6;
  font-family:Georgia, serif;
}
.testi__author{display:flex;align-items:center;gap:14px;}
.testi__avatar{
  width:48px;height:48px;
  border-radius:50%;
  background:linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color:#fff;
  display:grid;place-items:center;
  font-size:16px;
  font-weight:600;
  letter-spacing:-0.02em;
}
.testi__name{font-weight:600;font-size:15px;color:var(--text);}
.testi__role{font-size:13px;color:var(--text-mute);margin-top:1px;}

.metrics{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:1px;
  background:var(--border);
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
}
.metric{
  background:rgba(20,26,55,0.6);
  padding:28px 28px;
  display:flex;flex-direction:column;gap:8px;
}
.metric__num{
  font-size:42px;
  font-weight:600;
  color:var(--text);
  line-height:1;
  letter-spacing:-0.04em;
}
.metric__num.blue{color:var(--primary-soft);}
.metric__lbl{
  font-size:13px;
  color:var(--text-mute);
  line-height:1.45;
}

.trust-bar{
  margin-top:64px;
  padding-top:32px;
  border-top:1px solid var(--border);
  display:flex;
  align-items:center;
  gap:32px;
  flex-wrap:wrap;
  font-size:13px;
  color:var(--text-mute);
}
.trust-bar__lbl{
  font-size:11px;
  letter-spacing:0.28em;
  text-transform:uppercase;
  color:var(--text-soft);
  margin-right:8px;
}
.trust-bar__item{
  display:inline-flex;align-items:center;gap:8px;
}
.trust-bar__item::before{
  content:"";
  width:14px;height:14px;
  background:var(--primary-tint);
  border:1px solid var(--border-blue);
  border-radius:4px;
  position:relative;
  display:inline-block;
}

/* ============================================
   EQUIPO
   ============================================ */
.team{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}
.team-card{
  background:linear-gradient(180deg, rgba(24,32,64,0.7) 0%, rgba(20,26,55,0.55) 100%);
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
  transition:transform .2s ease, border-color .2s ease;
}
.team-card:hover{transform:translateY(-3px);border-color:var(--border-strong);}
.team-card__portrait{
  aspect-ratio:1/1;
  background:
    radial-gradient(circle at 50% 30%, rgba(91,107,251,0.22) 0%, transparent 60%),
    linear-gradient(180deg, rgba(40,52,110,0.5) 0%, rgba(20,26,55,0.5) 100%);
  position:relative;
  border-bottom:1px solid var(--border);
  display:grid;place-items:center;
}
.team-card__portrait .initials{
  font-size:54px;
  font-weight:600;
  letter-spacing:-0.04em;
  color:var(--primary-soft);
  opacity:.65;
}
.team-card__body{padding:18px 20px 22px;}
.team-card__name{
  font-size:16px;
  font-weight:600;
  margin-bottom:4px;
  color:var(--text);
}
.team-card__role{
  font-size:12.5px;
  color:var(--text-mute);
  margin-bottom:10px;
  line-height:1.4;
}
.team-card__tag{
  font-size:10.5px;
  letter-spacing:0.14em;
  color:var(--primary-soft);
  text-transform:uppercase;
  font-weight:500;
}

/* ============================================
   FINAL CTA
   ============================================ */
.cta-final-wrap{
  position:relative;
  border-radius:18px;
  background:transparent;
  border:1px solid var(--border-blue);
  overflow:visible;
  padding:64px 64px;
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:60px;
  align-items:center;
  isolation:isolate;
}
.cta-final-wrap__deco{
  position:absolute;
  inset:0;
  border-radius:inherit;
  overflow:hidden;
  pointer-events:none;
  z-index:-1;
  background:
    radial-gradient(ellipse 60% 100% at 100% 0%, rgba(81,104,255,0.28) 0%, transparent 65%),
    radial-gradient(ellipse 70% 90% at 0% 100%, rgba(81,104,255,0.10) 0%, transparent 60%),
    linear-gradient(180deg, rgba(40,52,110,0.5) 0%, rgba(20,26,55,0.5) 100%);
}
.cta-final-wrap__deco::before,
.cta-final-wrap__deco::after{
  content:"";
  position:absolute;
  border-radius:50%;
  pointer-events:none;
}
.cta-final-wrap__deco::before{
  top:-40%;right:-15%;
  width:600px;height:600px;
  border:1px solid rgba(91,107,251,0.12);
}
.cta-final-wrap__deco::after{
  top:-20%;right:-5%;
  width:380px;height:380px;
  border:1px solid rgba(91,107,251,0.10);
}
.cta-final-wrap h2{color:var(--text);margin-bottom:18px;}
.cta-final-wrap h2 .accent{color:var(--primary-soft);}
.cta-final-wrap p{
  color:var(--text-mute);
  font-size:16px;
  line-height:1.55;
  margin-bottom:30px;
  max-width:500px;
}
.cta-final__list{
  list-style:none;padding:0;margin:0 0 32px;
  display:flex;flex-direction:column;gap:10px;
}
.cta-final__list li{
  display:flex;align-items:flex-start;gap:12px;
  font-size:14px;
  color:var(--text-1);
}
.cta-final__list li svg{
  color:var(--success);
  width:16px;height:16px;
  flex-shrink:0;
  margin-top:2px;
}
.cta-final__buttons{display:flex;gap:12px;}
/* when the buttons live inside the form (submit row) */
.cta-form .cta-final__buttons{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid var(--border);
}
.cta-form .cta-final__buttons .btn{flex:1;justify-content:center;}

.cta-form{
  background:rgba(10,14,31,0.6);
  border:1px solid var(--border);
  border-radius:12px;
  padding:24px 26px;
  position:relative;
  z-index:1;
  backdrop-filter:blur(8px);
}
.cta-form__head{
  font-size:11px;
  letter-spacing:0.22em;
  text-transform:uppercase;
  color:var(--text-soft);
  margin-bottom:18px;
  display:flex;justify-content:space-between;align-items:center;
}
.cta-form__head .dot-rec{
  width:7px;height:7px;border-radius:50%;
  background:var(--primary-bright);
  box-shadow:0 0 0 4px rgba(91,107,251,0.20);
  animation:pulse 1.6s ease-in-out infinite;
}
@keyframes pulse{50%{box-shadow:0 0 0 7px rgba(91,107,251,0);}}

.cta-form__row{
  display:flex;flex-direction:column;
  gap:6px;
  padding:12px 0;
  border-bottom:1px solid var(--border);
  transition:background-color .25s ease, padding .25s ease, border-color .25s ease;
  border-radius:6px;
}
.cta-form__row:last-of-type{border-bottom:none;}

/* invalid state: highlight the form (shake + glow) and missing rows */
.cta-form.is-invalid{
  animation:cta-form-shake .55s cubic-bezier(.36,.07,.19,.97) both;
  border-color:rgba(245,181,71,0.65);
  box-shadow:
    0 0 0 1px rgba(245,181,71,0.45),
    0 0 0 6px rgba(245,181,71,0.18),
    0 20px 60px -20px rgba(245,181,71,0.30);
}
.cta-form.is-invalid .cta-form__row.is-missing{
  background:rgba(245,181,71,0.10);
  padding:12px 10px;
  margin:0 -10px;
}
.cta-form.is-invalid .cta-form__row.is-missing .cta-form__lbl{
  color:#F5B547;
}
@keyframes cta-form-shake{
  10%, 90% { transform:translate3d(-1px, 0, 0); }
  20%, 80% { transform:translate3d(3px, 0, 0); }
  30%, 50%, 70% { transform:translate3d(-7px, 0, 0); }
  40%, 60% { transform:translate3d(7px, 0, 0); }
}
.cta-form__lbl{
  font-size:11px;
  letter-spacing:0.10em;
  text-transform:uppercase;
  color:var(--text-soft);
  font-weight:500;
}
.cta-form__val{
  font-size:14.5px;
  color:var(--text);
  font-weight:500;
}
.cta-form__val.cursor::after{
  content:"";
  display:inline-block;
  width:2px;height:14px;
  background:var(--primary-bright);
  margin-left:3px;
  vertical-align:middle;
  animation:blink 1s steps(2,start) infinite;
}
@keyframes blink{50%{opacity:0;}}

/* ============================================
   FOOTER
   ============================================ */
.footer{
  padding:80px 0 32px;
  border-top:1px solid var(--border);
  background:linear-gradient(180deg, transparent 0%, rgba(10,14,31,1) 100%);
}
.footer__top{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:48px;
  margin-bottom:48px;
}
.footer__brand p{
  color:var(--text-mute);
  font-size:13.5px;
  line-height:1.6;
  max-width:340px;
  margin-top:16px;
}
.footer__col h5{
  font-size:11px;
  font-weight:600;
  letter-spacing:0.22em;
  text-transform:uppercase;
  color:var(--text-soft);
  margin:0 0 16px;
}
.footer__col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;}
.footer__col a{font-size:13.5px;color:var(--text-mute);transition:color .15s ease;}
.footer__col a:hover{color:var(--text);}
.footer__bottom{
  display:flex;justify-content:space-between;align-items:center;
  padding-top:24px;
  border-top:1px solid var(--border);
  font-size:12.5px;
  color:var(--text-soft);
  flex-wrap:wrap;
  gap:16px;
}
.footer__legal{display:flex;gap:24px;}
.footer__legal a{color:var(--text-mute);}
.footer__legal a:hover{color:var(--text);}

/* ============================================
   responsive
   ============================================ */
@media (max-width: 1100px){
  .hero__grid{gap:32px;}
  .hcard--matrix{width:280px;}
  .hcard--metric{width:260px;}
  .hcard--plan{width:300px;top:300px;right:0;}
  .hcard--evidence{width:230px;top:260px;left:-20px;}
}
/* "Iniciar sesión" y CTA "Solicitar diagnóstico" duplicados en el menú
   son sólo para el drawer mobile — ocultos en desktop */
.nav__menu [data-mobile-login],
.nav__menu [data-mobile-cta]{display:none;}
@media (max-width: 900px){
  .nav__menu [data-mobile-login]{display:block;}
  .nav__menu [data-mobile-cta]{display:inline-flex;}

  /* En mobile sacamos los botones del header — todo se accede desde el drawer.
     Ocultar .nav__actions entero permite que el hamburguesa quede pegado
     a la derecha (sin un contenedor vacío reservando espacio). */
  .nav__actions{display:none;}
}

/* CTA destacado dentro del drawer (último item) */
.nav__menu-cta{
  margin-top:14px;
  width:100%;
  justify-content:center;
  padding:14px 20px;
  font-size:14.5px;
  border-radius:10px;
  border-bottom:none !important; /* el border-bottom de los items del menú no aplica acá */
  text-align:center;
}
.nav__menu-cta .arrow{margin-left:4px;}

/* === Hamburguesa: siempre presente en DOM, sólo visible ≤900px === */
.nav__hamburger{
  display:none;
  background:transparent;
  border:1px solid rgba(255,255,255,0.10);
  border-radius:9px;
  width:38px;height:38px;
  padding:0;
  flex-direction:column;
  align-items:center;justify-content:center;
  gap:4px;
  cursor:pointer;
  color:var(--text);
  flex-shrink:0;
  transition:background .15s ease, border-color .15s ease;
}
.nav__hamburger:hover{background:rgba(255,255,255,0.05);border-color:rgba(255,255,255,0.18);}
.nav__hamburger:focus-visible{outline:none;border-color:var(--primary, #5168FF);box-shadow:0 0 0 3px rgba(81,104,255,0.25);}
.nav__hamburger-line{
  display:block;
  width:18px;height:2px;
  background:currentColor;
  border-radius:1px;
  transition:transform .22s ease, opacity .15s ease;
  transform-origin:center;
}
.nav__hamburger[aria-expanded="true"] .nav__hamburger-line:nth-child(1){
  transform:translateY(6px) rotate(45deg);
}
.nav__hamburger[aria-expanded="true"] .nav__hamburger-line:nth-child(2){opacity:0;}
.nav__hamburger[aria-expanded="true"] .nav__hamburger-line:nth-child(3){
  transform:translateY(-6px) rotate(-45deg);
}

@media (max-width: 900px){
  /* En mobile el menú central se vuelve un drawer controlado por el hamburguesa */
  .nav__hamburger{display:flex;}

  .nav__menu{
    display:none;
    position:absolute;
    top:100%;left:0;right:0;
    background:rgba(8,12,30,0.96);
    backdrop-filter:blur(14px) saturate(140%);
    -webkit-backdrop-filter:blur(14px) saturate(140%);
    border-bottom:1px solid var(--border-blue, rgba(91,107,251,0.18));
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:0;
    padding:8px 20px 14px;
    box-shadow:0 18px 40px -10px rgba(0,0,0,0.45);
    max-height:calc(100vh - 100%);
    overflow-y:auto;
  }
  .nav--mobile-open .nav__menu{display:flex;}

  .nav__menu > a,
  .nav__menu .nav__dd-trigger{
    padding:14px 4px;
    font-size:15px;
    text-align:left;
    width:100%;
    justify-content:flex-start;
    border-bottom:1px solid rgba(255,255,255,0.06);
  }
  .nav__menu .nav__dropdown{
    width:100%;
    display:block;
    border-bottom:1px solid rgba(255,255,255,0.06);
  }
  .nav__menu .nav__dd-trigger{
    border-bottom:none;
    justify-content:space-between;
    display:flex;
  }
  /* La sub-lista de Asesorías se expande en línea, no como popover flotante */
  .nav__menu .nav__dropdown .nav__dd-panel,
  .nav__menu .nav__dropdown[data-open="true"] .nav__dd-panel{
    position:static;
    width:100%;
    left:auto;
    background:transparent;
    border:none;
    box-shadow:none;
    padding:4px 0 10px 12px;
    transform:none;
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    display:none;
  }
  .nav__menu .nav__dropdown[data-open="true"] .nav__dd-panel{display:block;}
  /* Sin flecha del tooltip en mobile */
  .nav__menu .nav__dd-panel::before{display:none;}
  .nav__menu .nav__dd-item{
    padding:10px 8px;
    border-radius:8px;
  }
  .nav__menu .nav__dd-item + .nav__dd-item{margin-top:4px;}

  /* Bloquear scroll del body mientras el menú está abierto */
  body.nav-mobile-open{overflow:hidden;}
}

/* En pantallas muy chicas acortar acciones para que entre todo */
@media (max-width: 520px){
  .nav__actions .btn--outline{display:none;}  /* el link de login va dentro del drawer */
  .nav__actions .btn--primary{padding:10px 14px;font-size:13px;}
  .nav__inner{gap:12px;padding:12px var(--gutter);}
}
@media (max-width: 860px){
  .hero__grid{grid-template-columns:1fr;}
  .hero__visual{min-height:520px;margin-top:24px;}
  .hero h1 .hl{white-space:normal;}
  .hcard--matrix{left:0;}
  .hcard--metric{right:0;}
  .svc__grid{grid-template-columns:repeat(2,1fr);}
  .process{grid-template-columns:1fr;gap:40px;}
  .process::before{display:none;}
  .testi{grid-template-columns:1fr;gap:48px;}
  .testi__quote::before{display:none;}
  .cta-final-wrap{grid-template-columns:1fr;padding:48px 32px;gap:40px;}
  .team{grid-template-columns:repeat(2,1fr);}
  .footer__top{grid-template-columns:1fr 1fr;}
}
@media (max-width: 640px){
  :root{--gutter:18px;}
  html, body{overflow-x:hidden;}
  h1{font-size:clamp(34px, 9vw, 44px);letter-spacing:-0.025em;}
  h2{font-size:clamp(28px, 7vw, 38px);}
  h3{font-size:18px;}

  .hero{padding:24px 0 40px;}
  .hero__copy{padding-top:8px;}
  .hero__badge{font-size:11px;margin-bottom:20px;}
  .hero h1{margin-bottom:18px;}
  .hero__sub{font-size:15px;margin-bottom:24px;}
  .hero__cta{flex-direction:column;align-items:stretch;width:100%;}
  .hero__cta .btn{justify-content:center;}

  /* hero visual on mobile: stack the cards, no overflow */
  .hero__visual{
    min-height:auto;
    margin-top:24px;
    position:relative;
    display:flex;
    flex-direction:column;
    gap:14px;
  }
  .hcard{
    position:static !important;
    width:100% !important;
    max-width:100% !important;
    top:auto !important;
    left:auto !important;
    right:auto !important;
    bottom:auto !important;
    transform:none !important;
  }
  .heatmap{grid-template-columns:18px repeat(5,1fr);gap:3px;}
  .heatmap__x{grid-template-columns:18px repeat(5,1fr);gap:3px;font-size:7px;}
  .heatmap__y{font-size:7px;}
  .bignum{font-size:38px;}

  .hero__stats{margin-top:48px;grid-template-columns:1fr;gap:24px;}
  .stat__num{font-size:32px;}
  .logos{padding:48px 0 0;margin-top:48px;}
  .logos__row{justify-content:center;gap:18px 24px;}
  .logo-mark{font-size:14px;}

  /* sections */
  .section{padding:64px 0;}
  .section__head{margin-bottom:40px;}
  .section__head p{font-size:15px;}

  /* problem */
  .problem{grid-template-columns:1fr;}
  .problem__item{padding:24px 22px 28px;}
  .problem-wrap{padding:6px;}
  .problem__closing{padding:18px 20px;font-size:14.5px;flex-direction:column;align-items:flex-start;gap:12px;text-align:left;}

  /* services */
  .svc__head-row{flex-direction:column;align-items:flex-start;gap:20px;margin-bottom:32px;}
  .svc__tabs{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    flex-wrap:nowrap;
  }
  .svc__tabs::-webkit-scrollbar{display:none;}
  .svc__tab{font-size:12.5px;padding:7px 14px;flex-shrink:0;}
  .svc__grid{grid-template-columns:1fr;gap:14px;}
  .svc-card{padding:24px 22px 26px;min-height:auto;}
  .svc-card__h{font-size:17px;}
  .svc-card__p{font-size:13.5px;}
  .svc-card--featured .featured-pill{top:14px;right:14px;}

  /* process */
  .process{gap:32px;}
  .process__step{align-items:center;text-align:center;}

  /* testi / metrics */
  .testi{gap:36px;}
  .testi__quote{font-size:20px;line-height:1.4;}
  .testi__quote::before{display:none;}
  .metric{padding:22px 20px;}
  .metric__num{font-size:34px;}
  .trust-bar{margin-top:40px;gap:14px 20px;font-size:12px;}

  /* equipo */
  .team{grid-template-columns:1fr;gap:14px;}
  .team-card{display:flex;}
  .team-card__portrait{aspect-ratio:auto;width:110px;flex-shrink:0;border-right:1px solid var(--border);border-bottom:none;}
  .team-card__portrait .initials{font-size:38px;}
  .team-card__body{flex:1;padding:16px 18px;}

  /* CTA final */
  .cta-final-wrap{padding:36px 24px;gap:32px;border-radius:14px;}
  .cta-final-wrap p{font-size:15px;margin-bottom:24px;}
  .cta-final__list li{font-size:13.5px;}
  .cta-final__buttons{flex-direction:column;align-items:stretch;}
  .cta-final__buttons .btn{justify-content:center;}
  .cta-form{padding:20px;}

  /* footer */
  .footer{padding:56px 0 24px;}
  .footer__top{grid-template-columns:1fr;gap:32px;margin-bottom:32px;}
  .footer__brand p{max-width:100%;}
  .footer__bottom{flex-direction:column;align-items:flex-start;gap:14px;}

  /* nav on mobile */
  .nav__inner{gap:12px;padding:12px var(--gutter);}
  .nav__actions .btn--outline{display:none;}
  .nav__actions .btn{padding:9px 14px;font-size:13px;}
  .brand{font-size:15px;}
  .brand__shield{width:28px;height:28px;border-radius:7px;}
  .brand__shield svg{width:15px;height:15px;}
  .brand--stack .brand__name{font-size:14px;}
  .brand--stack .brand__by{font-size:9.5px;}
}


/* === 3-card overview variant on HOME === */
.svc__grid--3{grid-template-columns:repeat(3,minmax(0,1fr));}
.svc-card--link{
  text-decoration:none;
  color:inherit;
  cursor:pointer;
  position:relative;
  display:flex;flex-direction:column;
  min-height:auto;
}
.svc-card--link:hover .svc-card__cta{
  color:var(--primary-bright);
}
.svc-card--link:hover .svc-card__cta svg{
  transform:translateX(3px);
}
.svc-card__head{
  display:flex;align-items:center;gap:14px;
  margin-bottom:6px;
}
.svc-card__law{
  font-family:var(--mono);
  font-size:10.5px;
  font-weight:500;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:var(--primary-soft);
  padding:4px 10px;
  border:1px solid var(--border-blue);
  border-radius:999px;
  background:var(--primary-tint);
}
.svc-card--featured .svc-card__law{
  /* at rest: same as others; hover state below handles the intensified look */
}
.svc-card__cta{
  display:inline-flex;align-items:center;gap:8px;
  margin-top:auto;
  padding-top:16px;
  border-top:1px solid var(--border);
  font-size:13.5px;
  font-weight:500;
  color:var(--text-1);
  transition:color .15s ease;
}
.svc-card__cta svg{
  transition:transform .2s ease;
}
.svc-card--featured .svc-card__cta{
  /* at rest: same as others; hover state below intensifies */
}
.svc-card--link .svc-card__bullets{
  border-top:1px dashed var(--border);
  margin-top:14px;
}
@media (max-width: 960px){
  .svc__grid--3{grid-template-columns:1fr;}
}

/* === nav: Inicio link === */
.nav__link-home{position:relative;}

/* === LANDING-specific: entregables grid (used in MPD/MPI/Compliance) === */
.entregables{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
  margin-top:32px;
}
.entregable{
  display:flex;align-items:flex-start;gap:14px;
  padding:18px 20px;
  background:linear-gradient(180deg, rgba(24,32,64,0.55) 0%, rgba(20,26,55,0.35) 100%);
  border:1px solid var(--border);
  border-radius:11px;
  font-size:14px;
  line-height:1.5;
  color:var(--text-1);
}
.section--light .entregable{
  background:#FFFFFF;
  border-color:#E2E7F2;
  color:#0C1330;
  box-shadow:0 1px 2px rgba(12,19,48,0.04);
}
.entregable__check{
  flex-shrink:0;
  width:22px;height:22px;border-radius:50%;
  background:var(--primary-tint-2);
  border:1px solid var(--border-blue);
  display:grid;place-items:center;
  color:var(--primary-bright);
}
.entregable__check svg{width:11px;height:11px;}
.section--light .entregable__check{
  background:rgba(81,104,255,0.10);
}
@media (max-width: 720px){
  .entregables{grid-template-columns:1fr;}
}

/* === Legal-basis callout block === */
.legal-callout{
  background:linear-gradient(180deg, rgba(81,104,255,0.10) 0%, rgba(81,104,255,0.04) 100%);
  border:1px solid var(--border-blue);
  border-radius:14px;
  padding:24px 28px;
  margin-bottom:48px;
}
.section--light .legal-callout{
  background:linear-gradient(180deg, rgba(81,104,255,0.08) 0%, rgba(81,104,255,0.02) 100%);
}
.legal-callout__lbl{
  font-family:var(--mono);
  font-size:10.5px;
  font-weight:500;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:var(--primary-bright);
  display:block;
  margin-bottom:10px;
}
.legal-callout h4{
  font-size:18px;
  font-weight:600;
  margin-bottom:10px;
  letter-spacing:-0.005em;
}
.legal-callout ul{
  list-style:none;margin:0;padding:0;
  display:flex;flex-direction:column;gap:8px;
}
.legal-callout li{
  font-size:14px;
  color:var(--text-mute);
  line-height:1.55;
  padding-left:18px;
  position:relative;
}
.section--light .legal-callout li{color:#4A5378;}
.legal-callout li::before{
  content:"–";
  position:absolute;left:0;top:0;
  color:var(--primary-soft);
}


/* ===== Back to top floating button ===== */
.back-top{
  position:fixed;right:24px;bottom:24px;
  width:44px;height:44px;border-radius:50%;
  display:grid;place-items:center;
  background:rgba(14,20,46,0.78);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border:1px solid rgba(91,107,251,0.30);
  color:rgba(255,255,255,0.85);
  cursor:pointer;
  box-shadow:0 10px 28px -10px rgba(0,0,0,0.5), 0 0 0 1px rgba(91,107,251,0.10);
  opacity:0;transform:translateY(10px) scale(0.92);
  pointer-events:none;
  transition:opacity .25s ease, transform .25s ease, background .15s ease, border-color .15s ease, color .15s ease;
  z-index:900;outline:none;padding:0;
  -webkit-appearance:none;appearance:none;font-family:inherit;
}
.back-top[data-visible="true"]{opacity:1;transform:translateY(0) scale(1);pointer-events:auto;}
.back-top:hover{
  background:rgba(20,28,62,0.92);
  border-color:rgba(115,131,255,0.55);
  color:#FFFFFF;
  transform:translateY(-2px) scale(1);
}
.back-top:focus-visible{box-shadow:0 10px 28px -10px rgba(0,0,0,0.5), 0 0 0 3px rgba(91,107,251,0.35);}
.back-top svg{display:block;}
@media (max-width:640px){.back-top{right:16px;bottom:16px;width:40px;height:40px;}}

/* === Team card with real photo (when team.js has photo: "...") === */
.team-card__portrait--photo{
  padding:0;
  overflow:hidden;
  position:relative;
}
.team-card__portrait--photo img{
  width:100%;height:100%;
  object-fit:cover;
  display:block;
  position:absolute;inset:0;
}

/* === CTA form: success state === */
.cta-form.is-submitted{
  display:flex;align-items:center;justify-content:center;
  text-align:center;
  min-height:220px;
}
.cta-form__ok{
  display:flex;flex-direction:column;align-items:center;gap:10px;
  padding:24px 12px;
}
.cta-form__ok svg{
  color:var(--success, #4FD693);
  background:rgba(79,214,147,0.10);
  border:1px solid rgba(79,214,147,0.35);
  border-radius:50%;
  padding:8px;
  box-shadow:0 0 0 4px rgba(79,214,147,0.06);
}
.cta-form__ok h4{
  margin:6px 0 0;
  font-size:18px;font-weight:600;
  letter-spacing:-0.01em;
  color:var(--text, #fff);
}
.cta-form__ok p{
  margin:0;
  font-size:14px;line-height:1.55;
  color:var(--text-mute, #9099B8);
  max-width:32ch;
}
/* submit-in-flight state */
.btn[aria-busy="true"]{opacity:.7;pointer-events:none;}
.btn.is-submitting::after{
  content:"";
  display:inline-block;
  width:12px;height:12px;
  margin-left:8px;
  border:2px solid currentColor;
  border-right-color:transparent;
  border-radius:50%;
  animation:btnSpin .8s linear infinite;
  vertical-align:-2px;
}
@keyframes btnSpin{to{transform:rotate(360deg);}}
