/* ==========================================================================
   BIENESTAR INTEGRAL - Landing Page de Mantenimiento y Citas
   Tema Blanco & Pastel Cálido: Serenidad, Claridad y Confianza Terapéutica
   ========================================================================== */

:root {
  /* Fondo Blanco / Pastel Cálido */
  --bg-base: #fbfdfc;
  --bg-surface: rgba(255, 255, 255, 0.88);
  --bg-surface-hover: rgba(255, 255, 255, 0.98);
  --card-border: rgba(13, 148, 136, 0.16);
  --card-border-glow: rgba(13, 148, 136, 0.45);
  
  /* Acentos Clínicos y Cálidos */
  --primary-teal: #0d9488;
  --primary-teal-dark: #0f766e;
  --primary-cyan: #0284c7;
  --primary-indigo: #6366f1;
  --primary-rose: #e11d48;
  --whatsapp-green: #25d366;
  --whatsapp-hover: #1eb956;

  /* Tipografía de Alto Contraste y Legibilidad */
  --text-main: #0f172a;
  --text-heading: #091e36;
  --text-muted: #475569;
  --text-dim: #64748b;
  --text-highlight: #0f766e;

  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-full: 9999px;

  --shadow-card: 0 12px 32px -8px rgba(15, 23, 42, 0.07), 0 0 0 1px rgba(255, 255, 255, 0.8);
  --shadow-card-hover: 0 20px 42px -10px rgba(13, 148, 136, 0.16), 0 0 0 1px rgba(13, 148, 136, 0.25);
  --shadow-btn: 0 10px 25px -4px rgba(13, 148, 136, 0.35);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  /* Fondo Pastel Multitonal Suave y Terapéutico */
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(204, 251, 241, 0.65) 0%, transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(224, 242, 254, 0.65) 0%, transparent 45%),
    radial-gradient(circle at 50% 45%, rgba(248, 250, 252, 0.8) 0%, transparent 55%),
    radial-gradient(circle at 85% 70%, rgba(237, 233, 254, 0.5) 0%, transparent 50%),
    radial-gradient(circle at 15% 85%, rgba(254, 243, 199, 0.45) 0%, transparent 45%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   HEADER & NAVEGACIÓN (Blanco Pulido)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(13, 148, 136, 0.12);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px;
  max-width: 46px;
  border-radius: 50%;
  background: #ffffff;
  padding: 3px;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.2);
  border: 1px solid rgba(13, 148, 136, 0.2);
  object-fit: contain;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--text-heading);
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.76rem;
  color: var(--primary-teal-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  display: block;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.22);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--primary-teal-dark);
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-teal);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(13, 148, 136, 0.6);
  animation: pulseDot 2.2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.35); opacity: 0.45; }
}

/* Banner de Mantenimiento */
.maintenance-banner {
  background: linear-gradient(90deg, #ecfdf5, #f0fdfa, #eff6ff);
  border-bottom: 1px solid rgba(13, 148, 136, 0.16);
  padding: 0.7rem 1rem;
  text-align: center;
  font-size: 0.88rem;
  color: #1e293b;
}

.maintenance-banner strong {
  color: var(--primary-teal-dark);
  font-weight: 700;
}

/* ==========================================================================
   HERO SECTION - CEREBRO INTERACTIVO 3D Y MENSAJE DE CONFIANZA
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 2rem 0 4.5rem 0;
  text-align: center;
  overflow: hidden;
}

.brain-visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 700px;
  height: 420px;
  margin: 0 auto 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

#brain-canvas-container {
  width: 100%;
  height: 100%;
  cursor: grab;
}

#brain-canvas-container:active {
  cursor: grabbing;
}

.canvas-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(13, 148, 136, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-teal-dark);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  pointer-events: none;
}

.canvas-hint svg {
  color: var(--primary-teal);
  animation: floatHand 2s infinite ease-in-out;
}

@keyframes floatHand {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Caja del Mensaje Emocional */
.hero-content {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.quote-box {
  background: var(--bg-surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2.2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card), 0 10px 30px rgba(13, 148, 136, 0.05);
  position: relative;
  margin-bottom: 2.2rem;
}

.quote-box::before {
  content: '“';
  position: absolute;
  top: -20px;
  left: 30px;
  font-size: 5rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--primary-teal);
  opacity: 0.25;
  pointer-events: none;
}

.hero-main-phrase {
  font-size: 1.36rem;
  line-height: 1.7;
  color: #1e293b;
  font-weight: 500;
  margin-bottom: 1.15rem;
  letter-spacing: -0.01em;
}

.hero-main-phrase strong {
  color: var(--text-heading);
  font-weight: 700;
}

.hero-sub-phrase {
  font-size: 1.16rem;
  line-height: 1.6;
  color: var(--primary-teal-dark);
  font-weight: 600;
  margin-bottom: 1.4rem;
}

.hero-motto-tag {
  display: inline-block;
  padding: 0.45rem 1.4rem;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(2, 132, 199, 0.1));
  border: 1px solid rgba(13, 148, 136, 0.28);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-teal-dark);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Botón Grande de Agendar Cita (Hero CTA) */
.hero-cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1rem;
}

.btn-cta-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.15rem 2.8rem;
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #0d9488 0%, #0284c7 60%, #4f46e5 100%);
  border: none;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-btn), 0 6px 24px rgba(2, 132, 199, 0.35);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-cta-large::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(25deg);
  animation: shimmerBtn 4s infinite linear;
}

@keyframes shimmerBtn {
  0% { transform: translateX(-100%) rotate(25deg); }
  100% { transform: translateX(100%) rotate(25deg); }
}

.btn-cta-large:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 36px -4px rgba(13, 148, 136, 0.45), 0 8px 25px rgba(2, 132, 199, 0.35);
  color: #ffffff;
}

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

.btn-cta-large svg {
  width: 26px;
  height: 26px;
}

.cta-subtext {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   SECCIÓN: NUESTROS PILARES FUNDAMENTALES (3 COLUMNAS)
   ========================================================================== */
.pillars-section {
  padding: 4rem 0 5.5rem 0;
  position: relative;
  border-top: 1px solid rgba(13, 148, 136, 0.1);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary-teal);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.45rem;
}

.section-title {
  font-size: 2.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin-bottom: 0.55rem;
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.doctor-card {
  background: var(--bg-surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.doctor-card:hover {
  transform: translateY(-7px);
  border-color: var(--card-border-glow);
  box-shadow: var(--shadow-card-hover);
  background: var(--bg-surface-hover);
}

.doctor-avatar-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
  margin-bottom: 1.2rem;
}

.doctor-avatar-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.4), rgba(2, 132, 199, 0.4));
  opacity: 0.6;
  filter: blur(8px);
  transition: opacity 0.3s ease;
}

.doctor-card:hover .doctor-avatar-glow {
  opacity: 0.9;
  filter: blur(12px);
}

.doctor-photo {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3.5px solid #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
  background: #f1f5f9;
  z-index: 2;
}

.doctor-name {
  font-size: 1.26rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.doctor-specialty-badge {
  display: inline-block;
  padding: 0.28rem 0.8rem;
  background: rgba(13, 148, 136, 0.09);
  border: 1px solid rgba(13, 148, 136, 0.22);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-teal-dark);
  margin-bottom: 1rem;
}

.doctor-description {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.2rem;
}

/* Bloque de Servicios Reales */
.doctor-services-wrapper {
  width: 100%;
  text-align: left;
  background: rgba(248, 250, 252, 0.85);
  border: 1px solid rgba(13, 148, 136, 0.14);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  margin-bottom: 1.4rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.services-heading {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--primary-teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
}

.doctor-services-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  margin: 0;
  padding: 0;
}

.doctor-services-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.38;
}

.service-check-icon {
  width: 13px;
  height: 13px;
  color: var(--primary-teal);
  flex-shrink: 0;
  margin-top: 2px;
}

.btn-doctor-action {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.2rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary-teal-dark);
  background: rgba(13, 148, 136, 0.07);
  border: 1px solid rgba(13, 148, 136, 0.24);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-doctor-action:hover {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.18), rgba(2, 132, 199, 0.18));
  border-color: var(--primary-teal);
  color: var(--text-heading);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.14);
}

.btn-doctor-action svg {
  width: 17px;
  height: 17px;
  color: var(--primary-teal);
}

/* ==========================================================================
   MODAL POP-UP FORMULARIO DE AGENDAMIENTO (Blanco Pulido)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.8);
  position: relative;
  transform: scale(0.92) translateY(18px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-overlay.is-active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 1.8rem 2rem 1.2rem 2rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: #fafcfb;
}

.modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}

.modal-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.modal-close-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.modal-close-btn:hover {
  background: #ffe4e6;
  border-color: #fca5a5;
  color: var(--primary-rose);
}

.modal-body {
  padding: 1.8rem 2rem 2rem 2rem;
}

.form-group {
  margin-bottom: 1.35rem;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.45rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary-teal);
  background: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(13, 148, 136, 0.16);
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
  display: block;
}

.btn-submit-modal {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem 1.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--whatsapp-green) 0%, #16a34a 100%);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-submit-modal:hover {
  background: linear-gradient(135deg, #2ae772 0%, #15803d 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
}

.btn-submit-modal svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.success-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  color: #15803d;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.floating-whatsapp-tooltip {
  background: #ffffff;
  border: 1px solid rgba(13, 148, 136, 0.25);
  color: var(--text-heading);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
  pointer-events: none;
}

.floating-whatsapp-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp-green);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.1) rotate(6deg);
  background: #2ae772;
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.55);
}

.floating-whatsapp-btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--whatsapp-green);
  opacity: 0.6;
  animation: rippleWhatsapp 2.4s infinite ease-out;
}

@keyframes rippleWhatsapp {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.floating-whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* ==========================================================================
   FOOTER (Blanco y Suave)
   ========================================================================== */
.site-footer {
  border-top: 1px solid rgba(13, 148, 136, 0.12);
  padding: 3rem 0 2.2rem 0;
  text-align: center;
  background: #ffffff;
}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-heading);
}

.footer-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 600px;
}

.footer-phone-link {
  color: var(--primary-teal-dark);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  transition: color 0.2s ease;
}

.footer-phone-link:hover {
  color: var(--primary-cyan);
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 1.2rem;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .doctor-card:last-child {
    grid-column: span 2;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* Contenedores y canvas */
  .brain-visual-wrapper {
    height: 300px;
    margin-bottom: 1rem;
  }
  .canvas-hint {
    font-size: 0.72rem;
    padding: 0.3rem 0.8rem;
  }

  /* Encabezado */
  .header-inner {
    padding: 0.65rem 0;
  }
  .brand-logo {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px;
    max-width: 38px;
  }
  .brand-name {
    font-size: 0.98rem;
  }
  .brand-subtitle {
    font-size: 0.66rem;
  }
  .status-badge {
    font-size: 0.74rem;
    padding: 0.32rem 0.75rem;
  }
  .maintenance-banner {
    font-size: 0.78rem;
    padding: 0.5rem 0.8rem;
  }

  /* Hero: Textos y Citas (-3 puntos) */
  .quote-box {
    padding: 1.5rem 1.25rem;
    margin-bottom: 1.6rem;
  }
  .quote-box::before {
    font-size: 3.6rem;
    top: -14px;
    left: 18px;
  }
  .hero-main-phrase {
    font-size: 1.05rem; /* bajado de 1.36rem */
    line-height: 1.55;
    margin-bottom: 0.9rem;
  }
  .hero-sub-phrase {
    font-size: 0.94rem; /* bajado de 1.16rem */
    line-height: 1.5;
    margin-bottom: 1.1rem;
  }
  .hero-motto-tag {
    font-size: 0.82rem; /* bajado de 0.95rem */
    padding: 0.35rem 1rem;
  }
  .btn-cta-large {
    padding: 0.92rem 2rem;
    font-size: 0.98rem; /* bajado de 1.18rem */
    width: 100%;
    max-width: 310px;
  }
  .btn-cta-large svg {
    width: 22px;
    height: 22px;
  }
  .cta-subtext {
    font-size: 0.76rem;
  }

  /* Sección Médicos / Pilares (-3 puntos) */
  .pillars-section {
    padding: 3rem 0 4rem 0;
  }
  .section-header {
    margin-bottom: 2rem;
  }
  .section-tag {
    font-size: 0.68rem;
  }
  .section-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  .section-subtitle {
    font-size: 0.86rem;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .doctor-card {
    padding: 1.6rem 1.25rem;
  }
  .doctor-avatar-wrapper {
    width: 110px;
    height: 110px;
    margin-bottom: 0.95rem;
  }
  .doctor-name {
    font-size: 1.12rem;
    line-height: 1.3;
  }
  .doctor-specialty-badge {
    font-size: 0.66rem;
    padding: 0.24rem 0.65rem;
    margin-bottom: 0.8rem;
  }
  .doctor-description {
    font-size: 0.76rem;
    line-height: 1.5;
    margin-bottom: 1.1rem;
  }
  .doctor-services-wrapper {
    padding: 0.75rem 0.85rem;
    margin-bottom: 1.1rem;
  }
  .services-heading {
    font-size: 0.62rem;
    margin-bottom: 0.5rem;
  }
  .doctor-services-list {
    gap: 0.35rem;
  }
  .doctor-services-list li {
    font-size: 0.68rem;
    gap: 0.4rem;
    line-height: 1.35;
  }
  .service-check-icon {
    width: 11px;
    height: 11px;
    margin-top: 2px;
  }
  .btn-doctor-action {
    font-size: 0.78rem;
    padding: 0.68rem 1rem;
  }

  /* Modal (-3 puntos) */
  .modal-title {
    font-size: 1.25rem;
  }
  .modal-subtitle {
    font-size: 0.80rem;
  }
  .modal-header {
    padding: 1.4rem 1.5rem 1rem 1.5rem;
  }
  .modal-body {
    padding: 1.4rem 1.5rem 1.6rem 1.5rem;
  }
  .form-label {
    font-size: 0.80rem;
  }
  .form-input, .form-select, .form-textarea {
    font-size: 0.88rem;
    padding: 0.75rem 0.85rem;
  }
  .btn-submit-modal {
    font-size: 0.94rem;
    padding: 0.85rem 1.2rem;
  }

  /* Footer */
  .footer-brand {
    font-size: 1.0rem;
  }
  .footer-text {
    font-size: 0.82rem;
  }
  .footer-phone-link {
    font-size: 0.86rem;
  }
  .footer-copy {
    font-size: 0.72rem;
  }

  .floating-whatsapp-tooltip {
    display: none;
  }
  .floating-whatsapp {
    bottom: 16px;
    right: 16px;
  }
  .floating-whatsapp-btn {
    width: 52px;
    height: 52px;
  }
  .floating-whatsapp-btn svg {
    width: 28px;
    height: 28px;
  }
}

/* ==========================================================================
   PANTALLAS MÓVILES PEQUEÑAS Y MICROS (< 480px y < 360px)
   ========================================================================== */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  .container {
    padding: 0 1rem;
  }
  .brand-logo {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px;
    max-width: 34px;
  }
  .brand-name {
    font-size: 0.88rem;
  }
  .brand-subtitle {
    font-size: 0.60rem;
  }
  .status-badge {
    font-size: 0.68rem;
    padding: 0.25rem 0.6rem;
  }
  .hero-main-phrase {
    font-size: 0.96rem;
  }
  .hero-sub-phrase {
    font-size: 0.86rem;
  }
  .hero-motto-tag {
    font-size: 0.74rem;
    padding: 0.3rem 0.85rem;
  }
  .section-title {
    font-size: 1.42rem;
  }
  .section-subtitle {
    font-size: 0.86rem;
  }
  .doctor-name {
    font-size: 1.02rem;
  }
  .doctor-description {
    font-size: 0.72rem;
  }
  .doctor-services-list li {
    font-size: 0.65rem;
  }
  .btn-cta-large {
    font-size: 0.90rem;
    padding: 0.85rem 1.5rem;
  }
}

@media (max-width: 360px) {
  html {
    font-size: 14px;
  }
  .brand-name {
    font-size: 0.82rem;
  }
  .section-title {
    font-size: 1.28rem;
  }
  .hero-main-phrase {
    font-size: 0.88rem;
  }
  .btn-cta-large {
    font-size: 0.84rem;
  }
}

/* ==========================================================================
   WIDGET DE CHAT ASISTENTE EMOCIONAL (SERENA IA)
   ========================================================================== */
.floating-chat-trigger {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.35rem;
  background: linear-gradient(135deg, #0d9488 0%, #0284c7 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(13, 148, 136, 0.35);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-chat-trigger:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 32px rgba(13, 148, 136, 0.45);
}

.floating-chat-trigger.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

.chat-trigger-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #a7f3d0;
  box-shadow: 0 0 10px #34d399;
  animation: pulseDot 2s infinite ease-in-out;
}

.crisis-chat-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 95;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 48px);
  background: #ffffff;
  border: 1px solid rgba(13, 148, 136, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 55px -12px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.92) translateY(24px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.crisis-chat-container.is-open {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

/* Header del Chat */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.15rem;
  background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 100%);
  border-bottom: 1px solid rgba(13, 148, 136, 0.14);
}

.chat-header-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-avatar-status {
  position: relative;
}

.chat-serena-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488, #0284c7);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.chat-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.chat-serena-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-heading);
}

.chat-serena-role {
  font-size: 0.75rem;
  color: var(--primary-teal-dark);
  font-weight: 600;
  display: block;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-header-wa-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  border-radius: var(--radius-full);
  color: #15803d;
  font-size: 0.74rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.chat-header-wa-link:hover {
  background: #25d366;
  color: #ffffff;
}

.chat-header-close {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-header-close:hover {
  background: #fee2e2;
  color: var(--primary-rose);
  border-color: #fca5a5;
}

/* Chips de Sugerencias */
.chat-chips-scroll {
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  overflow-x: auto;
  white-space: nowrap;
  background: #fafcfb;
  border-bottom: 1px solid #f1f5f9;
  scrollbar-width: none;
}

.chat-chips-scroll::-webkit-scrollbar {
  display: none;
}

.chat-chip {
  padding: 0.32rem 0.75rem;
  background: #ffffff;
  border: 1px solid rgba(13, 148, 136, 0.22);
  border-radius: var(--radius-full);
  color: var(--primary-teal-dark);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.chat-chip:hover {
  background: #0d9488;
  color: #ffffff;
  border-color: #0d9488;
}

/* Cuerpo de Mensajes */
.chat-messages-body {
  flex-grow: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: #fcfdfd;
}

.chat-message-row {
  display: flex;
  width: 100%;
}

.chat-message-row.user-row {
  justify-content: flex-end;
}

.chat-message-row.assistant-row {
  justify-content: flex-start;
}

.chat-bubble {
  max-width: 82%;
  padding: 0.75rem 0.95rem;
  font-size: 0.88rem;
  line-height: 1.5;
  border-radius: 14px;
  word-wrap: break-word;
}

.user-bubble {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #ffffff;
  border-bottom-right-radius: 3px;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

.assistant-bubble {
  background: #f1f5f9;
  color: var(--text-main);
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 3px;
}

/* Indicador de escritura */
.chat-typing-container {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 1rem;
  background: #f8fafc;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-teal);
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.typing-text {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-left: 0.3rem;
}

/* Barra de Entrada */
.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.chat-input-bar input {
  flex-grow: 1;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.chat-input-bar input:focus {
  border-color: var(--primary-teal);
}

.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--primary-teal);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  background: var(--primary-teal-dark);
  transform: scale(1.05);
}

.chat-footer-disclaimer {
  padding: 0.35rem 0.75rem;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-dim);
}

@media (max-width: 480px) {
  .floating-chat-trigger {
    bottom: 16px;
    left: 16px;
    padding: 0.65rem 0.95rem;
    font-size: 0.78rem;
  }
  .floating-chat-trigger svg {
    width: 18px;
    height: 18px;
  }
  .crisis-chat-container {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    height: 85vh;
    max-height: 85vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .chat-serena-name {
    font-size: 0.88rem;
  }
  .chat-serena-role {
    font-size: 0.66rem;
  }
  .chat-bubble {
    font-size: 0.80rem;
    padding: 0.65rem 0.8rem;
  }
  .chat-chip {
    font-size: 0.70rem;
    padding: 0.26rem 0.65rem;
  }
  .chat-input-bar input {
    font-size: 0.80rem;
    padding: 0.55rem 0.75rem;
  }
}

