:root {
  --primary: #1a56db;
  --primary-dark: #1341b0;
  --primary-light: #eff6ff;
  --dark: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --success: #16a34a;
  --wa-green: #25d366;
}

* { box-sizing: border-box; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; color: var(--dark); }

/* ═══ NAVBAR ═══ */
.navbar-web {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0,0,0,.05);
  padding: .85rem 0;
  transition: all .25s;
}
.navbar-brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary) !important;
}
.nav-link {
  color: var(--text) !important;
  font-weight: 600;
  font-size: .92rem;
  padding: .5rem 1rem !important;
}
.nav-link:hover { color: var(--primary) !important; }
.btn-nav-cta {
  background: var(--primary);
  color: #fff !important;
  border-radius: 10px;
  padding: .55rem 1.3rem !important;
  font-weight: 700;
  font-size: .88rem;
}
.btn-nav-cta:hover { background: var(--primary-dark); color:#fff; }

/* ═══ HERO / BANNER ═══ */
.hero-banner {
  background: linear-gradient(135deg, #1a56db, #2563eb, #3b82f6);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  background-size: cover;
  background-position: center;
}
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.08), transparent 50%);
}
.hero-content { position: relative; z-index: 2; max-width: 640px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.15);
  color: #fff;
  padding: .5rem 1.1rem;
  border-radius: 30px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}
.hero-content h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.hero-content p {
  color: rgba(255,255,255,.9);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.btn-hero-primary {
  background: #fff;
  color: var(--primary);
  border-radius: 12px;
  padding: .9rem 1.8rem;
  font-weight: 700;
  font-size: .95rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.btn-hero-primary:hover { background: #f1f5f9; color: var(--primary-dark); transform: translateY(-2px); }
.btn-hero-secondary {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
  border-radius: 12px;
  padding: .9rem 1.8rem;
  font-weight: 700;
  font-size: .95rem;
  backdrop-filter: blur(4px);
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.22); color: #fff; }

/* ═══ FRANJA INFO ═══ */
.info-strip {
  background: #fff;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--border);
  margin-top: -1px;
}
.info-item {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.info-item i { font-size: 1.4rem; color: var(--primary); flex-shrink: 0; }
.info-item div { display: flex; flex-direction: column; }
.info-item strong { font-size: .82rem; color: var(--dark); }
.info-item span { font-size: .78rem; color: var(--muted); }

/* ═══ SECTION TITLE ═══ */
.section-title { text-align: center; max-width: 560px; margin: 0 auto 3rem; }
.section-eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .6rem;
}
.section-title h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .7rem; }
.section-title p { color: var(--muted); font-size: 1rem; }
.google-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .8rem;
  color: var(--primary);
  font-weight: 600;
  font-size: .88rem;
  text-decoration: none;
}
.google-link:hover { text-decoration: underline; }

/* ═══ MÉDICOS ═══ */
.section-medicos { padding: 5.5rem 0; background: #f8fafc; }
.medico-card-web {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: transform .2s, box-shadow .2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.medico-card-web:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(37,99,235,.16);
}
.medico-card-foto-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 14px 14px 0;
}
.medico-foto-web {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  /* Bordes difuminados: la imagen se desvanece hacia afuera */
  -webkit-mask-image: radial-gradient(ellipse 92% 92% at 50% 42%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 92% 92% at 50% 42%, #000 62%, transparent 100%);
}
.medico-avatar-web {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 3.2rem;
  -webkit-mask-image: radial-gradient(ellipse 92% 92% at 50% 42%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 92% 92% at 50% 42%, #000 62%, transparent 100%);
}
.medico-nombre-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 3.5rem 1.15rem .95rem;
  text-align: center;
  background: linear-gradient(0deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.8) 45%, transparent 100%);
}
.medico-nombre-overlay h5 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--dark);
  font-size: 1.28rem;
  line-height: 1.18;
  margin-bottom: .35rem;
  letter-spacing: -.01em;
}
.medico-nombre-overlay .medico-esp-web {
  color: var(--primary);
  opacity: 1;
  margin-bottom: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .07em;
}
.medico-card-body-web { padding: .5rem 1.2rem 1rem; flex: 1; text-align: center; }
.medico-esp-web { color: var(--primary); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .3rem; }
.medico-mat-web { color: var(--muted); font-size: .76rem; margin-bottom: .6rem; }
.medico-desc-web { color: var(--muted); font-size: .85rem; line-height: 1.5; text-align: left; }
.medico-card-footer-web {
  display: flex;
  gap: .5rem;
  padding: 1rem 1.2rem;
  border-top: 1px solid var(--border);
}
.btn-medico-turno, .btn-medico-wa, .btn-medico-ig, .btn-medico-google {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
  text-decoration: none;
  transition: transform .15s;
}
.btn-medico-turno:hover, .btn-medico-wa:hover, .btn-medico-ig:hover, .btn-medico-google:hover { transform: scale(1.08); color: #fff; }
.btn-medico-turno { background: var(--primary); flex: 1; }
.btn-medico-wa { background: var(--wa-green); }
.btn-medico-ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.btn-medico-google { background: #4285f4; }

/* ═══ NOSOTROS ═══ */
.section-nosotros { padding: 5.5rem 0; }
.section-nosotros h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: .5rem 0 1.2rem; }
.lead-text { color: var(--muted); font-size: 1.02rem; line-height: 1.75; }
.stat-box {
  background: var(--primary-light);
  border-radius: 14px;
  padding: 1.3rem;
  text-align: center;
}
.stat-box i { font-size: 1.6rem; color: var(--primary); margin-bottom: .5rem; display: block; }
.stat-box strong { display: block; font-size: 1.5rem; color: var(--dark); font-weight: 800; }
.stat-box span { color: var(--muted); font-size: .82rem; }
.nosotros-img-wrap {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border-radius: 24px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nosotros-img-wrap i { font-size: 6rem; color: rgba(255,255,255,.35); }

/* ═══ RESEÑAS ═══ */
.section-resenas { padding: 5.5rem 0; background: #f8fafc; }
.resena-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.6rem;
  height: 100%;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.resena-stars i { color: #fbbf24; font-size: .95rem; }
.resena-card p { color: var(--text); font-size: .92rem; line-height: 1.6; margin: .8rem 0; font-style: italic; }
.resena-autor { color: var(--muted); font-size: .82rem; font-weight: 600; }

/* ═══ FOOTER ═══ */
.footer-web { background: var(--dark); color: #cbd5e1; padding: 4rem 0 1.5rem; }
.footer-web h5, .footer-web h6 { color: #fff; }
.footer-web h6 { font-size: .95rem; margin-bottom: 1rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .7rem; font-size: .87rem; color: #94a3b8; }
.footer-list a { color: #94a3b8; text-decoration: none; }
.footer-list a:hover { color: #fff; }
.footer-social {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none;
  transition: background .15s;
}
.footer-social:hover { background: var(--primary); color: #fff; }
.footer-divider { border-color: rgba(255,255,255,.1); margin: 2rem 0 1.5rem; }

/* ═══ BOTÓN FLOTANTE WHATSAPP ═══ */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px; height: 60px;
  background: var(--wa-green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 20px rgba(37,211,102,.5);
  z-index: 999;
  animation: pulse-wa 2.5s infinite;
  text-decoration: none;
}
.wa-float:hover { color: #fff; transform: scale(1.08); }
@keyframes pulse-wa {
  0%   { box-shadow: 0 6px 20px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,.5); }
  70%  { box-shadow: 0 6px 20px rgba(37,211,102,.5), 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 6px 20px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,0); }
}

@media (max-width: 991px) {
  .navbar-collapse { background:#fff; padding:1rem; border-radius:12px; margin-top:.5rem; box-shadow:0 4px 20px rgba(0,0,0,.08); }
  .hero-banner { text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-content .d-flex { justify-content: center; }
}

/* ═══ MAPA ═══ */
.section-mapa { padding: 5.5rem 0; }
.mapa-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  height: 420px;
  border: 1px solid var(--border);
}

/* ═══ Imagen "Sobre nosotros" con bordes difusos ═══ */
.nosotros-img-blob {
  position: relative;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nosotros-img-blob::before {
  content: '';
  position: absolute;
  inset: -6%;
  background: radial-gradient(circle, var(--primary) 0%, #7c3aed 100%);
  opacity: .18;
  filter: blur(40px);
  border-radius: 40% 60% 55% 45% / 55% 45% 60% 40%;
}
.nosotros-img-blob img {
  width: 92%;
  height: 92%;
  object-fit: cover;
  border-radius: 42% 58% 60% 40% / 50% 42% 58% 50%;
  box-shadow: 0 20px 50px rgba(26,86,219,.18);
  position: relative;
  z-index: 1;
  animation: blob-morph 9s ease-in-out infinite;
}
@keyframes blob-morph {
  0%, 100% { border-radius: 42% 58% 60% 40% / 50% 42% 58% 50%; }
  33%      { border-radius: 58% 42% 45% 55% / 40% 55% 45% 60%; }
  66%      { border-radius: 48% 52% 38% 62% / 60% 48% 52% 40%; }
}
