/* =====================================================
   SOLUSALUD — Landing Page Styles
   Paleta: Azul #1B2F8F (Pantone 2747) · Rojo #E8292C (Pantone 1795)
   Tipografía: Inter · Source Sans 3
   ===================================================== */

/* ---- VARIABLES ---- */
:root {
  --blue:        #1B2F8F;
  --blue-dark:   #0E1B55;
  --blue-mid:    #2540B5;
  --red:         #E8292C;
  --red-dark:    #C41F22;
  --silver:      #A8B4C8;
  --bg:          #F7F8FC;
  --white:       #FFFFFF;
  --text:        #1A1A2E;
  --text-mid:    #4A5568;
  --text-light:  #718096;
  --border:      #E2E8F0;

  --font-head: 'Inter', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;

  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 4px 24px rgba(27, 47, 143, 0.10);
  --shadow-lg: 0 12px 48px rgba(27, 47, 143, 0.18);
  --ease:      0.3s ease;

  --max-w: 1180px;
  --section-pad: 88px 0;
}

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

/* ---- TIPOGRAFÍA ---- */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.18; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 0.875rem; font-weight: 700; }
p  { color: var(--text-mid); }
strong { color: var(--text); font-weight: 600; }

/* ---- LAYOUT ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section-pad { padding: var(--section-pad); }
.bg-white { background: var(--white); }
.text-red { color: var(--red); }

/* ---- SECTION TAGS ---- */
.section-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--red);
  background: rgba(232, 41, 44, 0.08);
  padding: 5px 14px;
  border-radius: 100px;
}
.section-tag--silver {
  color: var(--silver);
  background: rgba(168, 180, 200, 0.18);
}

/* ---- SECTION HEADERS ---- */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.section-header .section-tag { margin-bottom: 14px; }
.section-header h2 { margin-bottom: 16px; }
.section-subtitle { font-size: 1.05rem; line-height: 1.7; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.93rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease);
  white-space: nowrap;
  line-height: 1;
}

.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(232, 41, 44, 0.32);
}
.btn--primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232, 41, 44, 0.42);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.45);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn--outline-nav {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  padding: 10px 22px;
  font-size: 0.875rem;
}
.btn--outline-nav:hover {
  background: var(--blue);
  color: var(--white);
}

.btn--primary-light {
  background: var(--white);
  color: var(--blue);
  font-weight: 800;
}
.btn--primary-light:hover {
  background: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.14);
}

.btn--full { width: 100%; }

/* ====================================================
   NAVBAR
==================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background var(--ease), box-shadow var(--ease), padding var(--ease);
}
.navbar.scrolled {
  background: var(--white);
  box-shadow: 0 2px 24px rgba(27, 47, 143, 0.10);
  padding: 12px 0;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo invierte a blanco sobre hero oscuro */
.navbar__logo img {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter var(--ease), height var(--ease);
}
.navbar.scrolled .navbar__logo img {
  filter: none;
  height: 44px;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.navbar__nav > a:not(.btn) {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.88);
  transition: color var(--ease);
  position: relative;
}
.navbar__nav > a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--ease);
}
.navbar__nav > a:not(.btn):hover { color: var(--white); }
.navbar__nav > a:not(.btn):hover::after { transform: scaleX(1); }
.navbar.scrolled .navbar__nav > a:not(.btn) { color: var(--text-mid); }
.navbar.scrolled .navbar__nav > a:not(.btn):hover { color: var(--blue); }

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}
.navbar__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.navbar.scrolled .navbar__hamburger span { background: var(--text); }
.navbar__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ====================================================
   HERO
==================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  background: linear-gradient(140deg, var(--blue-dark) 0%, var(--blue) 55%, var(--blue-mid) 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 86px;
}

.hero__bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.hero__shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.hero__shape--1 { width: 700px; height: 700px; top: -250px; right: -180px; }
.hero__shape--2 { width: 350px; height: 350px; bottom: 60px; left: -100px; background: rgba(232,41,44,0.07); }
.hero__shape--3 { width: 180px; height: 180px; top: 35%; left: 42%; background: rgba(255,255,255,0.03); }

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 110px;
}

.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--silver);
  margin-bottom: 22px;
}

.hero__title {
  color: var(--white);
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

.hero__text {
  color: rgba(255,255,255,0.80);
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 38px;
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  line-height: 0;
}
.hero__wave svg { width: 100%; height: 70px; display: block; }

/* ====================================================
   ESTADÍSTICAS
==================================================== */
.stats { background: var(--bg); padding: 72px 0; }

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 20px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
  transition: transform var(--ease);
}
.stat-item:hover { transform: translateY(-5px); }
.stat-item:nth-child(2n) { border-top-color: var(--red); }

.stat-item__number {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.stat-item:nth-child(2n) .stat-item__number { color: var(--red); }

.stat-item__label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

/* ====================================================
   QUIÉNES SOMOS
==================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.about__text .section-tag { margin-bottom: 14px; }
.about__text h2 { margin-bottom: 24px; }
.about__text p { margin-bottom: 18px; }
.about__text p:last-child { margin-bottom: 0; }

.about__cards { display: flex; flex-direction: column; gap: 20px; padding-top: 8px; }

.about__card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px;
  border-left: 4px solid var(--blue);
  transition: box-shadow var(--ease), transform var(--ease);
}
.about__card:hover { box-shadow: var(--shadow); transform: translateX(4px); }

.about__card-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: var(--blue);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.about__card-icon--red { background: var(--red); }
.about__card:nth-child(2) { border-left-color: var(--red); }

.about__card h3 { margin-bottom: 6px; }
.about__card p { font-size: 0.93rem; margin: 0; }

/* ====================================================
   RETOS
==================================================== */
.challenges { background: var(--bg); }

.challenges__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.challenge-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 20px;
  border: 2px solid transparent;
  box-shadow: 0 2px 10px rgba(27,47,143,0.06);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.challenge-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.challenge-card__icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  background: rgba(27,47,143,0.07);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  transition: background var(--ease), color var(--ease);
}
.challenge-card:hover .challenge-card__icon {
  background: rgba(232,41,44,0.07);
  color: var(--red);
}

.challenge-card p {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text);
  margin: 0;
  line-height: 1.5;
  padding-top: 10px;
}

.challenges__banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 36px;
  border-left: 6px solid var(--blue);
  box-shadow: var(--shadow);
}
.challenges__banner p {
  font-size: 1.05rem;
  color: var(--text-mid);
  margin: 0;
  flex: 1;
  min-width: 240px;
}

/* ====================================================
   ESPECIALIDADES / TABS
==================================================== */
.specialties { background: var(--white); }

.tabs__nav {
  display: flex;
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 36px;
  gap: 4px;
}
.tabs__nav::-webkit-scrollbar { display: none; }

.tab-btn {
  flex-shrink: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-light);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 14px 20px;
  cursor: pointer;
  transition: color var(--ease), border-color var(--ease);
  margin-bottom: -2px;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--blue); }
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.3s ease both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.specialty-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.specialty-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.93rem;
  color: var(--text);
  border-left: 3px solid var(--blue);
  transition: all var(--ease);
  cursor: default;
}
.specialty-list li::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
  transition: background var(--ease);
}
.specialty-list li:hover {
  background: rgba(27,47,143,0.05);
  border-left-color: var(--red);
  transform: translateX(4px);
}
.specialty-list li:hover::before { background: var(--red); }

/* ====================================================
   SERVICIOS
==================================================== */
.services { background: var(--bg); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.93rem;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(27,47,143,0.05);
  transition: transform var(--ease), box-shadow var(--ease);
}
.service-item:hover { transform: translateX(5px); box-shadow: var(--shadow); }

.service-check {
  flex-shrink: 0;
  width: 26px; height: 26px;
  background: var(--red);
  border-radius: 50%;
  position: relative;
}
.service-check::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -52%) rotate(45deg);
  width: 5px; height: 9px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
}

/* ====================================================
   CTA INTERMEDIO
==================================================== */
.cta-mid {
  background: linear-gradient(140deg, var(--blue) 0%, var(--blue-dark) 100%);
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.cta-mid::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  top: -200px; right: -100px;
  pointer-events: none;
}

.cta-mid__inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}
.cta-mid__inner .section-tag { margin-bottom: 18px; }
.cta-mid__inner h2 { color: var(--white); margin-bottom: 18px; }
.cta-mid__inner p {
  color: rgba(255,255,255,0.80);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 36px;
}

/* ====================================================
   FAQ
==================================================== */
.faq { background: var(--white); }

.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg);
  border-radius: var(--radius);
  border: 2px solid var(--border);
  overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.faq-item.open {
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--text);
  transition: color var(--ease);
}
.faq-item.open .faq-item__question { color: var(--blue); }

.faq-icon {
  flex-shrink: 0;
  color: var(--text-light);
  transition: transform var(--ease), color var(--ease);
}
.faq-item.open .faq-icon { transform: rotate(180deg); color: var(--blue); }

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}
.faq-item.open .faq-item__answer {
  max-height: 600px;
  transition: max-height 0.5s cubic-bezier(1, 0, 1, 0);
}
.faq-item__answer p {
  padding: 0 24px 24px;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ====================================================
   CONTACTO
==================================================== */
.contact {
  background: linear-gradient(140deg, var(--blue-dark) 0%, var(--blue) 100%);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 64px;
  align-items: start;
}

.contact__info .section-tag { margin-bottom: 16px; }
.contact__info h2 { color: var(--white); margin-bottom: 18px; }
.contact__info > p {
  color: rgba(255,255,255,0.80);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 36px;
}

.contact__details { display: flex; flex-direction: column; gap: 14px; }

.contact__link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.82);
  font-size: 0.93rem;
  font-weight: 500;
  transition: color var(--ease);
}
.contact__link:hover { color: var(--white); }

/* Form wrapper */
.contact__form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
}

.contact-form { display: flex; flex-direction: column; gap: 18px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}
.form-group label span { color: var(--red); }

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
  resize: vertical;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27,47,143,0.10);
  background: var(--white);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }

.form-note {
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: center;
  margin-top: -4px;
}

/* Honeypot */
.honey-field { display: none !important; }

.form-success,
.form-error {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 4px;
}
.form-success { color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; }
.form-error   { color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; }

/* ====================================================
   FOOTER
==================================================== */
.footer { background: #111827; color: rgba(255,255,255,0.65); }

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.5fr;
  gap: 48px;
  padding: 64px 24px 48px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer__logo {
  height: 42px; width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.88;
  margin-bottom: 16px;
}
.footer__brand p { font-size: 0.9rem; line-height: 1.65; }
.footer__unit { margin-top: 8px; font-size: 0.85rem; }
.footer__unit strong { color: rgba(255,255,255,0.88); }

.footer__nav, .footer__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__nav h4, .footer__contact h4 {
  color: var(--white);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 6px;
  font-family: var(--font-head);
}
.footer__nav a, .footer__contact a, .footer__contact span {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.58);
  transition: color var(--ease);
}
.footer__nav a:hover, .footer__contact a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 20px 24px;
}
.footer__bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.38); }

/* ====================================================
   BOTÓN FLOTANTE WHATSAPP
==================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 900;
  width: 58px; height: 58px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.40);
  transition: transform var(--ease), box-shadow var(--ease);
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 30px rgba(37,211,102,0.55);
}
.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(37,211,102,0.28);
  animation: waPulse 2.2s ease-out infinite;
}

@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.1); opacity: 0; }
}

/* ====================================================
   SCROLL REVEAL
==================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger para grids */
.stats__grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.stats__grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.stats__grid .reveal:nth-child(4) { transition-delay: 0.3s; }

.challenges__grid .reveal:nth-child(2n)  { transition-delay: 0.08s; }

.services__grid .reveal:nth-child(2n)  { transition-delay: 0.06s; }

/* ====================================================
   RESPONSIVE
==================================================== */
@media (max-width: 1024px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .contact__grid { grid-template-columns: 1fr; gap: 44px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --section-pad: 60px 0; }

  /* Hamburger visible */
  .navbar__hamburger { display: flex; }

  .navbar__nav {
    position: fixed;
    top: 0; right: -100%;
    width: min(300px, 85vw);
    height: 100dvh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 84px 28px 32px;
    gap: 6px;
    box-shadow: -6px 0 40px rgba(0,0,0,0.15);
    transition: right var(--ease);
    overflow-y: auto;
  }
  .navbar__nav.open { right: 0; }

  .navbar__nav > a:not(.btn) { color: var(--text); font-size: 1rem; padding: 6px 0; }
  .navbar__nav > a:not(.btn)::after { display: none; }
  .navbar__nav > a:not(.btn):hover { color: var(--blue); }
  .navbar__nav .btn--outline-nav { width: 100%; margin-top: 10px; }

  /* Overlay fondo cuando nav está abierto */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--ease);
  }
  .nav-overlay.active { opacity: 1; pointer-events: all; }

  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }

  .challenges__grid { grid-template-columns: 1fr; }

  .services__grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .contact__form-wrap { padding: 28px 20px; }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px 32px; }
  .footer__brand { grid-column: 1; }

  .whatsapp-float { bottom: 20px; right: 18px; width: 52px; height: 52px; }
  .whatsapp-float::before { width: 52px; height: 52px; }
}

@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .specialty-list { grid-template-columns: 1fr; }
  .challenges__banner { flex-direction: column; padding: 24px 20px; }
  .challenges__banner .btn { width: 100%; }
  .contact__form-wrap { padding: 24px 16px; }
}
