/* ═══════════════════════════════════════════
   LIBERIT · SHARED STYLESHEET
   Paleta: Navy #1A2E45 · Teal #00B4A6
           White #FFFFFF · Grey #6B7E94
   Font: Figtree (Google Fonts, ~14kb)
═══════════════════════════════════════════ */

:root {
  --navy:         #1A2E45;
  --navy-dark:    #0f1e2e;
  --teal:         #01f5d0;   
  --teal-dim:     rgba(0,180,166,.12);
  --white:        #FFFFFF;
  --grey:         #6B7E94;
  --grey-light:   #EEF1F5;
  --grey-border:  #D8DFE8;
  --text-body:    #3A4F63;

  --font: 'Figtree', sans-serif;

  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;

  --sh-sm: 0 1px 4px rgba(26,46,69,.06);
  --sh-md: 0 4px 20px rgba(26,46,69,.10);
  --sh-lg: 0 12px 40px rgba(26,46,69,.14);

  --mw: 1100px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--navy);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: var(--mw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}
.section        { padding: clamp(4rem,8vw,7rem) 0; }
.section-alt    { background: var(--grey-light); }
.section-dark   { background: var(--navy); }

/* ── TYPOGRAPHY HELPERS ── */
.eyebrow {
  font-size: .90rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: .9rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--teal);
  border-radius: 2px;
  flex-shrink: 0;
}

.eyebrow.centered::before {
  content: '';
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--teal);
  border-radius: 2px;
  flex-shrink: 0;
}


.eyebrow.centered { justify-content: center; }

.eyebrow.light { color: rgba(255,255,255,.55); }
.eyebrow.light::before { background: rgba(255,255,255,.3); }

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: .9rem;
}
.section-title.light { color: var(--white); }

.section-sub {
  font-size: 1rem;
  color: var(--grey);
  font-weight: 400;
  line-height: 1.75;
}
.section-sub.light { color: rgba(255,255,255,.5); }

.section-header        { max-width: 600px; margin-bottom: clamp(2.5rem,5vw,4rem); }
.section-header.center { text-align: center; margin-inline: auto; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .01em;
  border-radius: var(--r-sm);
  cursor: pointer;
  border: none;
  transition: opacity .18s, transform .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn:hover  { opacity: .88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--teal);
  color: var(--navy-dark);
  padding: .8rem 1.75rem;
  box-shadow: 0 4px 16px rgba(0,180,166,.28);
}
.btn-primary:hover { box-shadow: 0 6px 22px rgba(0,180,166,.4); }

.btn-outline {
  background: transparent;
  color: var(--white);
  padding: .75rem 1.5rem;
  border: 1.5px solid rgba(255,255,255,.32);
}
.btn-outline:hover { border-color: rgba(255,255,255,.7); }

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  padding: .75rem 1.5rem;
  border: 1.5px solid var(--grey-border);
}
.btn-outline-dark:hover { border-color: var(--teal); color: var(--teal); }

/* ── TAGS ── */
.tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 50px;
}
.tag-teal  { background: var(--teal-dim); color: var(--teal); border: 1px solid rgba(0,180,166,.22); }
.tag-white { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.18); }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .25s, box-shadow .25s;
}
.navbar.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  box-shadow: var(--sh-sm);
}
.navbar.scrolled .nav-logo  { color: var(--navy); }
.navbar.scrolled .nav-link  { color: var(--navy); }
.navbar.scrolled .btn-nav   { background: var(--teal); color: var(--navy-dark); border-color: var(--teal); }
.navbar.scrolled .ham-line  { background: var(--navy); }

/* navbar for light-hero pages (que-es, contacto) */
.navbar.light-hero .nav-logo { color: var(--navy); }
.navbar.light-hero .nav-link { color: var(--navy); }
.navbar.light-hero .btn-nav  { border-color: var(--grey-border); color: var(--navy); }
.navbar.light-hero .ham-line { background: var(--navy); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 2rem;
}
.nav-logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -.01em;
  color: var(--white);
  flex-shrink: 0;
  transition: color .25s;
}
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-link  {
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  transition: color .18s;
}
.nav-link:hover         { color: var(--teal); }
.nav-link.active        { color: var(--teal); font-weight: 600; }

.btn-nav {
  font-family: var(--font);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .02em;
  padding: .65rem 1.4rem;
  border-radius: var(--grey);
  cursor: pointer;
  border: 1.5px solid rgba(255,255,255,.38);
  background: transparent;
  color: var(--white);
  transition: all .2s;
  white-space: nowrap;
}
.btn-nav:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .4rem;
  background: none;
  border: none;
}
.ham-line {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .2s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  padding: 1.5rem clamp(1.25rem,5vw,2.5rem) 2rem;
  border-top: 1px solid var(--grey-border);
  gap: 1.2rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link { color: var(--navy); font-size: 1rem; }
.nav-mobile .btn-nav  { background: var(--teal); color: var(--white); border-color: var(--teal);
  width: fit-content; font-size: .9rem; padding: .7rem 1.6rem; }

/* ── PAGE HERO (dark) ── */
.hero {
  background: var(--navy);
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid rgba(0,180,166,.1);
}
.hero-ring-1 { width: 520px; height: 520px; top: -120px; right: -80px; }
.hero-ring-2 { width: 320px; height: 320px; top: -60px;  right: -30px; }
.hero-glow   {
  position: absolute;
  bottom: 40px; right: clamp(2rem,10vw,120px);
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(0,180,166,.16) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content   { position: relative; z-index: 1; max-width: 740px; }
.hero h1        {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--white);
  margin-bottom: 1.4rem;
}
.hero-sub       {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  font-weight: 300;
  color: rgba(255,255,255,.55);
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 2.4rem;
}
.hero-tag       { margin-bottom: 1.5rem; }
.hero-ctas      { display: flex; flex-wrap: wrap; gap: 1rem; }

/* hero (light) for inner pages */
.page-hero {
  background: var(--grey-light);
  padding: 120px 0 70px;
  border-bottom: 1px solid var(--grey-border);
}
.page-hero .hero-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 1.1rem;
  max-width: 700px;
}
.page-hero p {
  font-size: 1.05rem;
  color: var(--grey);
  max-width: 580px;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 2rem;
}

/* ── HERO STATS ── */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -.03em;
  line-height: 1;
}
.stat-label {
  font-size: .9rem;
  color: rgba(255,255,255,.38);
  margin-top: .35rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── FEATURE GRID (icon + text cards) ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--r-lg);
  padding: 2rem 1.8rem;
  transition: box-shadow .22s, transform .22s, border-color .22s;
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}
.feature-card:hover { box-shadow: var(--sh-lg); transform: translateY(-3px); border-color: rgba(0,180,166,.2); }
.feature-card:hover::after { transform: scaleX(1); }

.feature-icon {
  width: 46px; height: 46px;
  background: var(--teal-dim);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem;
}
.feature-icon svg {
  width: 22px; height: 22px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .5rem;
}
.feature-desc {
  font-size: .9rem;
  color: var(--grey);
  line-height: 1.75;
}

/* ── SERVICE CARDS (home) ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--r-lg);
  padding: 2.2rem 2rem;
  transition: box-shadow .22s, transform .22s, border-color .22s;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}
.service-card:hover { box-shadow: var(--sh-lg); transform: translateY(-4px); border-color: rgba(0,180,166,.22); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 50px; height: 50px;
  background: var(--teal-dim);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.4rem;
}
.service-icon svg {
  width: 24px; height: 24px;
  stroke: var(--teal); fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.service-title { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: .7rem; letter-spacing: -.01em; }
.service-desc  { font-size: 1rem; color: var(--grey); line-height: 1.75; margin-bottom: 1.2rem; }
.service-ideal { font-size: .9rem; color: var(--navy-dark); font-weight: 600;
  padding: .5rem .85rem; background: var(--teal-dim); border-radius: var(--r-sm); line-height: 1.5; }
.service-link  {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1.4rem; font-size: 1rem; font-weight: 700; color: var(--navy);
  transition: color .18s, gap .18s;
}
.service-link:hover { color: var(--teal); gap: .65rem; }
.service-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ── USE CASE BLOCKS ── */
.use-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.use-card {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--r-md);
  padding: 1.8rem 1.6rem;
}
.use-sector {
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .65rem;
}
.use-title { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .55rem; }
.use-desc  { font-size: 1rem; color: var(--grey); line-height: 1.75; }

/* ── PROCESS STEPS ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.step-num   { font-size: 2.8rem; font-weight: 800; color: rgba(0,180,166,.15); line-height: 1; margin-bottom: .9rem; letter-spacing: -.04em; }
.step-title { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .5rem; }
.step-desc  { font-size: 1rem; color: var(--grey); line-height: 1.75; }

/* dark step variant */
.steps.dark .step-num   { color: rgba(0,180,166,.25); }
.steps.dark .step-title { color: var(--white); }
.steps.dark .step-desc  { color: rgba(255,255,255,.45); }

/* ── PROOF CARDS ── */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.proof-card {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--r-lg);
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1.1rem;
}
.proof-badge {
  width: 42px; height: 42px;
  background: var(--navy);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
}
.proof-badge svg { width: 20px; height: 20px; stroke: var(--teal); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.proof-sector { font-size: .9rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.proof-title  { font-size: 1rem; font-weight: 700; color: var(--navy); line-height: 1.45; }
.proof-detail { font-size: 1rem; color: var(--grey); line-height: 1.7; }
.proof-meta   { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--grey); margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--grey-border); }
.proof-dot    { width: 6px; height: 6px; background: var(--teal); border-radius: 50%; flex-shrink: 0; }

/* ── CTA BAND ── */
.cta-band {
  background: var(--navy);
  padding: clamp(3.5rem,7vw,6rem) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -100px; left: -80px;
  width: 400px; height: 400px;
  border: 1px solid rgba(0,180,166,.07);
  border-radius: 50%;
  pointer-events: none;
}
.cta-band::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,180,166,.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}
.cta-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.025em;
  line-height: 1.2;
  margin-bottom: .8rem;
  max-width: 520px;
}
.cta-text p { font-size: 1rem; color: rgba(255,255,255,.45); font-weight: 300; max-width: 480px; line-height: 1.8; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; flex-shrink: 0; }
.cta-note    { font-size: .9rem; color: rgba(255,255,255,.28); }

/* ── FOOTER ── */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 3rem 0 2rem;
}
.footer-inner  { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.footer-logo   { font-weight: 800; font-size: 1.1rem; color: var(--white); margin-bottom: .7rem; }
.footer-tagline { font-size: .9rem; color: rgba(255,255,255,.28); max-width: 240px; line-height: 1.65; }
.footer-nav    { display: flex; flex-wrap: wrap; gap: 3rem; }
.footer-col h4 { font-size: .9rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col a  { font-size: .9rem; color: rgba(255,255,255,.45); transition: color .18s; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center; gap: 1rem;
}
.footer-copy   { font-size: .78rem; color: rgba(255,255,255,.2); }
.footer-legal  { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: .78rem; color: rgba(255,255,255,.2); transition: color .18s; }
.footer-legal a:hover { color: rgba(255,255,255,.5); }

/* ── TECH LOGOS STRIP ── */
.tech-strip { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; }
.tech-badge {
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.35);
  letter-spacing: .06em;
  padding: .5rem 1.1rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50px;
  transition: color .18s, border-color .18s;
}
.tech-badge:hover { color: var(--teal); border-color: rgba(0,180,166,.3); }

/* ── CONTACT FORM ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-full  { grid-column: 1/-1; }
.form-group { display: flex; flex-direction: column; gap: .5rem; }
.form-label { font-size: .82rem; font-weight: 600; color: var(--navy); }
.form-input, .form-select, .form-textarea {
  font-family: var(--font);
  font-size: .9rem;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--grey-border);
  border-radius: var(--r-sm);
  padding: .75rem 1rem;
  transition: border-color .18s, box-shadow .18s;
  outline: none;
  width: 100%;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--grey); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,180,166,.12);
}
.form-textarea { resize: vertical; min-height: 130px; }
.form-select   { appearance: none; cursor: pointer; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim { opacity: 0; }
.anim.visible { animation: fadeUp .55s ease forwards; }
.anim-d1 { animation-delay: .08s; }
.anim-d2 { animation-delay: .18s; }
.anim-d3 { animation-delay: .28s; }
.anim-d4 { animation-delay: .38s; }

.hero-content > * { animation: fadeUp .65s ease forwards; opacity: 0; }
.hero-content > *:nth-child(1) { animation-delay: .1s;  }
.hero-content > *:nth-child(2) { animation-delay: .22s; }
.hero-content > *:nth-child(3) { animation-delay: .34s; }
.hero-content > *:nth-child(4) { animation-delay: .46s; }
.hero-content > *:nth-child(5) { animation-delay: .58s; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links, .btn-nav { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 110px 0 70px; }
  .hero-stats { gap: 1.5rem; }
  .cta-inner { flex-direction: column; }
  .cta-actions { width: 100%; }
  .cta-actions .btn-primary { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .services-grid, .proof-grid, .use-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .page-hero { padding: 100px 0 50px; }
}
