/* 
==================================================================
✨ ULTRA-PREMIUM LIGHT AESTHETIC SYSTEM - LOUTFI AESTHETICS ✨
==================================================================
Diseño redefinido para fondo claro en base a los colores y estética real de la clínica:
- Fondo Solicitado: Blanco Puro Fino (#fefeff)
- Acento Principal: Violeta Eléctrico/Púrpura Vibrante (#8b5cf6)
- Botones: Combinación de Sólido Púrpura Glow, Carbón Premium y Delineado
- Tipografía: Sans-serif geométrica de alta gama (Plus Jakarta Sans / Inter)
*/

/* 1. TIPOGRAFÍA Y GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

/* 2. VARIABLES DE DISEÑO PRINCIPALES */
:root {
  /* Paleta Loutfi Real (Light Mode) */
  --bg-primary: #fefeff;          /* Fondo Solicitado */
  --bg-dark-900: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.85); /* Vidrio Claro Premium */
  
  --color-primary: #8b5cf6;       /* Violeta Eléctrico Loutfi */
  --color-primary-hover: #7c3aed;
  --color-secondary: #0f172a;     /* Carbón Profundo (Sólido Secundario) */
  
  --text-main: #0f172a;           /* Texto Oscuro para Legibilidad */
  --text-muted: #64748b;          /* Gris azulado apagado */
  --text-gradient-start: #7c3aed; /* Degradé Violeta Loutfi */
  --text-gradient-end: #4f46e5;   /* Degradé Índigo */
  
  /* Fuentes */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Efectos y Sombras */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-purple-glow: 0 10px 25px -5px rgba(139, 92, 246, 0.3);
  --shadow-dark-glow: 0 10px 25px -5px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 30px 60px -15px rgba(15, 23, 42, 0.05);
  
  --border-pill: 9999px;
  --border-glass: 1.5px solid rgba(15, 23, 42, 0.06);
  
  --container-width: 460px;
}

/* 3. RESETEO Y DISEÑO GLOBAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  padding: 24px;
}

/* 4. ESFERAS DE GLOW AMBIENTAL SUAVES (Neon Pastel sobre Fondo Claro) */
.ambient-glows {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.glow-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.22;
  animation: floatGlow 18s infinite alternate ease-in-out;
}

.glow-sphere-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.22) 0%, transparent 70%);
  top: -10%;
  right: -5%;
}

.glow-sphere-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.16) 0%, transparent 70%);
  bottom: -5%;
  left: -5%;
  animation-delay: -6s;
}

@keyframes floatGlow {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.18;
  }
  100% {
    transform: translate(40px, -30px) scale(1.1);
    opacity: 0.25;
  }
}

/* 5. TARJETA FLOTANTE GLASSMORPHISM (Premium Light) */
.linktree-card {
  width: 100%;
  max-width: var(--container-width);
  background: var(--bg-card);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: var(--border-glass);
  border-radius: 36px;
  padding: 48px 36px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  transform: translateY(15px);
  opacity: 0;
  animation: cardEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardEntrance {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Ajustes Responsivos */
@media (max-width: 480px) {
  body {
    padding: 12px;
    align-items: flex-start;
  }
  .linktree-card {
    border-radius: 28px;
    padding: 40px 16px;
    box-shadow: none;
    background: transparent;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* 6. CABECERA (Logo y Título en Degradé) */
.header-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
  width: 100%;
}

/* Badge de "EXCLUSIVE AESTHETICS" en tonos claros */
.clinic-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 6px 16px;
  border-radius: var(--border-pill);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 24px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.02);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary);
}

.logo-container {
  width: 130px;
  height: 145px;
  position: relative;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(139, 92, 246, 0.12));
  transition: var(--transition-smooth);
}

.logo-container:hover .logo-image {
  transform: scale(1.04) translateY(-2px);
}

/* Fallback circular en color claro */
.logo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at top right, #f5f3ff 0%, #eef2f6 100%);
  border: 1.5px solid rgba(139, 92, 246, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-primary);
  box-shadow: 0 10px 25px -8px rgba(139, 92, 246, 0.15);
}

/* Título degradé elegante */
.brand-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--text-gradient-start) 0%, var(--text-gradient-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* 7. CONTENEDOR DE ENLACES */
.links-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

/* 8. BOTONES - 3 ESTILOS EXCLUSIVOS DE LA WEB PRINCIPAL (Adaptados a Light) */

/* Estilo Base */
.link-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 17px 28px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--border-pill);
  transition: var(--transition-smooth);
  cursor: pointer;
  outline: none;
  opacity: 0;
  transform: translateY(20px);
  text-align: center;
  position: relative;
}

.link-btn.animate-in {
  animation: btnEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes btnEntrance {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ESTILO 1: Delineado Carbón Premium (Default) */
.link-btn.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border: 1.5px solid var(--text-main);
}

.link-btn.btn-outline:hover {
  background-color: var(--text-main);
  color: #ffffff;
  border-color: var(--text-main);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.15);
}

/* ESTILO 2: Sólido Violeta Eléctrico ("Reserve My Spot") */
.link-btn.btn-purple {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: #ffffff;
  border: none;
  box-shadow: var(--shadow-purple-glow);
}

.link-btn.btn-purple:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 12px 30px -4px rgba(139, 92, 246, 0.5);
}

/* ESTILO 3: Sólido Carbón Premium ("Book Your Free Consultation" adaptado a Light) */
.link-btn.btn-white {
  background-color: var(--color-secondary);
  color: #ffffff;
  border: none;
  box-shadow: var(--shadow-dark-glow);
}

.link-btn.btn-white:hover {
  transform: translateY(-2px);
  background-color: #1e293b;
  box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.25);
}

/* Clic Táctil */
.link-btn:active {
  transform: translateY(0) scale(0.98);
}

/* 9. REDES SOCIALES (Estilo Glass Carbón) */
.socials-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding-top: 10px;
}

.social-icon-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.02);
  color: var(--text-main);
  transition: var(--transition-smooth);
  cursor: pointer;
  text-decoration: none;
  opacity: 0;
  transform: scale(0.8);
}

.social-icon-btn.animate-in {
  animation: socialEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes socialEntrance {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.social-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: var(--transition-smooth);
}

/* Hover de Redes Sociales */
.social-icon-btn:hover {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-purple-glow);
}

.social-icon-btn:active {
  transform: translateY(-1px) scale(0.96);
}

/* 10. PIE DE PÁGINA (Sutil) */
.footer-section {
  margin-top: 48px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  opacity: 0.8;
  width: 100%;
}

.footer-section a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.footer-section a:hover {
  color: var(--color-primary);
}

/* Efecto Ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.15);
  transform: scale(0);
  animation: ripple-effect 0.55s linear;
  pointer-events: none;
  z-index: 5;
}

/* Ripple blanco para botones oscuros y púrpuras */
.link-btn.btn-purple .ripple,
.link-btn.btn-white .ripple {
  background: rgba(255, 255, 255, 0.25);
}

@keyframes ripple-effect {
  to {
    transform: scale(4.5);
    opacity: 0;
  }
}
