/* ============================================================
   CLÍNICA SAN XAVIER — Capa de decoración
   Se carga después de redesign.css y reintroduce color, mascota,
   iconografía e ilustraciones sobre la base editorial existente.
   ============================================================ */

/* ---------- Utilidades generales ---------- */
.pill-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-2-bg);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: var(--space-4);
}
.pill-label img { width: 16px; height: 16px; }
.pill-label--pink { color: #E56C8A; background: var(--pink); }
.pill-heart { color: #F08BA6; font-size: 0.9em; }

.hero-title-accent { color: var(--color-accent); }

.deco-leaf {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

/* ---------- Hero ---------- */
.hero { overflow: hidden; display: block; min-height: 0; padding-top: clamp(4rem, 10vw, 8rem); }
.hero-eyebrow { display: flex; align-items: center; gap: 6px; }
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}
.hero-visual-blob {
  position: absolute;
  inset: 6% 8%;
  background: radial-gradient(circle at 35% 30%, var(--pink) 0%, var(--color-accent-2-bg) 70%);
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  z-index: 0;
}
.hero-visual-dots {
  position: absolute;
  width: 90px; height: 60px;
  background-image: radial-gradient(var(--color-accent-2) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: 0.35;
  z-index: 0;
}
.hero-visual-dots--tl { top: -4%; right: 6%; }
.hero-visual-dots--br { bottom: 2%; left: 0%; }
.hero-mascot {
  position: relative;
  z-index: 1;
  max-width: 78%;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(35, 74, 150, 0.18));
}
.hero-trust-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin: var(--space-7) 0 0;
  padding: var(--space-5) 0 0;
  border-top: 1px solid var(--color-border);
}
.hero-trust-row li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}
.hero-trust-row img { width: 34px; height: 34px; }
.hero-values-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  max-width: 1180px;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  padding: var(--space-6) var(--space-6) 0;
  border-top: 1px solid var(--color-border);
}
.hero-values-row li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-values-row img { width: 44px; height: 44px; flex-shrink: 0; }
.hero-values-row span {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-charcoal);
}

/* ---------- Nosotros ---------- */
.about { position: relative; overflow: hidden; }
.deco-leaf--about-left { top: 8%; left: -1%; width: 90px; transform: rotate(-8deg); }
.deco-leaf--about-right { bottom: 4%; right: -1%; width: 90px; transform: scaleX(-1) rotate(-6deg); }
.about-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 420px;
  max-width: 460px;
  margin: 0 auto;
}
.about-image-blob {
  position: absolute;
  inset: 4% 12%;
  background: radial-gradient(circle at 60% 40%, var(--color-accent-2-bg) 0%, var(--pink) 75%);
  border-radius: 55% 45% 50% 50% / 45% 55% 45% 55%;
  z-index: 0;
}
.about-mascot {
  position: relative;
  z-index: 1;
  max-height: 90%;
  width: auto;
  max-width: 90%;
  filter: drop-shadow(0 14px 24px rgba(35, 74, 150, 0.16));
}

/* ---------- Cómo funciona ---------- */
.how-it-works { position: relative; overflow: hidden; }
.deco-leaf--how-left { top: 6%; left: 0; width: 80px; transform: rotate(10deg); opacity: 0.6; }
.deco-leaf--how-right { bottom: 4%; right: 0; width: 80px; transform: scaleX(-1) rotate(6deg); opacity: 0.6; }
.how-it-works-header { position: relative; }
.how-mascot {
  position: absolute;
  top: -0.5rem; right: 0;
  width: 110px;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(35, 74, 150, 0.15));
}
.steps {
  border-top: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-bottom: none;
  border-radius: 20px;
  background: var(--color-warm-white);
  box-shadow: 0 10px 24px rgba(35, 74, 150, 0.05);
}
.step-icon-mascot {
  width: 68px; height: 68px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.step-icon-mascot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.step--pink { border-top: 4px solid #F08BA6; }
.step--blue { border-top: 4px solid var(--color-accent-2); }
.step--green { border-top: 4px solid var(--color-accent); }
.step-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.step--pink .step-number { color: #F08BA6; }
.step--blue .step-number { color: var(--color-accent-2); }
.step--green .step-number { color: var(--color-accent); }
.how-it-works-note {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  background: var(--color-accent-2-bg);
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}
.how-it-works-note a { color: var(--color-accent); font-weight: 600; }

/* ---------- Especialidades ---------- */
.specialties { position: relative; overflow: hidden; }
.deco-leaf--spec-left { top: 4%; left: 0; width: 90px; transform: rotate(-6deg); opacity: 0.55; }
.deco-leaf--spec-right { bottom: 2%; right: 0; width: 90px; transform: scaleX(-1) rotate(8deg); opacity: 0.55; }
.specialties-grid {
  border-top: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
.specialty-card {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: var(--space-5);
  margin: 0;
  padding: var(--space-6);
  border: none;
  border-radius: 20px;
  background: var(--color-warm-white);
  box-shadow: 0 10px 24px rgba(35, 74, 150, 0.05);
  position: relative;
}
.specialty-card:hover { background: var(--color-warm-white); box-shadow: 0 14px 28px rgba(35, 74, 150, 0.1); }
.specialty-icon-mascot {
  width: 68px; height: 68px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.specialty-icon-mascot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.specialty-body { grid-column: 2; }
.specialty-marker { display: block; margin-bottom: var(--space-2); }
.specialty-description { max-width: none; }
.specialty-tag-icon {
  position: absolute;
  top: var(--space-5); right: var(--space-5);
  width: 34px; height: 34px;
}

/* ---------- Testimonios ---------- */
.testimonials { position: relative; overflow: hidden; }
.testimonials-grid { gap: clamp(2rem, 5vw, 2.5rem); }
.testimonial-card {
  position: relative;
  border-top: none !important;
  padding: var(--space-7) var(--space-6) var(--space-6);
  border-radius: 22px;
  overflow: hidden;
}
.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
}
.testimonial-card--pink { background: var(--pink); }
.testimonial-card--pink::before { background: #F08BA6; }
.testimonial-card--blue { background: var(--color-accent-2-bg); }
.testimonial-card--blue::before { background: var(--color-accent-2); }
.testimonial-card--green { background: var(--color-blue-muted); }
.testimonial-card--green::before { background: var(--color-accent); }
.testimonial-quote {
  display: block;
  font-family: Georgia, serif;
  font-size: 4.5rem;
  line-height: 0.6;
  color: rgba(35, 74, 150, 0.28);
  margin-bottom: 0.75rem;
}
.testimonial-avatar--initials { box-shadow: 0 4px 10px rgba(35, 74, 150, 0.2); }
.deco-leaf--testi-left { top: 2%; left: -1%; width: 80px; transform: rotate(14deg); opacity: 0.5; }
.deco-leaf--testi-right { bottom: -2%; right: -1%; width: 80px; transform: scaleX(-1) rotate(-10deg); opacity: 0.5; }
.testimonials-divider { display: block; width: 130px; height: auto; margin: var(--space-4) 0 0; }

/* ---------- FAQ ---------- */
.faq { position: relative; overflow: hidden; }
.deco-leaf--faq { top: 4%; right: 0; width: 80px; transform: scaleX(-1) rotate(-10deg); opacity: 0.5; }
.faq-item {
  background: var(--color-warm-white) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 16px !important;
  margin-bottom: var(--space-3);
  padding: 0 var(--space-5);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item:hover { border-color: var(--color-accent-2) !important; box-shadow: 0 8px 20px rgba(35, 74, 150, 0.06); }
.faq-list { border-top: none; }

/* ---------- CTA final ---------- */
.cta-section { position: relative; overflow: hidden; }
.cta-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: var(--space-6);
  max-width: 60ch;
  max-width: 1180px;
}
.cta-content { max-width: 52ch; }
.pill-label--onaccent {
  color: var(--color-warm-white);
  background: rgba(255,255,255,0.16);
}
.cta-dots {
  position: absolute;
  width: 140px; height: 100px;
  background-image: radial-gradient(rgba(255,255,255,0.5) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  opacity: 0.5;
  pointer-events: none;
}
.cta-dots--tl { top: 4%; left: 2%; }
.cta-dots--br { bottom: 4%; right: 40%; }
.cta-visual { display: flex; align-items: center; justify-content: center; }
.cta-mascot {
  max-width: 240px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,0.18));
}

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; }
.footer-brand-container { display: flex; align-items: center; gap: 10px; }

/* ---------- Botón flotante de WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4), 0 2px 8px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.5), 0 4px 10px rgba(0, 0, 0, 0.14);
}
.whatsapp-float-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.55;
  animation: whatsapp-pulse 2.2s ease-out infinite;
  z-index: -1;
}
@keyframes whatsapp-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  70% { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}
@media (max-width: 900px) {
  .whatsapp-float { width: 52px; height: 52px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float-ping { animation: none; display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-values-row { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .specialties-grid { grid-template-columns: 1fr; }
  .how-mascot { display: none; }
  .deco-leaf { display: none; }
  .cta-container { grid-template-columns: 1fr; text-align: center; }
  .cta-content { max-width: none; margin: 0 auto; }
  .cta-visual { display: none; }
  .hero-cta { flex-wrap: wrap; row-gap: var(--space-3); }
  .about-principle {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
  .about-principle dt { font-size: var(--font-size-md); }
}