/* =========================================================
   VARIABLES Y RESET
   ========================================================= */
:root {
  --primary: #4F6BF5;
  --primary-dark: #3A54D8;
  --primary-light: #EEF1FE;
  --primary-xlight: #F5F7FF;
  --text-dark: #0D0F1A;
  --text-medium: #4A4D60;
  --text-light: #8B8FA8;
  --bg-white: #FFFFFF;
  --bg-light: #F8F9FC;
  --yellow: #F5A623;
  --green: #22C55E;
  --border: #E8EAF0;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.05);
  --shadow-blue: 0 8px 32px rgba(79,107,245,.25);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1160px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--bg-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
button, input, textarea, select { font-family: inherit; }

/* =========================================================
   TIPOGRAFÍA GLOBAL
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; font-weight: 700; }
p  { color: var(--text-medium); line-height: 1.7; }

/* =========================================================
   CONTENEDOR
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   SECTION LABEL
   ========================================================= */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  background: var(--primary-light);
  border-radius: 100px;
  padding: 4px 14px 4px 10px;
}

.section-label__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* =========================================================
   BOTONES
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn:active { transform: translateY(0) scale(0.98); }

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(79,107,245,.35);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn--outline:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn--white {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-md);
}
.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--ghost {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.25);
}

.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--sm { padding: 9px 18px; font-size: 0.82rem; }

/* =========================================================
   STARS
   ========================================================= */
.stars { display: flex; gap: 3px; }
.star { color: var(--yellow); font-size: 1rem; line-height: 1; }

/* =========================================================
   HEADER / NAVEGACIÓN
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-medium);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav__links a:hover { color: var(--primary); }
.nav__links a:hover::after { width: 100%; }
.nav__links a.active { color: var(--primary); }
.nav__links a.active::after { width: 100%; }

.nav__cta { flex-shrink: 0; }

/* Hamburger - Mobile */
.nav__mobile {
  display: none;
}

.img-placeholder {
  background: linear-gradient(135deg, var(--primary-light) 0%, #e8f4f8 100%);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.footer__address {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.footer__address-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-medium);
}

.footer__address-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--primary);
}

.footer__phone {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.footer__col-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 0.9rem;
  color: var(--text-medium);
}

.footer__links a:hover { color: var(--primary); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-light);
  flex-wrap: wrap;
  text-align: center;
}

.footer__bottom a {
  color: var(--primary);
  font-weight: 500;
}

/* =========================================================
   SECCIÓN HERO (HOME)
   ========================================================= */
.hero {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 80px;
  overflow: hidden;
  background: var(--bg-white);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-medium);
  margin-bottom: 20px;
}

.hero__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}

.hero__rating-text {
  font-size: 0.85rem;
  color: var(--text-medium);
  font-weight: 500;
}

.hero__title { margin-bottom: 16px; }

.hero__subtitle {
  font-size: 1.05rem;
  color: var(--text-medium);
  max-width: 440px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero__social-proof {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero__avatars {
  display: flex;
}

.hero__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  overflow: hidden;
  margin-left: -8px;
  background: var(--primary-light);
}

.hero__avatar:first-child { margin-left: 0; }

.hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
}

.hero__proof-text strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
}

.hero__proof-text span {
  font-size: 0.82rem;
  color: var(--text-medium);
  display: block;
  line-height: 1.2;
}

.hero__image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--primary-light);
  box-shadow: 0 30px 70px rgba(13, 15, 26, 0.12), 0 10px 24px rgba(79, 107, 245, 0.10);
}

.hero__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__image-wrap:hover img { transform: scale(1.04); }

.hero__image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
}

.hero__image-badge-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero__image-badge-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
}

.hero__image-badge-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
}

.hero__image-badge-text span {
  font-size: 0.78rem;
  color: var(--text-medium);
}

/* =========================================================
   SECCIÓN REVIEWS (TESTIMONIOS)
   ========================================================= */
.reviews {
  padding: 80px 0;
  background: var(--bg-white);
  overflow: hidden;
}

.reviews__header {
  text-align: center;
  margin-bottom: 48px;
}

.reviews__header h2 { margin-bottom: 0; }

/* Reviews carousel layout */
.reviews__carousel-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.reviews__fade-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden; /* recorta los slides parciales en los bordes sin fade */
}

.reviews-nav-btn {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  padding: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.reviews-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-blue);
  transform: scale(1.08);
}

.reviews-nav-btn:active { transform: scale(0.96); }

.reviews-nav-btn svg { stroke: currentColor; display: block; }

.reviews-swiper { overflow: visible; padding: 8px 0 24px; }

.reviews-swiper .swiper-wrapper { align-items: stretch; }
.reviews-swiper .swiper-slide  { height: auto; }

.review-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.review-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

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

.review-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--primary-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
}

.review-card__avatar img { width: 100%; height: 100%; object-fit: cover; }

.review-card__name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.review-card__google {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.review-card__quote {
  font-size: 2.5rem;
  line-height: 1;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 900;
  font-family: Georgia, serif;
}

.review-card__text {
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}

/* =========================================================
   SECCIÓN SERVICIOS OVERVIEW
   ========================================================= */
.services-overview {
  padding: 80px 0;
  background: var(--bg-white);
}

.services-overview__header {
  text-align: center;
  margin-bottom: 56px;
}

.services-overview__header h2 { margin-bottom: 0; }

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

.service-feature {
  text-align: center;
  padding: 8px;
}

.service-feature__icon {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: var(--transition);
}

.service-feature__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary);
}

.service-feature:hover .service-feature__icon {
  background: linear-gradient(135deg, var(--primary) 0%, #1a5fa8 100%);
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-blue);
}

.service-feature:hover .service-feature__icon svg {
  stroke: #fff;
}

.service-feature h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.service-feature p {
  font-size: 0.875rem;
  color: var(--text-medium);
  line-height: 1.55;
}

/* =========================================================
   SECCIÓN ASISTENCIA VIRTUAL (MINI FORM)
   ========================================================= */
.virtual-assist {
  padding: 0 0 80px;
}

.virtual-assist__card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 48px;
}

.virtual-assist__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.virtual-assist__top h3 {
  font-size: 1.3rem;
  margin-bottom: 0;
}

.virtual-assist__stat {
  margin-top: 16px;
}

.virtual-assist__stat strong {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
}

.virtual-assist__stat span {
  display: block;
  font-size: 0.82rem;
  color: var(--text-medium);
}

.virtual-assist__form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-medium);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,107,245,.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

/* =========================================================
   SECCIÓN POR QUÉ ELEGIRNOS
   ========================================================= */
.why-us {
  padding: 80px 0;
  background: var(--bg-white);
}

.why-us__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.why-us__number {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.why-us__feature {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.why-us__feature:last-of-type { border-bottom: none; }

.why-us__feature h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.why-us__feature p {
  font-size: 0.875rem;
  color: var(--text-medium);
}

.why-us__image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--primary-light);
  box-shadow: var(--shadow-lg);
}

.why-us__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-us__image-wrap:hover img { transform: scale(1.04); }

.why-us__floating-card {
  position: absolute;
  bottom: 28px;
  right: -20px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-lg);
  min-width: 200px;
}

.why-us__card-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.why-us__doctor-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.why-us__doctor-item:last-of-type { border-bottom: none; }

.why-us__doctor-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--primary-light);
  flex-shrink: 0;
}

.why-us__doctor-avatar img { width: 100%; height: 100%; object-fit: cover; }

.why-us__doctor-name { font-size: 0.82rem; font-weight: 600; color: var(--text-dark); }
.why-us__doctor-role { font-size: 0.75rem; color: var(--text-light); }

.why-us__card-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 10px;
  display: block;
}

/* =========================================================
   SECCIÓN ESPECIALIDADES (CARRUSEL)
   ========================================================= */
.specialties {
  padding: 80px 0;
  background: var(--bg-white);
}

.specialties__header {
  text-align: center;
  margin-bottom: 48px;
}

.specialties__header h2 { margin-bottom: 0; }

.specialty-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  color: inherit;
  text-decoration: none;
}

.specialty-card__doctor {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.specialty-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
  transform: translateY(-4px);
}

.specialty-card__icon {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}

.specialty-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary);
  fill: none;
}

.specialty-card:hover .specialty-card__icon {
  background: linear-gradient(135deg, var(--primary) 0%, #1a5fa8 100%);
}

.specialty-card:hover .specialty-card__icon svg {
  stroke: #fff;
}

.specialty-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.specialty-card p {
  font-size: 0.875rem;
  color: var(--text-medium);
  flex: 1;
  margin-bottom: 20px;
}

.specialty-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.specialty-card__link:hover { gap: 10px; }

/* Swiper custom nav */
.swiper-btn-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.swiper-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  padding: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  box-shadow: var(--shadow-blue);
}

.swiper-btn:hover { background: var(--primary-dark); transform: scale(1.08); }
.swiper-btn:active { transform: scale(0.96); }
.swiper-btn svg { width: 18px; height: 18px; stroke: #fff; }
.swiper-btn.swiper-button-disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.swiper-pagination-bullet {
  width: 8px !important;
  height: 8px !important;
  background: var(--border) !important;
  opacity: 1 !important;
}

.swiper-pagination-bullet-active {
  background: var(--primary) !important;
  width: 24px !important;
  border-radius: 4px !important;
}

/* =========================================================
   SECCIÓN MISIÓN / VISIÓN
   ========================================================= */
.mission {
  padding: 80px 0;
  background: var(--bg-light);
}

.mission__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.mission__image-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--primary-light);
  box-shadow: 0 24px 60px rgba(26, 83, 163, 0.18);
}

.mission__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mission__image-wrap:hover img { transform: scale(1.04); }

.mission__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.mission__item:last-of-type { border-bottom: none; }

.mission__item-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.mission__item-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
}

.mission__item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.mission__item p  { font-size: 0.875rem; color: var(--text-medium); }

/* =========================================================
   SECCIÓN PROCEDIMIENTOS (CARRUSEL)
   ========================================================= */
.procedures {
  padding: 80px 0;
  background: var(--bg-white);
}

.procedures__header {
  text-align: center;
  margin-bottom: 48px;
}

.proc-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.proc-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
  transform: translateY(-4px);
}

.proc-card__icon {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}

.proc-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary);
  fill: none;
}

.proc-card:hover .proc-card__icon {
  background: linear-gradient(135deg, var(--primary) 0%, #1a5fa8 100%);
}

.proc-card:hover .proc-card__icon svg {
  stroke: #fff;
}

.proc-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.proc-card p {
  font-size: 0.875rem;
  color: var(--text-medium);
  flex: 1;
  margin-bottom: 20px;
}

.proc-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.proc-card__link:hover { gap: 10px; }

/* =========================================================
   SECCIÓN CÓMO FUNCIONA
   ========================================================= */
.how-it-works {
  padding: 80px 0;
  background: var(--bg-light);
}

.how-it-works__header {
  text-align: center;
  margin-bottom: 56px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  display: flex;
  flex-direction: column;
}

.step__number {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, #1a5fa8 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.step__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  margin-bottom: 20px;
  background: var(--primary-light);
}

.step__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step p  { font-size: 0.875rem; color: var(--text-medium); }

/* =========================================================
   SECCIÓN FAQ
   ========================================================= */
.faq {
  padding: 80px 0;
  background: var(--bg-white);
}

.faq__header {
  text-align: center;
  margin-bottom: 48px;
}

.faq__list { max-width: 760px; margin: 0 auto; }

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: var(--transition);
}

.faq__question:hover { color: var(--primary); }

.faq__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  transition: transform var(--transition), background var(--transition);
}

.faq__icon svg { display: block; }

.faq__item.open .faq__icon {
  background: var(--text-dark);
  transform: rotate(45deg);
}

.faq__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq__answer-inner {
  padding: 0 0 22px;
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.7;
}

/* =========================================================
   SECCIÓN CONTACTO / CTA AZUL
   ========================================================= */
.contact-cta {
  background: linear-gradient(135deg, var(--primary) 0%, #1a5fa8 100%);
  padding: 80px 0;
}

.contact-cta__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.contact-cta__left h2 {
  color: #fff;
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

.contact-cta__left .stars .star { color: #fff; }

.contact-cta__form { display: flex; flex-direction: column; gap: 12px; }

.contact-cta__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-cta__form .form-group input,
.contact-cta__form .form-group textarea {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}

.contact-cta__form .form-group input::placeholder,
.contact-cta__form .form-group textarea::placeholder {
  color: rgba(255,255,255,0.65);
}

.contact-cta__form .form-group input:focus,
.contact-cta__form .form-group textarea:focus {
  border-color: rgba(255,255,255,0.7);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.15);
}

.contact-cta .form-group label { color: rgba(255,255,255,0.9); }

.form-msg {
  font-size: 0.875rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: none;
}

.form-msg.success { background: rgba(34,197,94,.2); color: #d1fae5; display: block; }
.form-msg.error   { background: rgba(239,68,68,.2);  color: #fee2e2; display: block; }

/* =========================================================
   PÁGINA NOSOTROS
   ========================================================= */
.page-hero {
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 60px;
  text-align: center;
  background: linear-gradient(160deg, var(--primary-light) 0%, var(--bg-white) 60%);
}

.page-hero h1 { margin-bottom: 16px; }
.page-hero p  { font-size: 1.05rem; max-width: 560px; margin: 0 auto 28px; }

.page-hero__images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.page-hero__images img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.stats-bar {
  padding: 60px 0;
  background: var(--bg-white);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 20px 48px;
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 44px;
  background: var(--border);
}

.stat-item__number {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-item__label {
  font-size: 0.875rem;
  color: var(--text-medium);
}

.values-section {
  padding: 80px 0;
  background: var(--bg-white);
}

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

.value-card {
  background: linear-gradient(135deg, var(--primary) 0%, #1a5fa8 100%);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  color: #fff;
}

.value-card__icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.value-card__icon svg {
  width: 26px;
  height: 26px;
  stroke: #fff;
}

.value-card h3 { color: #fff; margin-bottom: 10px; font-size: 1.1rem; }
.value-card p  { color: rgba(255,255,255,0.8); font-size: 0.875rem; }

/* =========================================================
   PÁGINA DOCTORES
   ========================================================= */
.doctors-page {
  padding: calc(var(--header-h) + 60px) 0 80px;
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.doctor-card {
  background: var(--bg-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  color: inherit;
  text-decoration: none;
  display: block;
}

.doctor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.doctor-card__image {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--primary-light);
}

.doctor-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: var(--transition);
}

.doctor-card:hover .doctor-card__image img { transform: scale(1.04); }

.doctor-card__info {
  padding: 20px;
}

.doctor-card__name { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.doctor-card__role { font-size: 0.85rem; color: var(--primary); font-weight: 500; }

/* =========================================================
   BLOG
   ========================================================= */
.blog-archive {
  padding: calc(var(--header-h) + 60px) 0 80px;
}

.blog-archive__header {
  text-align: center;
  margin-bottom: 56px;
}

.blog-archive__header h1 { margin-bottom: 10px; }
.blog-archive__header p  { font-size: 1.05rem; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.blog-card__image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--primary-light);
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-card__image img { transform: scale(1.05); }

.blog-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.blog-card__meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-card__meta svg {
  width: 13px;
  height: 13px;
  stroke: var(--text-light);
}

.blog-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.35;
  flex: 1;
}

.blog-card h3 a:hover { color: var(--primary); }

.blog-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
}

.blog-card__link:hover { gap: 10px; }

/* Single Post */
.single-post {
  padding: calc(var(--header-h) + 48px) 0 80px;
}

.single-post__inner {
  max-width: 760px;
  margin: 0 auto;
}

.single-post__header { margin-bottom: 32px; }

.single-post__category {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.single-post__title { margin-bottom: 16px; }

.single-post__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.82rem;
  color: var(--text-light);
}

.single-post__featured {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 40px;
  aspect-ratio: 16/9;
}

.single-post__featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-medium);
}

.post-content h2, .post-content h3, .post-content h4 { color: var(--text-dark); margin: 32px 0 16px; }
.post-content p   { margin-bottom: 20px; }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 20px; }
.post-content li  { margin-bottom: 8px; }
.post-content a   { color: var(--primary); text-decoration: underline; }
.post-content img { border-radius: var(--radius-md); margin: 24px 0; }
.post-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  background: var(--primary-xlight);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
  font-style: italic;
}

/* =========================================================
   CPT ARCHIVE: ESPECIALIDADES / PROCEDIMIENTOS
   ========================================================= */
.cpt-archive {
  padding: calc(var(--header-h) + 60px) 0 80px;
}

.cpt-archive__header {
  text-align: center;
  margin-bottom: 56px;
}

.cpt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* CPT Single */
.cpt-single {
  padding: calc(var(--header-h) + 48px) 0 80px;
}

.cpt-single__header {
  margin-bottom: 48px;
}

.cpt-single__icon {
  width: 72px;
  height: 72px;
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.cpt-single__icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--primary);
}

.cpt-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.cpt-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-medium);
}

.cpt-meta-badge svg {
  width: 14px;
  height: 14px;
  stroke: var(--primary);
}

.cpt-single__content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.cpt-single__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.cpt-single__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cpt-single__sidebar-card {
  background: var(--primary-xlight);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-xl);
  padding: 28px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.cpt-single__sidebar-card h4 { margin-bottom: 16px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 32px;
}

.back-link:hover { gap: 12px; }

/* =========================================================
   404
   ========================================================= */
.not-found {
  padding: calc(var(--header-h) + 80px) 0 80px;
  text-align: center;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.not-found__inner { max-width: 520px; margin: 0 auto; }

.not-found__number {
  font-size: clamp(6rem, 15vw, 10rem);
  font-weight: 900;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 16px;
}

.not-found h1 { font-size: 1.8rem; margin-bottom: 12px; }
.not-found p  { font-size: 1rem; margin-bottom: 32px; }

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.page-numbers {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text-medium);
  transition: var(--transition);
  text-decoration: none;
}

.page-numbers svg { display: block; }

.page-numbers:hover, .page-numbers.current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Las flechas prev/next son circulares para distinguirlas de los números */
.page-numbers.prev,
.page-numbers.next {
  border-radius: 50%;
}

.page-numbers.dots {
  border-color: transparent;
  cursor: default;
}
.page-numbers.dots:hover {
  background: transparent;
  color: var(--text-medium);
}

/* =========================================================
   WHATSAPP FLOATING BUTTON
   ========================================================= */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: var(--transition);
  animation: pulse-wa 2.5s infinite;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,.55);
}

.wa-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.45); }
  50%       { box-shadow: 0 4px 28px rgba(37,211,102,.75); }
}

/* =========================================================
   PÁGINA LABORATORIOS
   ========================================================= */

/* Hero variante */
.lab-hero { padding-bottom: 40px; }
.lab-hero h1 { max-width: 760px; margin-left: auto; margin-right: auto; }
.lab-hero p {
  max-width: 580px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
  color: var(--text-medium);
}

/* Paquetes */
.lab-packages { padding: 60px 0 80px; background: var(--bg-white); }

.lab-packages__header {
  text-align: center;
  margin-bottom: 48px;
}
.lab-packages__header h2 { margin-bottom: 12px; }
.lab-packages__header p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.lab-packages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.lab-package {
  position: relative;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.lab-package:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.lab-package--featured {
  background: linear-gradient(180deg, var(--primary-xlight) 0%, var(--bg-white) 60%);
}

.lab-package__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.lab-package__icon svg { width: 26px; height: 26px; }

.lab-package__name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.lab-package__subtitle {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.lab-package__custom-text {
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}

.lab-package__tests {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.lab-package__tests li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-medium);
}

.lab-package__check {
  width: 14px;
  height: 14px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 4px;
}

.lab-package__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, #1a5fa8 100%);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  box-shadow: var(--shadow-blue);
}
.lab-package__badge svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: #fff;
  fill: none;
}

.lab-package__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  margin-top: auto;
}
.lab-package__cta svg { width: 18px; height: 18px; flex-shrink: 0; }
.lab-package__cta:hover {
  background: #1ebe5b;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,211,102,.35);
}
.lab-package__cta:active { transform: translateY(0) scale(0.98); }

/* =========================================================
   SEARCH BAR (laboratorios + ultrasonidos + especialidades)
   ========================================================= */
.search-bar {
  position: relative;
  max-width: 560px;
  margin: 0 auto 40px;
}

.search-bar__icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  display: flex;
  pointer-events: none;
}
.search-bar__icon svg { width: 20px; height: 20px; }

.search-bar__input {
  width: 100%;
  padding: 14px 48px 14px 50px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-white);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.search-bar__input::placeholder { color: var(--text-light); }

.search-bar__input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79,107,245,.12), var(--shadow-sm);
}

.search-bar__clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  padding: 0;
  background: var(--bg-light);
  border: none;
  border-radius: 50%;
  color: var(--text-medium);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.search-bar__clear svg { width: 14px; height: 14px; }
.search-bar__clear:hover { background: var(--border); color: var(--text-dark); }

/* El atributo [hidden] debe SIEMPRE ocultar el elemento, incluso si tiene
   display:flex o display:grid declarado con la misma especificidad */
[hidden] { display: none !important; }

/* Highlight de coincidencia de búsqueda */
.search-highlight {
  background: #FFF3A8;
  color: var(--text-dark);
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 700;
}

/* =========================================================
   LISTA DE LABORATORIOS POR CATEGORÍA
   ========================================================= */
.lab-list { padding: 80px 0; background: var(--bg-light); }

.lab-list__header { text-align: center; margin-bottom: 32px; }
.lab-list__header h2 { margin-bottom: 12px; }
.lab-list__header p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.lab-list__categories {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.lab-category {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.lab-category__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.lab-category__items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.lab-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.lab-item:hover {
  background: var(--primary-xlight);
}

.lab-item__name {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
}

.lab-item__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #25D366;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: var(--transition);
}
.lab-item__cta svg { width: 14px; height: 14px; flex-shrink: 0; }
.lab-item__cta:hover {
  background: #25D366;
  color: #fff;
}

/* =========================================================
   EMPTY STATE (búsquedas sin resultados)
   ========================================================= */
.search-empty {
  text-align: center;
  padding: 60px 24px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
  max-width: 560px;
  margin: 32px auto 0;
}

.search-empty__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.search-empty__icon svg { width: 32px; height: 32px; }

.search-empty__text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.search-empty__hint {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin-bottom: 20px;
}

/* =========================================================
   ULTRASONIDOS
   ========================================================= */
.ultrasound-list { padding: 80px 0; background: var(--bg-white); }

.ultrasound-list__header { text-align: center; margin-bottom: 32px; }
.ultrasound-list__header h2 { margin-bottom: 12px; }
.ultrasound-list__header p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.ultrasound-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ultrasound-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.ultrasound-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.ultrasound-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.ultrasound-card__icon svg { width: 22px; height: 22px; }

.ultrasound-card__name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.ultrasound-card__desc {
  font-size: 0.875rem;
  color: var(--text-medium);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.ultrasound-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  margin-top: auto;
  align-self: flex-start;
}
.ultrasound-card__cta svg { width: 16px; height: 16px; flex-shrink: 0; }
.ultrasound-card__cta:hover {
  background: #1ebe5b;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,211,102,.35);
}

/* =========================================================
   UTILIDADES
   ========================================================= */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }

/* =========================================================
   FIX: clipping del hover lift + equal-height en carruseles
   ========================================================= */

/* Damos padding extra a los swiper-wrappers donde las cards se elevan al hover.
   Sin esto, la sombra al subir queda cortada por overflow visible/hidden del padre. */
.specialties-swiper,
.procedures-swiper {
  padding-top: 8px;
  padding-bottom: 32px;
}

/* En reviews el wrap tiene overflow:hidden (sin fade), así que el swiper necesita
   padding generoso vertical para que la sombra del hover lift no quede cortada */
.reviews-swiper {
  padding-top: 24px;
  padding-bottom: 40px;
}

/* Equal-height en TODOS los swipers de cards */
.specialties-swiper .swiper-wrapper,
.procedures-swiper  .swiper-wrapper,
.reviews-swiper     .swiper-wrapper { align-items: stretch; }

.specialties-swiper .swiper-slide,
.procedures-swiper  .swiper-slide,
.reviews-swiper     .swiper-slide { height: auto; display: flex; }

.specialties-swiper .specialty-card,
.procedures-swiper  .proc-card,
.reviews-swiper     .review-card { width: 100%; height: 100%; }

/* Equal-height en grid de archive especialidades (cpt-grid) */
.cpt-grid { align-items: stretch; }
.cpt-grid .specialty-card { height: 100%; }

/* El grid contenedor de paquetes de laboratorios también */
.lab-packages__grid { align-items: stretch; }
.lab-packages__grid .lab-package { height: 100%; }

/* Igual el grid de ultrasonidos */
.ultrasound-grid { align-items: stretch; }
.ultrasound-grid .ultrasound-card { height: 100%; }

/* La sección de reviews tenía overflow:hidden que cortaba la sombra del hover.
   Le damos padding generoso top/bottom para que el lift no se vea cortado. */
.reviews { padding-top: 64px; padding-bottom: 96px; overflow: hidden; }

/* =========================================================
   FIX: Formulario de contacto (azul) - espaciado y asteriscos
   ========================================================= */

/* Indicador de campo requerido en color rojo pálido */
.form-req {
  color: #FFB4B4;
  font-weight: 700;
  margin-left: 2px;
}

/* Form en columna con gap consistente entre filas, para que el label quede
   bien pegado a su input y separado del input anterior */
.contact-cta form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-cta .contact-cta__row {
  margin: 0; /* el gap del flex del form maneja la separación */
}

.contact-cta .form-group label {
  margin-bottom: 8px;
  color: rgba(255,255,255,0.95);
  font-weight: 600;
}

/* =========================================================
   RESPONSIVE: TABLET
   ========================================================= */
@media (max-width: 1024px) {
  .hero__inner        { grid-template-columns: 1fr; gap: 32px; }
  .hero__image-wrap   { max-width: 480px; margin: 0 auto; }
  .services-grid      { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .why-us__inner      { grid-template-columns: 1fr; }
  .why-us__image-wrap { max-width: 480px; margin: 0 auto; }
  .why-us__floating-card { right: 0; }
  .mission__inner     { grid-template-columns: 1fr; gap: 40px; }
  .mission__image-wrap { max-width: 480px; margin: 0 auto; }
  .contact-cta__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid       { grid-template-columns: 1fr 1fr; }
  .values-grid        { grid-template-columns: 1fr 1fr; }
  .doctors-grid       { grid-template-columns: repeat(2, 1fr); }
  .blog-grid          { grid-template-columns: repeat(2, 1fr); }
  .cpt-grid           { grid-template-columns: repeat(2, 1fr); }
  .cpt-single__content { grid-template-columns: 1fr; }
  .cpt-single__sidebar-card { position: static; }
  .stats-grid         { flex-wrap: wrap; }
  .stat-item          { padding: 20px 32px; }
  .steps-grid         { grid-template-columns: 1fr; gap: 24px; }
  .page-hero__images  { grid-template-columns: 1fr 1fr; }
  .virtual-assist__form { grid-template-columns: 1fr 1fr; }

  .lab-packages__grid { grid-template-columns: repeat(2, 1fr); }
  .ultrasound-grid    { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   RESPONSIVE: MOBILE
   ========================================================= */
@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  .nav__mobile {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-white);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 24px;
    z-index: 999;
    overflow-y: auto;
  }

  .nav__mobile.open { display: flex; }

  .nav__mobile a {
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav__mobile .btn {
    width: 100%;
    justify-content: center;
    margin-top: 16px;
    font-size: 1rem;
    padding: 14px;
  }

  .hero        { padding-top: calc(var(--header-h) + 24px); padding-bottom: 60px; }
  .hero__title { font-size: 2rem; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .virtual-assist__card { padding: 24px; }
  .virtual-assist__form { grid-template-columns: 1fr; }

  .footer__grid   { grid-template-columns: 1fr; gap: 32px; }
  .values-grid    { grid-template-columns: 1fr; }
  .doctors-grid   { grid-template-columns: repeat(2, 1fr); }
  .blog-grid      { grid-template-columns: 1fr; }
  .cpt-grid       { grid-template-columns: 1fr; }

  .contact-cta__row { grid-template-columns: 1fr; }

  .page-hero__images { grid-template-columns: 1fr; }
  .page-hero__images img:nth-child(2),
  .page-hero__images img:nth-child(3) { display: none; }

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

  .stat-item + .stat-item::before { display: none; }
  .stat-item { padding: 16px 24px; }
  .stats-grid { gap: 0; }

  .doctors-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .faq__question { font-size: 0.95rem; }

  /* Carrusel reviews: en móvil ocultamos flechas (se usa swipe) */
  .reviews-nav-btn { display: none; }
  .reviews__carousel-area { gap: 0; }

  .swiper-btn-wrap { display: flex; }

  .wa-float { bottom: 20px; right: 20px; width: 50px; height: 50px; }

  /* Laboratorios responsive */
  .lab-packages__grid     { grid-template-columns: 1fr; }
  .ultrasound-grid        { grid-template-columns: 1fr; }
  .lab-category           { padding: 20px; }
  .lab-category__items    { grid-template-columns: 1fr; }
  .lab-item               { padding: 12px 14px; }
  .lab-item__cta span     { display: none; } /* solo ícono en móvil */
  .lab-item__cta          { padding: 8px; border-radius: 50%; }
  .search-bar__input      { font-size: 0.9rem; padding: 12px 44px 12px 44px; }
}

@media (max-width: 480px) {
  .doctors-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  h2 { font-size: 1.7rem; }
}
