/* ── Layout ── */
.clinicas-section {
  padding: 60px 20px;
}

.clinicas-container {
  max-width: 1170px;
  margin: 0 auto;
  font-family: 'Inter', system-ui, sans-serif;
}

/* ── Scroll sidebar ── */
.mh-scroll-sidebar {
  position: fixed;
  left: 3%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
}

.mh-scroll-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 130px;
}

.mh-scroll-sidebar ul::before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 7.5px;
  width: 1px;
  background-color: #0b1c2d;
  z-index: 1;
}

.mh-nav-item {
  position: relative;
  z-index: 2;
}

.mh-nav-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #8c9bb0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.mh-nav-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #f4f7ff;
  border: 1px solid #0b1c2d;
  margin-right: 15px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.mh-nav-item.active .mh-nav-link {
  color: #0b1c2d;
  font-weight: 800;
}

.mh-nav-item.active .mh-nav-dot {
  background-color: #0b1c2d;
  border-color: #0b1c2d;
  transform: scale(1.2);
}

@media (max-width: 1200px) {
  .mh-scroll-sidebar { display: none; }
}

/* ── Hero ── */
.habla-blog-hero {
  position: relative;
  width: 100%;
  min-height: 500px;
  background-color: #e6eeff;
  margin-bottom: 50px;
  display: flex;
  align-items: center;
  border-radius: 80px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.hero-bg-robot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(11, 28, 45, 0.8) 0%, rgba(11, 28, 45, 0.2) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 650px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 40px 60px 80px;
  text-align: left;
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 20px 0;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-title em {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-weight: 500;
}

.hero-text {
  font-size: 16px;
  line-height: 1.6;
  color: #fff;
  font-weight: 500;
  max-width: 95%;
  margin: 0 0 30px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
}

.hero-action-btn:hover {
  background-color: #0b1c2d;
  border-color: #0b1c2d;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 28, 45, 0.4);
}

/* Botón "Activa a Carla" — relleno azul */
.hero-action-btn--outline {
  background-color: #2b7cff;
  border-color: #2b7cff;
  color: #ffffff;
}
.hero-action-btn--outline:hover {
  background-color: #1e61d4;
  border-color: #1e61d4;
  box-shadow: 0 8px 20px rgba(43, 124, 255, 0.45);
}

/* Wrapper de los dos botones del hero sector */
.sector-hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 600px) {
  .sector-hero-btns { flex-direction: column; align-items: flex-start; gap: 10px; }
  .sector-hero-btns .hero-action-btn { width: 100%; justify-content: center; }
}

@media (max-width: 900px) {
  .habla-blog-hero {
    border-radius: 40px;
    min-height: 600px;
    align-items: center;
  }
  .hero-bg-robot { object-position: center center; }
  .hero-overlay {
    background: linear-gradient(0deg, rgba(11, 28, 45, 0.9) 0%, rgba(11, 28, 45, 0.4) 100%);
  }
  .hero-content {
    max-width: 100%;
    padding: 40px 25px;
    align-items: center;
    text-align: center;
  }
  .hero-title { font-size: 32px; }
  .hero-text { font-size: 15px; max-width: 100%; }
}

/* ── Problema ── */
.problema-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px 0;
}

.problema-card {
  padding: 40px;
  background: #f8faff;
  border-radius: 24px;
  border-left: 4px solid #2b7cff;
}

.problema-title {
  font-size: 22px;
  font-weight: 800;
  color: #0b1c2d;
  margin: 0 0 12px;
  line-height: 1.3;
}

.problema-text {
  font-size: 16px;
  color: #475569;
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .problema-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ── Features (mh-features-wrapper) ── */
.mh-features-wrapper {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.mh-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.mh-feature-card {
  background: #ffffff;
  border-radius: 36px;
  padding: 40px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mh-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.08);
}

.mh-feature-content { flex: 1; }

.mh-feature-title {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #0b1c2d !important;
  margin: 0 0 15px 0 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.5px !important;
}

.mh-feature-text {
  font-size: 15px !important;
  font-weight: 400 !important;
  color: #334155 !important;
  margin: 0 !important;
  line-height: 1.6 !important;
}

.mh-feature-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}

.mh-icon-calendar-wrapper {
  position: relative;
  color: #4c8cfc;
  font-size: 70px;
  line-height: 1;
}

.mh-icon-check-badge {
  position: absolute;
  bottom: -5px;
  right: -15px;
  background-color: #4ade80;
  color: #ffffff;
  border-radius: 50%;
  font-size: 18px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #ffffff;
}

.mh-icon-phone {
  font-size: 45px;
  color: #0b1c2d;
}

.mh-icon-whatsapp {
  font-size: 50px;
  color: #4ade80;
}

.mh-icon-globe {
  font-size: 55px;
  color: #4c8cfc;
}

.mh-icon-globe + .mh-icon-check-badge {
  display: none;
}

.mh-icon-allergy-wrapper {
  position: relative;
  color: #4c8cfc;
  font-size: 60px;
  line-height: 1;
  margin-right: 10px;
}

.mh-icon-alert-badge {
  position: absolute;
  bottom: -5px;
  right: -15px;
  background-color: #f59e0b;
  color: #ffffff;
  border-radius: 50%;
  font-size: 16px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #ffffff;
}

@media (max-width: 900px) {
  .mh-features-grid { grid-template-columns: 1fr; gap: 20px; }
  .mh-feature-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    border-radius: 28px;
  }
  .mh-feature-visual {
    flex-direction: row;
    width: 100%;
    justify-content: flex-end;
    margin-top: 15px;
  }
}

/* ── Resultado ── */
.resultado-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px 0 80px;
}

.resultado-card {
  padding: 40px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-top: 4px solid #4ade80;
}

.resultado-title {
  font-size: 22px;
  font-weight: 800;
  color: #0b1c2d;
  margin: 0 0 12px;
  line-height: 1.3;
}

.resultado-text {
  font-size: 16px;
  color: #475569;
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .resultado-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* =====================================================
   Professional Animations — Sector Pages
   (keyframes y .reveal base viven en styles.css)
   ===================================================== */

/* ── Hero: entrada escalonada on-load (above the fold) ── */
.hero-content .hero-title       { animation: fadeUp .70s cubic-bezier(.22,1,.36,1) .15s both; }
.hero-content .hero-text        { animation: fadeUp .60s cubic-bezier(.22,1,.36,1) .32s both; }
.hero-content .sector-hero-btns { animation: fadeUp .60s cubic-bezier(.22,1,.36,1) .48s both; }

/* ── Problema cards: reveal + stagger + inner glow ── */
.problema-card:nth-child(1).reveal { transition-delay: 0s;   }
.problema-card:nth-child(2).reveal { transition-delay: .12s; }

.problema-card,
.resultado-card { position: relative; overflow: hidden; }

.problema-card::before,
.resultado-card::before,
.mh-feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(43,124,255,0.09) 0%, transparent 68%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.problema-card:hover::before,
.resultado-card:hover::before,
.mh-feature-card:hover::before { opacity: 1; }

/* ── Feature cards: reveal + stagger + tilt 3D + inner glow ── */
.mh-features-grid { perspective: 1000px; }

.mh-feature-card { position: relative; overflow: hidden; }
/* La regla de 2 clases gana al .reveal y al .mh-feature-card de origen,
   garantizando que opacidad y transform animen (y se conserve box-shadow). */
.mh-feature-card.reveal {
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
}
.mh-feature-card:nth-child(1).reveal { transition-delay: 0s;   }
.mh-feature-card:nth-child(2).reveal { transition-delay: .10s; }
.mh-feature-card:nth-child(3).reveal { transition-delay: .20s; }
.mh-feature-card:nth-child(4).reveal { transition-delay: .30s; }

/* ── Resultado cards: reveal + stagger ── */
.resultado-card:nth-child(1).reveal { transition-delay: 0s;   }
.resultado-card:nth-child(2).reveal { transition-delay: .12s; }

/* ── FAQ: reveal + stagger ── */
.faq-item:nth-child(1).reveal { transition-delay: 0s;   }
.faq-item:nth-child(2).reveal { transition-delay: .08s; }
.faq-item:nth-child(3).reveal { transition-delay: .16s; }
.faq-item:nth-child(4).reveal { transition-delay: .24s; }
.faq-item:nth-child(5).reveal { transition-delay: .32s; }
.faq-item:nth-child(6).reveal { transition-delay: .40s; }

/* =========================================================================
   SEO RICH CONTENT BLOCK (texto SEO interactivo por sector)
   Texto + imagen con badge flotante + tarjetas-beneficio con reveal/stagger.
   ========================================================================= */
.seo-rich { padding: 70px 20px; background: linear-gradient(180deg,#f8fbff 0%,#ffffff 100%); }
.seo-rich-inner { max-width: 1080px; margin: 0 auto; }
.seo-rich-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 46px; align-items: center; }

.seo-rich-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; color: #2b7cff; margin: 0 0 14px; }
.seo-rich-text h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; color: #0b1c2d; line-height: 1.25; letter-spacing: -.5px; margin: 0 0 18px; }
.seo-rich-text p { font-size: 16px; color: #475569; line-height: 1.8; margin: 0 0 16px; }
.seo-rich-text p:last-of-type { margin-bottom: 0; }

.seo-rich-media { position: relative; }
.seo-rich-media img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 24px 60px rgba(11,28,45,.14); display: block; }
.seo-rich-badge { position: absolute; bottom: 18px; left: 18px; background: #fff; border-radius: 14px; padding: 11px 16px; box-shadow: 0 12px 30px rgba(11,28,45,.16); display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: #0b1c2d; font-size: 14px; }
.seo-rich-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: #10b981; animation: seoPulse 2s ease-in-out infinite; }
@keyframes seoPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); } 50% { box-shadow: 0 0 0 6px rgba(16,185,129,0); } }

/* Tarjetas-beneficio (cuadrados) */
.seo-points { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 42px; }
.seo-point { background: #fff; border: 1px solid #e8edf5; border-radius: 16px; padding: 24px 18px; text-align: center; box-shadow: 0 10px 26px rgba(11,28,45,.05); transition: transform .25s ease, box-shadow .25s ease; }
.seo-point:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(43,124,255,.14); }
.seo-point-ic { width: 52px; height: 52px; border-radius: 14px; background: #eaf1ff; color: #2b7cff; display: flex; align-items: center; justify-content: center; font-size: 21px; margin: 0 auto 14px; }
.seo-point h3 { font-size: 15px; font-weight: 800; color: #0b1c2d; margin: 0 0 6px; }
.seo-point p { font-size: 13px; color: #64748b; line-height: 1.5; margin: 0; }

/* reveal + stagger de las tarjetas */
.seo-point:nth-child(1).reveal { transition-delay: 0s;  }
.seo-point:nth-child(2).reveal { transition-delay: .1s; }
.seo-point:nth-child(3).reveal { transition-delay: .2s; }
.seo-point:nth-child(4).reveal { transition-delay: .3s; }

@media (max-width: 880px) {
  .seo-rich { padding: 48px 18px; }
  .seo-rich-grid { grid-template-columns: 1fr; gap: 30px; }
  .seo-points { grid-template-columns: repeat(2,1fr); }
}

/* Los carruseles infinitos de móvil (.sec-marquee) los construye y estiliza
   sector-mobile.js (inyecta su propio <style> para no depender de la caché). */
