/* ==========================================================================
   Espacio Dental — Estilos Principales (Tema Cósmico de Alta Especialidad)
   Identidad Galáctica: Morado / Púrpura → Azul / Cyan → Verde Esmeralda
   ========================================================================== */

:root {
  /* Paleta Cósmica Oficial (Espacio Profundo & Nebulosas) */
  --brand-purple: #a855f7;          /* Morado Nebulosa */
  --brand-purple-light: #c084fc;
  --brand-purple-glow: rgba(168, 85, 247, 0.32);

  --brand-blue: #008ccf;            /* Azul Oficial Logo (Pantone 109-7 C) */
  --brand-blue-light: #38bdf8;      /* Cyan Lanza Estelar */
  --brand-blue-glow: rgba(0, 140, 207, 0.36);

  --brand-green: #6bbe45;           /* Verde Oficial Logo (Pantone 154-8 C) */
  --brand-green-light: #86efac;     /* Verde Aurora */
  --brand-green-glow: rgba(107, 190, 69, 0.36);

  --primary: #6bbe45;
  --primary-hover: #58a036;
  --primary-light: #86efac;
  --primary-surface: rgba(107, 190, 69, 0.16);
  --primary-border: rgba(107, 190, 69, 0.35);

  --accent: #008ccf;
  --accent-light: #38bdf8;
  --accent-surface: rgba(0, 140, 207, 0.18);

  --whatsapp: #25d366;
  --whatsapp-hover: #1ebe5d;
  --whatsapp-glow: rgba(37, 211, 102, 0.35);

  /* Tipografía y Textos */
  --text-white: #ffffff;
  --text-main: #f8fafc;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Fondos y Superficies Cósmicas */
  --bg-void: #030208;
  --bg-deep: #050b16;
  --bg-main: #040913;
  --bg-subtle: rgba(10, 24, 48, 0.5);
  --bg-card: rgba(8, 20, 38, 0.76);
  --bg-card-hover: rgba(12, 28, 54, 0.88);
  --bg-glass: rgba(5, 14, 28, 0.85);

  /* Bordes & Resplandores */
  --border: rgba(125, 211, 252, 0.15);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.4);

  --success: #34d399;
  --success-surface: rgba(16, 185, 129, 0.16);
  --warning: #f59e0b;
  --warning-surface: rgba(245, 158, 11, 0.16);

  /* Sombras y Elevaciones */
  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 16px -2px rgba(0, 0, 0, 0.5), 0 2px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 28px -4px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --shadow-xl: 0 20px 40px -8px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  --shadow-glow-cyan: 0 0 32px -4px rgba(0, 140, 207, 0.45);
  --shadow-glow-purple: 0 0 32px -4px rgba(168, 85, 247, 0.4);
  --shadow-glow-green: 0 0 32px -4px rgba(107, 190, 69, 0.4);

  /* Radios */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-full: 9999px;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-w: 1200px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-void);
  color-scheme: dark;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-void);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body > *:not(.space-sky) {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Cielo Espacial & Nebulosas (Morado → Azul → Verde)
   ========================================================================== */
.space-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #060d1b 0%, #030209 100%);
}

/* Nebulosa Morada / Púrpura (Arriba a la Izquierda) */
.space-nebula--purple {
  position: absolute;
  width: 75vw;
  height: 65vh;
  top: -15%;
  left: -20%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.28) 0%, rgba(109, 40, 217, 0.12) 48%, transparent 72%);
  filter: blur(50px);
}

/* Nebulosa Azul / Cyan (Centro Derecha) */
.space-nebula--blue {
  position: absolute;
  width: 80vw;
  height: 70vh;
  top: 25%;
  right: -22%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 140, 207, 0.32) 0%, rgba(14, 116, 144, 0.14) 50%, transparent 75%);
  filter: blur(55px);
}

/* Nebulosa Verde Aurora (Abajo a la Izquierda / Centro) */
.space-nebula--green {
  position: absolute;
  width: 75vw;
  height: 60vh;
  bottom: -10%;
  left: -10%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(107, 190, 69, 0.24) 0%, rgba(16, 185, 129, 0.08) 48%, transparent 72%);
  filter: blur(50px);
}

/* Banda de Vía Láctea / Polvo Cósmico con Transición Morado → Azul → Verde */
.space-band {
  position: absolute;
  left: -20%;
  right: -20%;
  top: 32%;
  height: 220px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(168, 85, 247, 0.16) 20%,
    rgba(0, 140, 207, 0.18) 50%,
    rgba(107, 190, 69, 0.15) 80%,
    transparent 100%);
  transform: rotate(-14deg);
  filter: blur(35px);
}

/* Galaxias Espirales */
.space-galaxy {
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.25));
  opacity: 0.75;
}

.space-galaxy--a {
  width: min(620px, 65vw);
  height: min(620px, 65vw);
  right: -8%;
  top: 2%;
  background-image: url("assets/galaxy.svg");
  animation: galaxySpin 240s linear infinite;
}

.space-galaxy--b {
  width: min(420px, 48vw);
  height: min(420px, 48vw);
  left: -8%;
  bottom: 6%;
  background-image: url("assets/galaxy.svg");
  transform: scaleX(-1) rotate(35deg);
  opacity: 0.55;
  animation: galaxySpinReverse 300s linear infinite;
}

@keyframes galaxySpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes galaxySpinReverse {
  from { transform: scaleX(-1) rotate(35deg); }
  to { transform: scaleX(-1) rotate(-325deg); }
}

/* Capas de Estrellas */
.space-stars {
  position: absolute;
  inset: 0;
  background-image: url("assets/stars.svg");
  background-size: 680px 680px;
  background-repeat: repeat;
  opacity: 0.9;
}

.space-stars--drift {
  background-size: 960px 960px;
  background-position: 220px 110px;
  opacity: 0.45;
  animation: starDrift 140s linear infinite;
}

@keyframes starDrift {
  from { background-position: 220px 110px; }
  to { background-position: 1180px 1070px; }
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font: inherit;
  color: inherit;
}

/* ==========================================================================
   Utilidades y Componentes Comunes
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: 5.5rem;
  position: relative;
}

.section-subtle {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

/* Badges Cósmicos con Gradiente Morado → Azul → Verde */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.95rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(0, 140, 207, 0.15) 50%, rgba(107, 190, 69, 0.15) 100%);
  color: #a7f3d0;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 16px rgba(0, 140, 207, 0.2);
  backdrop-filter: blur(8px);
}

.badge svg {
  color: var(--brand-blue-light);
}

.section-title {
  font-size: clamp(2.1rem, 3.8vw, 2.9rem);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

/* ==========================================================================
   Botones y CTAs Lujosos
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.975rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #008ccf 0%, #10b981 60%, #6bbe45 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px 0 rgba(0, 140, 207, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0284c7 0%, #059669 60%, #58a036 100%);
  box-shadow: 0 8px 25px 0 rgba(107, 190, 69, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
  border: 1px solid rgba(125, 211, 252, 0.25);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--brand-blue-light);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #1ebe5d 100%);
  color: #032011;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 18px 0 rgba(37, 211, 102, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #1ebe5d 0%, #128c7e 100%);
  color: #02170c;
  box-shadow: 0 8px 26px 0 rgba(37, 211, 102, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1.05rem 2.35rem;
  font-size: 1.05rem;
}

/* ==========================================================================
   Barra Superior Informativa (TopBar)
   ========================================================================== */
.topbar {
  background-color: rgba(3, 8, 18, 0.92);
  color: var(--text-secondary);
  font-size: 0.825rem;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.topbar-item:hover {
  color: var(--brand-green-light);
}

.topbar-item svg {
  width: 14px;
  height: 14px;
  color: var(--brand-green);
}

.topbar-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
}

.topbar-social-link:hover {
  color: var(--brand-blue-light);
}

.topbar-social-link svg {
  width: 14px;
  height: 14px;
  color: var(--brand-purple-light);
}

/* ==========================================================================
   Header & Navegación Principal
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.header .container {
  max-width: 1360px;
}

.header-scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  background-color: rgba(3, 10, 22, 0.95);
  border-bottom-color: rgba(56, 189, 248, 0.25);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(0, 140, 207, 0.45));
}

.brand-icon img, .brand-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Tipografía Oficial Logo (Century Gothic / Plus Jakarta Sans) */
.brand-text {
  font-family: "Century Gothic", "Tw Cen MT", "Plus Jakarta Sans", sans-serif;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.brand-text-blue {
  font-family: "Century Gothic", "Tw Cen MT", "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  color: #008ccf;
  text-shadow: 0 0 14px rgba(0, 140, 207, 0.5);
}

.header nav {
  min-width: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.875rem;
  position: relative;
  padding-block: 0.25rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-green-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-blue-light), var(--brand-green));
  transition: width 0.25s ease;
  border-radius: var(--radius-full);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  padding: 0.5rem;
  color: var(--text-white);
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
}

/* ==========================================================================
   Hero Section Cósmico
   ========================================================================== */
.hero {
  position: relative;
  padding-block: 5.5rem 6.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  max-width: 640px;
}

.hero-title {
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.14;
  letter-spacing: -0.035em;
  margin-bottom: 1.35rem;
}

/* Triple Gradiente Cósmico de Título (Morado → Azul/Cyan → Verde) */
.hero-title span {
  background: linear-gradient(135deg, #c084fc 0%, #38bdf8 50%, #86efac 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
  filter: drop-shadow(0 2px 14px rgba(56, 189, 248, 0.3));
}

.hero-lead {
  font-size: 1.18rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2.25rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.trust-item {
  display: flex;
  flex-direction: column;
}

.trust-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-green-light);
  line-height: 1.2;
  text-shadow: 0 0 16px rgba(107, 190, 69, 0.35);
}

.trust-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Tarjeta Visual de Hero (Glassmorphism Espacial) */
.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-xl), 0 0 35px -5px rgba(0, 140, 207, 0.25);
  border: 1px solid rgba(125, 211, 252, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.avatar-group {
  display: flex;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-card);
  background: linear-gradient(135deg, rgba(0, 140, 207, 0.4) 0%, rgba(107, 190, 69, 0.4) 100%);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
  margin-left: -12px;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
  overflow: hidden;
  padding: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}

.avatar:first-child {
  margin-left: 0;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.4) 0%, rgba(0, 140, 207, 0.4) 100%);
}

.hero-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-white);
}

.hero-card-subtitle {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.hero-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  padding: 0.95rem;
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  transition: all 0.25s ease;
}

.hero-feature-item:hover {
  transform: translateX(4px);
  background-color: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
}

.feature-icon-badge {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 140, 207, 0.25) 0%, rgba(107, 190, 69, 0.25) 100%);
  color: var(--brand-green-light);
  display: grid;
  place-items: center;
  box-shadow: 0 0 10px rgba(107, 190, 69, 0.2);
  flex-shrink: 0;
  border: 1px solid rgba(125, 211, 252, 0.2);
}

.feature-icon-badge svg {
  width: 18px;
  height: 18px;
}

.feature-text-title {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text-white);
}

.feature-text-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* Pastillas Flotantes */
.floating-pill {
  position: absolute;
  background: rgba(10, 24, 48, 0.85);
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-full);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 140, 207, 0.25);
  border: 1px solid rgba(125, 211, 252, 0.3);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-white);
  animation: floatSlow 4s ease-in-out infinite;
}

.floating-pill-top {
  top: -20px;
  right: -20px;
}

.floating-pill-bottom {
  bottom: -20px;
  left: -20px;
  animation-delay: 2s;
}

.floating-pill-bottom svg {
  fill: var(--brand-purple-light);
  filter: drop-shadow(0 0 8px var(--brand-purple-glow));
}

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

/* ==========================================================================
   Barra de Ventajas Rápidas (Perks Bar)
   ========================================================================== */
.perks-bar {
  background-color: rgba(6, 18, 36, 0.6);
  padding-block: 2.25rem;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.perk-card {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.perk-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 140, 207, 0.2) 0%, rgba(107, 190, 69, 0.2) 100%);
  color: var(--brand-green-light);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(125, 211, 252, 0.25);
  box-shadow: 0 0 16px rgba(0, 140, 207, 0.25);
}

.perk-icon svg {
  width: 24px;
  height: 24px;
}

.perk-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.15rem;
}

.perk-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Especialidades y Servicios
   ========================================================================== */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-tab {
  padding: 0.65rem 1.45rem;
  border-radius: var(--radius-full);
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.filter-tab:hover {
  color: var(--text-white);
  border-color: var(--brand-blue-light);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

.filter-tab.active {
  background: linear-gradient(135deg, #008ccf 0%, #6bbe45 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 18px rgba(0, 140, 207, 0.45);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 2.25rem;
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.35rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl), 0 0 30px -5px rgba(0, 140, 207, 0.35);
  border-color: rgba(134, 239, 172, 0.4);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-purple) 0%, var(--brand-blue) 50%, var(--brand-green) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 140, 207, 0.25) 0%, rgba(107, 190, 69, 0.25) 100%);
  color: var(--brand-blue-light);
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(125, 211, 252, 0.3);
  box-shadow: 0 0 16px rgba(0, 140, 207, 0.25);
}

.service-icon-wrap svg {
  width: 28px;
  height: 28px;
}

.service-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-green-light);
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.service-title {
  font-size: 1.38rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.85rem;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.85rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-light);
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.885rem;
  color: var(--text-secondary);
}

.benefit-item svg {
  width: 16px;
  height: 16px;
  color: var(--brand-green);
  flex-shrink: 0;
}

.service-action {
  margin-top: auto;
}

/* ==========================================================================
   Cotizador / Estimador de Tratamientos Cósmico
   ========================================================================== */
.calculator-box {
  background: linear-gradient(145deg, rgba(8, 24, 46, 0.9) 0%, rgba(14, 38, 70, 0.85) 100%);
  border-radius: var(--radius-lg);
  padding: 3.25rem;
  color: #ffffff;
  box-shadow: var(--shadow-xl), 0 0 45px -8px rgba(0, 140, 207, 0.35);
  border: 1px solid rgba(125, 211, 252, 0.28);
  backdrop-filter: blur(20px);
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.calc-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #ffffff;
}

.calc-desc {
  color: var(--text-muted);
  font-size: 1.025rem;
  margin-bottom: 2rem;
}

.calc-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.calc-option-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  text-align: left;
  transition: all 0.25s ease;
}

.calc-option-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--brand-blue-light);
}

.calc-option-btn.active {
  background: linear-gradient(135deg, rgba(0, 140, 207, 0.3) 0%, rgba(107, 190, 69, 0.25) 100%);
  border-color: var(--brand-green-light);
  box-shadow: 0 0 20px rgba(0, 140, 207, 0.35);
}

.calc-opt-name {
  font-weight: 700;
  font-size: 0.975rem;
  margin-bottom: 0.25rem;
}

.calc-opt-tag {
  font-size: 0.775rem;
  color: var(--brand-blue-light);
  font-weight: 600;
}

.calc-result-card {
  background: rgba(4, 14, 28, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(125, 211, 252, 0.25);
  border-radius: var(--radius-md);
  padding: 2.35rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.result-badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
  color: #ffffff;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.15rem;
  box-shadow: 0 0 12px rgba(107, 190, 69, 0.4);
}

.result-heading {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.result-summary {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.result-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  padding-block: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.75rem;
}

.result-detail-label {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.result-detail-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-blue-light);
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* ==========================================================================
   Tecnología e Infraestructura Clínica
   ========================================================================== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.25rem;
}

.tech-card {
  background: var(--bg-card);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
  transition: all 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: var(--shadow-xl), 0 0 25px rgba(0, 140, 207, 0.25);
}

.tech-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(0, 140, 207, 0.25) 100%);
  color: var(--brand-blue-light);
  display: grid;
  place-items: center;
  margin-bottom: 1.35rem;
  border: 1px solid rgba(125, 211, 252, 0.25);
  box-shadow: 0 0 16px rgba(0, 140, 207, 0.25);
}

.tech-icon svg {
  width: 28px;
  height: 28px;
}

.tech-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.6rem;
}

.tech-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Equipo Médico / Doctores Oficiales
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.75rem;
}

.doctor-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  transition: all 0.35s ease;
}

.doctor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(107, 190, 69, 0.3);
  border-color: rgba(134, 239, 172, 0.4);
}

.doctor-photo-wrap {
  height: 420px;
  background: #050b16;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.doctor-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
}

.doctor-badge-floating {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(3, 10, 24, 0.9);
  color: var(--brand-green-light);
  font-size: 0.775rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(125, 211, 252, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.doctor-icon-placeholder {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-full);
  background: rgba(5, 14, 28, 0.85);
  color: var(--brand-blue-light);
  display: grid;
  place-items: center;
  box-shadow: 0 0 25px rgba(0, 140, 207, 0.4);
  border: 2px solid rgba(125, 211, 252, 0.4);
}

.doctor-icon-placeholder svg {
  width: 50px;
  height: 50px;
}

.doctor-info {
  padding: 2rem;
}

.doctor-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 0.3rem;
}

.doctor-role {
  font-size: 0.9rem;
  color: var(--brand-green-light);
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.doctor-email {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-blue-light);
  margin-bottom: 0.85rem;
  text-decoration: none;
}

.doctor-email:hover {
  color: var(--brand-green-light);
  text-decoration: underline;
}

.doctor-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.35rem;
}

.doctor-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.doctor-reg {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

/* ==========================================================================
   Transformación / Casos Clínicos & Reseñas
   ========================================================================== */
.transformation-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2.75rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  margin-bottom: 3.5rem;
}

.transform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.transform-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.transform-card {
  background: rgba(4, 14, 28, 0.7);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
  border: 1px solid var(--border);
}

.transform-state {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.15rem;
}

.state-before {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.state-after {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.25);
}

.transform-art {
  height: 140px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border: 1px solid var(--border-light);
  color: var(--brand-green-light);
}

.transform-art svg {
  width: 64px;
  height: 64px;
}

.transform-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.25rem;
}

.review-card {
  background: var(--bg-card);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl), 0 0 25px rgba(0, 140, 207, 0.25);
  border-color: rgba(56, 189, 248, 0.35);
}

.review-stars {
  display: flex;
  gap: 0.3rem;
  color: #fbbf24;
  margin-bottom: 1.15rem;
  font-size: 1.1rem;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.review-text {
  font-size: 0.975rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.35) 0%, rgba(0, 140, 207, 0.35) 100%);
  color: var(--brand-blue-light);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.925rem;
  border: 1px solid rgba(125, 211, 252, 0.3);
  box-shadow: 0 0 10px rgba(0, 140, 207, 0.25);
  overflow: hidden;
  padding: 0;
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

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

.review-treatment {
  font-size: 0.8rem;
  color: var(--brand-green-light);
  font-weight: 600;
}

/* ==========================================================================
   Preguntas Frecuentes (FAQ)
   ========================================================================== */
.faq-container {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  backdrop-filter: blur(16px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item[open] {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 140, 207, 0.2);
}

.faq-question {
  padding: 1.35rem 1.75rem;
  font-size: 1.075rem;
  font-weight: 700;
  color: var(--text-white);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 22px;
  height: 22px;
  color: var(--brand-green-light);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: var(--brand-blue-light);
}

.faq-answer {
  padding: 0 1.75rem 1.75rem;
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   Ubicación, Horarios y Contacto (Maipú)
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl), 0 0 35px -5px rgba(0, 140, 207, 0.25);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.contact-info-col {
  padding: 3.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-header {
  margin-bottom: 2rem;
}

.contact-title {
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 140, 207, 0.25) 0%, rgba(107, 190, 69, 0.25) 100%);
  color: var(--brand-green-light);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(125, 211, 252, 0.25);
  box-shadow: 0 0 14px rgba(0, 140, 207, 0.25);
}

.contact-icon-box svg {
  width: 24px;
  height: 24px;
}

.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
}

.contact-val {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-white);
}

.contact-link {
  color: var(--brand-blue-light);
  text-decoration: none;
}

.contact-link:hover {
  color: var(--brand-green-light);
  text-decoration: underline;
}

.faq-answer a {
  color: var(--brand-blue-light);
  font-weight: 600;
}

.faq-answer a:hover {
  color: var(--brand-green-light);
}

.contact-map-col {
  background: #020914;
  position: relative;
  min-height: 400px;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(8, 28, 54, 0.95) 0%, rgba(3, 10, 22, 0.95) 100%);
  color: var(--text-white);
}

.map-pin-icon {
  width: 58px;
  height: 58px;
  color: var(--brand-green-light);
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 16px rgba(107, 190, 69, 0.5));
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* ==========================================================================
   Modal Dialog & Formulario de Reserva
   ========================================================================== */
.modal-dialog {
  border: 1px solid rgba(125, 211, 252, 0.3);
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 580px;
  width: calc(100% - 2rem);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 140, 207, 0.3);
  background: rgba(6, 18, 36, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  margin: auto;
  color: #ffffff;
}

.modal-dialog::backdrop {
  background: rgba(3, 2, 9, 0.75);
  backdrop-filter: blur(8px);
}

.modal-header {
  padding: 1.85rem 2.25rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(0, 140, 207, 0.25) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.modal-close-btn {
  color: var(--text-muted);
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 2.25rem;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(2, 10, 22, 0.75);
  font-size: 0.95rem;
  color: #ffffff;
  color-scheme: dark;
  transition: all 0.2s ease;
}

.form-select option {
  background-color: #061426;
  color: #ffffff;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--brand-green-light);
  background: rgba(4, 16, 32, 0.95);
  box-shadow: 0 0 0 3px rgba(107, 190, 69, 0.25);
}

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

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-dim);
  opacity: 1;
}

.form-submit-row {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.form-feedback {
  display: none;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

.form-feedback.success {
  display: block;
  background: rgba(16, 185, 129, 0.2);
  color: #a7f3d0;
  border: 1px solid rgba(52, 211, 153, 0.4);
}

/* ==========================================================================
   Botón Flotante de WhatsApp
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 62px;
  height: 62px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #25d366 0%, #1ebe5d 100%);
  color: #032011;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: pulseWhatsapp 2.5s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.7);
  color: #000000;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

@keyframes pulseWhatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   Footer Cósmico
   ========================================================================== */
.footer {
  background-color: rgba(2, 6, 14, 0.95);
  color: var(--text-muted);
  padding-top: 5rem;
  border-top: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-brand-text {
  font-family: "Century Gothic", "Tw Cen MT", "Plus Jakarta Sans", sans-serif;
  font-weight: 400;
  color: #ffffff;
}

.footer-brand-text-blue {
  font-family: "Century Gothic", "Tw Cen MT", "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  color: #38bdf8;
}

.footer-brand-desc {
  font-size: 0.925rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--brand-green-light);
}

.social-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.social-pill:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--brand-blue-light);
  color: #ffffff;
  transform: translateX(3px);
}

.social-pill svg {
  width: 18px;
  height: 18px;
  color: var(--brand-purple-light);
}

.footer-bottom {
  padding-block: 1.85rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--brand-green-light);
}

/* ==========================================================================
   Media Queries & Responsividad
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-trust {
    justify-content: center;
  }
  .calculator-grid {
    grid-template-columns: 1fr;
  }
  .transform-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1200px) {
  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    background: rgba(3, 10, 22, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  .nav-menu.open {
    transform: translateY(0);
  }
  .nav-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .calc-options {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .floating-pill {
    display: none;
  }
  .doctor-photo-wrap {
    height: 340px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .space-stars--drift,
  .space-galaxy--a,
  .space-galaxy--b,
  .whatsapp-float,
  .map-pin-icon,
  .floating-pill {
    animation: none !important;
  }
}

/* Scroll móvil: el cielo animado + blur/backdrop-filter pinta cada frame y se traba.
   Mismo paletón cósmico, sin capas fijas ni filtros caros. */
@media (max-width: 768px), (pointer: coarse) and (max-width: 1024px) {
  html {
    scroll-behavior: auto;
  }

  .space-sky {
    display: none;
  }

  html,
  body {
    background-color: #030208;
    background-image:
      radial-gradient(ellipse 90% 55% at 8% -5%, rgba(168, 85, 247, 0.3), transparent 58%),
      radial-gradient(ellipse 85% 50% at 108% 32%, rgba(0, 140, 207, 0.3), transparent 56%),
      radial-gradient(ellipse 80% 48% at 18% 108%, rgba(107, 190, 69, 0.22), transparent 58%),
      url("assets/stars.svg");
    background-repeat: no-repeat, no-repeat, no-repeat, repeat;
    background-size: auto, auto, auto, 420px 420px;
    background-attachment: scroll;
  }

  .header,
  .header-scrolled,
  .nav-menu,
  .badge,
  .btn-secondary,
  .hero-card,
  .perks-bar,
  .filter-tab,
  .service-card,
  .calculator-box,
  .calc-result-card,
  .tech-card,
  .doctor-card,
  .transformation-box,
  .review-card,
  .faq-item,
  .contact-grid,
  .modal-dialog,
  .modal-dialog::backdrop {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .header,
  .header-scrolled {
    background-color: rgba(3, 10, 22, 0.97);
  }

  .whatsapp-float,
  .map-pin-icon,
  .floating-pill {
    animation: none !important;
  }

  .service-card,
  .review-card,
  .tech-card,
  .doctor-card,
  .hero-card,
  .faq-item,
  .calculator-box {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  }

  section.section {
    content-visibility: auto;
    contain-intrinsic-size: auto 720px;
  }
}
