/* Marca Dra. Muelitas: se carga después del CSS de cada página.
   Base blanca, morado del logo como color de marca, azul marino para textos. */
:root {
  --brand: #ad529f;
  --brand-dark: #8e3f82;
  --ink: #232a5c;
  --muted: #5d6280;
  --sky: #57c7e5;
  --tint: #faf4f9;
  --line: #eee7ee;
  --primary: var(--brand);
  --blueMid: var(--brand);
  --light: #ffffff;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { background: #fff; font-family: "Poppins", Arial, sans-serif; color: var(--ink); overflow-x: hidden; }
.text-muted { color: var(--muted) !important; }

/* Botones */
.btn-marca, .btn-marca:focus {
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 22px;
  font-weight: 600;
}
.btn-marca:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); }
.btn-linea {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 8px 22px;
  font-weight: 600;
}
.btn-linea:hover { background: var(--ink); color: #fff; }
.btn-blanco, .btn-blanco:focus { background: #fff; color: var(--brand-dark); border-radius: 10px; font-weight: 600; padding: 10px 22px; }
.btn-blanco:hover { background: var(--tint); color: var(--brand-dark); transform: translateY(-2px); }

/* Navegación */
.main-nav { background: transparent; }
.main-nav.scrolled { background: #fff; box-shadow: 0 6px 20px rgba(35, 42, 92, 0.08); }
.nav-link { color: var(--ink) !important; }
.nav-link:hover, .nav-link.active { color: var(--brand) !important; }
.navbar-toggler { color: var(--ink) !important; }
.brand-img { width: 46px; height: 46px; border-radius: 50%; }
.brand-name { color: var(--ink); font-weight: 700; font-size: 1.2rem; white-space: nowrap; }
.offcanvas { background: #fff; }

/* Hero */
.hero-modern, .hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, #fff 0%, var(--tint) 55%, #f0f9fc 100%);
  border-radius: 0;
  color: var(--ink);
}
.hero-modern { padding: 130px 0 170px; }
.hero-section { min-height: 0; display: block; padding: 150px 0 140px; }
.hero-kicker { display: block; color: var(--brand-dark); font-weight: 600; margin-bottom: 8px; }
.hero-title { color: var(--ink); font-weight: 800; font-size: clamp(32px, 5vw, 48px); line-height: 1.15; }
.hero-desc { max-width: 460px; opacity: 1; font-size: 1.05rem; color: var(--muted); }
.hero-text { color: var(--muted); }
.hero-img { position: relative; left: 0; width: min(340px, 100%); padding: 0; }
.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 14px;
}
.hero-rating i { color: var(--brand); }
.rating-text { margin-left: 0; opacity: 1; font-size: 0.95rem; color: var(--ink); }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 110px; display: block; }
.wave-sky { fill: var(--sky); opacity: 0.55; }
.wave-page { fill: #fff; }

/* Formulario de cita */
.appointment-bar {
  background: #fff;
  position: relative;
  z-index: 3;
  margin-top: -70px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(35, 42, 92, 0.08);
}
.form-field { border-radius: 10px; height: 44px; }
.form-field:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(173, 82, 159, 0.2); }
.make-btn { background: var(--brand); color: #fff; border-radius: 10px; height: 44px; padding: 0 12px; }
.make-btn:hover { background: var(--brand-dark); color: #fff; opacity: 1; }

/* Secciones */
.tag, .faq-tag { color: var(--brand-dark); font-weight: 600; }
.feature-item, .service-card, .solution-card, .team-card, .why-team-box, .price-card {
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(35, 42, 92, 0.05);
}
.feature-item { height: 100%; background: #fff; border-radius: 18px; padding: 28px 24px; }
.feature-item p, .service-card p, .solution-card p { color: var(--muted); }
.feature-icon, .service-card i, .why-team-box i, .why-list i { color: var(--brand); }
.read-link { color: var(--brand-dark); }

/* Aviso del reto en la portada */
.reto-teaser {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--tint);
  border-radius: 22px;
  padding: 26px 34px;
}
.reto-teaser img { width: 130px; flex: none; }
.reto-teaser p { color: var(--muted); }

.visit-img { width: 100%; border-radius: 18px; height: 340px; object-fit: cover; }
.visit-list { list-style: none; padding: 0; margin: 0; }
.visit-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.visit-list i { color: var(--brand); font-size: 1.15rem; }
.visit-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.visit-qr { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.visit-qr img { width: 96px; height: 96px; }
.visit-qr p { margin: 0; font-size: 0.9rem; color: var(--muted); }

.stats-box { background: var(--tint); color: var(--ink); }
.stats-icon { color: var(--brand); }
.counter { color: var(--ink); }
.stats-label { margin: 0; color: var(--muted); }
.accordion-button { background: #fff; color: var(--ink); }
.accordion-button:not(.collapsed) { color: var(--brand-dark); background: var(--tint); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 3px rgba(173, 82, 159, 0.25); }
.accordion-header { margin: 0; }
.accordion-item { border-color: var(--line); }

.cta-box, .appointment-box { background: var(--brand); }
.cta-box { position: relative; overflow: hidden; padding: 32px 35px 32px 190px; min-height: 180px; }
.cta-mascota { position: absolute; left: 56px; bottom: 10px; width: 98px; }
.cta-text { flex: 1; }
.cta-action { flex: none; }

.appointment-box { height: 100%; min-height: 280px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.appointment-box > * { position: relative; z-index: 1; }
.appointment-sub { color: #fff; }
.equal-img { height: 280px; }
.link-primary, .solution-link, .team-link { color: var(--brand-dark) !important; }
.solution-icon { background: var(--brand); }
.price-card { height: 100%; }
.price { font-size: 30px; color: var(--brand-dark); }
.price-btn { background: var(--brand); color: #fff; }
.price-btn:hover { background: var(--brand-dark); color: #fff; }
.team-img { object-fit: cover; height: 130px; width: 130px; }
.service-card, .solution-card { height: 100%; }

/* Pie de página */
.footer-section { background: #fff; border-top: 1px solid var(--line); }
.footer-brand { color: var(--ink); font-size: 1.1rem; }
.footer-hours { color: var(--muted); font-size: 0.9rem; margin: 0; }
.footer-links a:hover { color: var(--brand); }
.footer-contact li { display: flex; gap: 6px; color: var(--muted); }
.footer-contact i { color: var(--brand); }
.footer-contact a { color: var(--muted); text-decoration: none; }
.footer-contact a:hover { color: var(--brand); }

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1030;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.wa-float:hover { color: #fff; transform: scale(1.06); }

@media (max-width: 767.98px) {
  .hero-img { width: min(260px, 80%); margin-top: 28px; }
  .hero-modern { padding-bottom: 150px; }
  .hero-section { padding: 130px 0 120px; }
  .hero-wave { height: 70px; }
  .appointment-bar { width: calc(100% - 32px); }
  .visit-img { height: 240px; }
  .appointment-box { border-radius: 22px 22px 0 0; min-height: 0; }
  .equal-img { border-radius: 0 0 22px 22px; height: 220px; }
  .cta-box { padding: 28px 22px 190px; text-align: center; }
  .cta-mascota { left: 50%; transform: translateX(-50%); width: 98px; bottom: 12px; }
  .reto-teaser { flex-direction: column; text-align: center; padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
