/* ══════════════════════════════════════════
   THIMATHI CONSULTORES — styles.css
   Paleta extraída del brochure oficial:
   Navy #0d2a4a · Blue #1a5276 · Teal #1a8fa8
   Celeste #5dade2 · Blanco #ffffff
   Tipografía: Raleway + Merriweather
   ══════════════════════════════════════════ */

:root {
  --navy:      #0d2a4a;
  --blue:      #1a3f6f;
  --blue-mid:  #1a5276;
  --teal:      #1a8fa8;
  --teal-lt:   #3fb8d0;
  --sky:       #5dade2;
  --white:     #ffffff;
  --off:       #f2f6fa;
  --text:      #0d2a4a;
  --text-mid:  #345370;
  --text-mute: #7c9ab5;
  --border:    #d6e4ef;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Raleway', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ══ NAV ══ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(13,42,74,0.08);
}

.logo-link { display: flex; align-items: center; gap: 1rem; text-decoration: none; flex-shrink: 0; }
.logo-img  { height: 70px; width: auto; display: block; }

.logo-name {
  font-family: 'Raleway', sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.1;
  white-space: nowrap;
}
.logo-name strong {
  display: block;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links { display: flex; gap: 2.5rem; list-style: none; flex: 1; justify-content: center; }
.nav-links a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 100%;
  height: 2px; background: var(--teal);
  transition: right 0.25s;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a:hover::after { right: 0; }

/* ══ BOTÓN CONVERSEMOS ══ */
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: white;
  border-radius: 6px;
  padding: 0.75rem 1.6rem;
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.nav-cta:hover {
  background: var(--teal-lt);
  transform: translateY(-1px);
}

/* ══ HERO ══ */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 55%, var(--blue-mid) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px 5vw 0;
  position: relative;
  overflow: hidden;
}

.hero-deco-stripe {
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(135deg,
    transparent 0%,
    transparent 40%,
    rgba(26,143,168,0.12) 40%,
    rgba(26,143,168,0.12) 55%,
    transparent 55%,
    transparent 68%,
    rgba(93,173,226,0.08) 68%,
    rgba(93,173,226,0.08) 80%,
    transparent 80%
  );
  pointer-events: none;
}

#hero::before {
  content: '';
  position: absolute;
  bottom: 80px; left: 4vw;
  width: 180px; height: 180px;
  background-image: radial-gradient(circle, rgba(93,173,226,0.25) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 5vw;
  padding-bottom: 6rem;
}

.hero-left { flex: 1; max-width: 620px; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--sky);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--teal-lt);
  flex-shrink: 0;
  display: inline-block;
}

#hero h1 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.4rem;
  letter-spacing: -0.01em;
}
#hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--teal-lt);
}

.hero-desc {
  font-size: 1.15rem;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }

.btn-primary {
  background: var(--teal);
  color: white;
  border-radius: 5px;
  padding: 1.1rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--teal-lt); transform: translateY(-1px); }

.btn-primary--outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  margin-top: 2rem;
  display: inline-block;
}
.btn-primary--outline:hover { background: rgba(255,255,255,0.1); border-color: white; transform: none; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
}
.btn-secondary:hover { color: var(--teal-lt); gap: 0.8rem; }

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  overflow: hidden;
  min-width: 240px;
}

.stat-item {
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  transition: background 0.2s;
}
.stat-item:hover { background: rgba(255,255,255,0.05); }

.stat-n {
  font-family: 'Merriweather', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--teal-lt);
  line-height: 1;
}
.stat-l {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.05em;
  font-weight: 600;
  text-transform: uppercase;
}
.stat-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 0; }

/* ══ SECCIONES COMUNES ══ */
section { padding: 8rem 5vw; }
.bg-light { background: var(--off); }

.chip {
  display: inline-block;
  background: rgba(26,143,168,0.1);
  border: 1px solid rgba(26,143,168,0.25);
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  margin-bottom: 1.2rem;
}
.chip--light {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  color: var(--teal-lt);
}

.section-label-row { margin-bottom: 0.3rem; }
.section-label-row.centered { text-align: center; }

.section-h2 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.22;
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}
.section-h2.light { color: white; }
.section-h2 em { font-style: italic; font-weight: 400; color: var(--teal); }
.section-h2.light em { color: var(--teal-lt); }
.section-h2.centered { text-align: center; }

.section-sub {
  font-size: 1.1rem;
  color: var(--text-mute);
  font-weight: 400;
  line-height: 1.75;
  margin-bottom: 3.5rem;
}
.section-sub.light { color: rgba(255,255,255,0.65); }
.section-sub.centered { text-align: center; max-width: 620px; margin-left: auto; margin-right: auto; }

/* ══ SOBRE NOSOTROS ══ */
#sobre .section-label-row { margin-bottom: 0.5rem; }

.sobre-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.sobre-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.sobre-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--sky));
}
.sobre-card:hover { box-shadow: 0 8px 32px rgba(13,42,74,0.1); }

.sobre-card--wide {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
}

.sc-icon-wrap {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--teal), var(--sky));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.sobre-card h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}
.sobre-card p {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.8;
  font-weight: 400;
}
.sobre-card p strong { color: var(--teal); font-weight: 700; }

/* ══ SERVICIOS ══ */
.services-row {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.svc-box {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  height: 100%;
  overflow: visible;
}

.svc-box::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--sky));
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}

.svc-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(13,42,74,0.12);
  border-color: var(--teal-lt);
}
.svc-box:hover::after { transform: scaleX(1); }

.svc-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.3rem;
}

.svc-ico {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--teal), var(--sky));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  flex-shrink: 0;
}

.svc-box h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}

.svc-box p {
  font-size: 0.88rem;
  color: var(--text-mute);
  line-height: 1.65;
}

.svc-box ul {
  list-style: none;
  margin-top: 0.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.svc-box ul li {
  font-size: 0.85rem;
  color: var(--text-mid);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}

.svc-box ul li::before {
  content: '';
  position: absolute; left: 0; top: 0.55em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

/* ══ POR QUÉ ELEGIRNOS ══ */
.bg-dark-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-mid) 100%);
  position: relative;
  overflow: hidden;
}
.bg-dark-section::before {
  content: '';
  position: absolute;
  top: -30%; right: -8%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,143,168,0.15) 0%, transparent 65%);
  pointer-events: none;
}

.porque-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 6vw;
  align-items: start;
  position: relative;
  z-index: 1;
}

.porque-left { padding-top: 0.5rem; }
.porque-right { display: flex; flex-direction: column; gap: 0; }

.pq-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.4rem 1.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  transition: background 0.2s;
}
.pq-item:last-child { border-bottom: none; }
.pq-item:hover { background: rgba(255,255,255,0.05); }

.pq-ico {
  width: 40px; height: 40px;
  flex-shrink: 0;
  background: rgba(26,143,168,0.2);
  border: 1px solid rgba(26,143,168,0.35);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-lt);
  margin-top: 2px;
}

.pq-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.35rem;
  letter-spacing: 0.01em;
}
.pq-item p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  font-weight: 400;
}

/* ══ ADICIONALES ══ */
.adic-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
}

.adic-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.2rem;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.adic-card:hover {
  border-color: var(--teal-lt);
  box-shadow: 0 8px 32px rgba(13,42,74,0.1);
}

.adic-ico {
  width: 56px; height: 56px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--teal), var(--sky));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white;
}

.adic-card h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}
.adic-card p {
  font-size: 0.92rem;
  color: var(--text-mute);
  line-height: 1.75;
}

/* ══ CONTACTO ══ */
.bg-contact {
  background: linear-gradient(135deg, var(--blue-mid) 0%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
}
.bg-contact::after {
  content: '';
  position: absolute;
  bottom: -20%; left: -8%;
  width: 450px; height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93,173,226,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.contacto-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5vw;
  align-items: center;
  position: relative;
  z-index: 1;
}

.contact-intro {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contacto-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 2.4rem;
}

.cbtn {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.6rem;
  border-radius: 10px;
  text-decoration: none;
  margin-bottom: 1rem;
  transition: transform 0.2s, opacity 0.2s;
}
.cbtn:last-child { margin-bottom: 0; }
.cbtn:hover { transform: translateY(-2px); opacity: 0.92; }

.cbtn--wa    { background: #25D366; color: white; }
.cbtn--email { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; }
.cbtn--email:hover { background: rgba(255,255,255,0.16); }

.cbtn-title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.cbtn-sub {
  display: block;
  font-size: 0.8rem;
  opacity: 0.75;
  font-weight: 400;
  margin-top: 0.1rem;
}

/* ══ FOOTER ══ */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.footer-logo {
  height: 100px;
  width: auto;
  filter: brightness(0) invert(1) opacity(0.7);
}

.footer-brand-name {
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  line-height: 1.3;
}
.footer-brand-name strong {
  display: block;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
}

.footer-tagline { display: none; }
.footer-nav { display: none; }

.footer-social-col {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.social-btn:hover { opacity: 0.85; transform: translateY(-2px); }

.social-btn--wa  { background: #25D366; color: white; }
.social-btn--fb  { background: #1877F2; color: white; }
.social-btn--li  { background: #0A66C2; color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.2rem 5vw;
  text-align: center;
}
.footer-bottom p {
  color: rgba(255,255,255,0.25);
  font-size: 0.8rem;
  font-weight: 300;
}

/* ══ SEPARADOR SERVICIOS ADICIONALES ══ */
.svc-divider {
  max-width: 1200px;
  margin: 5rem auto 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.svc-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ══ NUESTROS CLIENTES ══ */
.clients-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.client-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.client-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--sky));
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}
.client-card:hover {
  box-shadow: 0 10px 36px rgba(13,42,74,0.11);
  transform: translateY(-4px);
  border-color: var(--teal-lt);
}
.client-card:hover::before { transform: scaleX(1); }
.client-image-wrap {
  width: 100%;
  height: 160px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f8fafc;
  flex-shrink: 0;
}
.client-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}

/* Info */
.client-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.client-name {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

/* Ocultar lo que no se usa */
.client-avatar { display: none; }
.client-initials { display: none; }
.client-sector { display: none; }
.client-quote { display: none; }

@media (max-width: 820px) {
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .clients-grid { grid-template-columns: 1fr; }
}

/* ══ HAMBURGER ══ */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.2s;
}
.nav-hamburger:hover { background: rgba(26,143,168,0.1); }

.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, width 0.3s;
  width: 100%;
}

.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══ RESPONSIVE ══ */

@media (max-width: 1200px) {
  .nav-links { gap: 1.4rem; }
}

@media (max-width: 1024px) {
  .services-row { grid-template-columns: repeat(2, 1fr); }
  .logo-name { display: none; }
  .nav-links { gap: 1.1rem; }
  .nav-links a { font-size: 0.85rem; }
}

@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }
  .logo-name { display: none; }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 100px;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--teal);
    box-shadow: 0 8px 24px rgba(13,42,74,0.12);
    padding: 0.5rem 0;
    gap: 0;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    z-index: 199;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links li a {
    display: block;
    padding: 1.2rem 1.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-mid);
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.03em;
    text-transform: none;
  }
}

@media (max-width: 820px) {
  .sobre-grid { grid-template-columns: 1fr; }
  .sobre-card--wide { grid-column: auto; }
  .porque-inner,
  .contacto-inner { grid-template-columns: 1fr; gap: 3rem; }
  .adic-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-inner { flex-direction: column; padding-bottom: 3rem; }
  .hero-stats {
    flex-direction: row;
    min-width: unset;
    width: 100%;
    border-radius: 12px;
  }
  .stat-item { flex: 1; padding: 1.2rem; }
  .stat-divider { width: 1px; height: auto; }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }
}
@media (max-width: 640px) {
  .services-row { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: 1fr; }
  section { padding: 4rem 5vw; }
  #hero { padding: 110px 5vw 2rem; }
  .hero-stats { flex-direction: column; }
  .stat-divider { height: 1px; width: 100%; }
  .footer-social-col { flex-direction: column; width: 100%; }
  .social-btn { justify-content: center; }
}