@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #2563eb;
  --primary-light: #60a5fa;
  --primary-dark: #1e40af;
  --secondary: #8b5cf6;
  --accent: #f59e0b;
  --bg-color: #f8fafc;
  --surface-color: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-main);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Layout & Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 80px;
  object-fit: contain;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  margin-left: 2rem;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  padding-top: 150px;
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&q=80') center/cover no-repeat;
  opacity: 0.12;
  z-index: -2;
}

.hero-bg {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(96,165,250,0.2) 0%, rgba(139,92,246,0.1) 50%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: -1;
  animation: pulse 10s infinite alternate;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.1); opacity: 1; }
}

.hero-title-wrapper {
  text-align: center;
  margin-bottom: 3rem;
  width: 100%;
}

.hero-title-wrapper h1 {
  font-size: 3.8rem;
  margin-bottom: 1.5rem;
}

.hero-title-wrapper p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

.typing-container {
  display: inline-block;
  min-height: 1.2em; /* Prevents layout shift */
}

.dynamic-text {
  color: var(--primary); /* Fallback color */
  font-weight: 800;
  border-right: 3px solid var(--primary);
  animation: blink 0.75s step-end infinite;
  white-space: nowrap;
  display: inline-block;
  vertical-align: bottom;
}

/* Ensure the gradient works correctly when applied to dynamic-text */
.dynamic-text.text-gradient {
  -webkit-background-clip: text;
  background-clip: text;
  /* -webkit-text-fill-color: transparent is already in .text-gradient */
}

@keyframes blink {
  from, to { border-color: transparent }
  50% { border-color: var(--primary); }
}



/* Form Styling - Glassmorphism */
.form-card {
  background: var(--surface-color);
  padding: 3rem;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.6);
  position: relative;
}

.form-card::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  z-index: -1;
  border-radius: 26px;
  opacity: 0.1;
}

.form-card h3 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  background: #f8fafc;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: #fff;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 1rem;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

/* Social Proof */
.social-proof {
  padding: 4rem 0;
  background: #fff;
  text-align: center;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.proof-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stars {
  color: #fbbf24;
  font-size: 2rem;
  letter-spacing: 5px;
  margin-bottom: 1rem;
}

.proof-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.google-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #f8fafc;
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  border: 1px solid #e2e8f0;
}

.google-tag img {
  height: 25px;
  width: auto;
  object-fit: contain;
}

/* Services */
.services {
  padding: 8rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

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

.service-card {
  background: var(--surface-color);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex-grow: 1;
}

.btn-whatsapp-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem;
  border: 2px solid #25D366;
  color: #128C7E;
  background: transparent;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.btn-whatsapp-outline:hover {
  background: #25D366;
  color: white;
  box-shadow: 0 10px 15px -3px rgba(37, 211, 102, 0.3);
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  align-items: center;
  animation: bounce 2s infinite;
}

.whatsapp-tooltip {
  background: white;
  padding: 0.75rem 1.25rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  margin-right: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  opacity: 1;
  transform: translateX(0);
  transition: var(--transition);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 8px solid white;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.whatsapp-btn {
  width: 65px;
  height: 65px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: var(--transition);
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

.floating-whatsapp:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(-5px);
}

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

/* Featured Treatments */
.featured-section {
  padding: 6rem 0 2rem;
  position: relative;
}
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}
.featured-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
  position: relative;
}
.featured-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.featured-validation {
  background: var(--bg-color);
  padding: 1.5rem 2.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

.validation-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.validation-stats .stars {
  color: #fbbf24;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 0;
}

.benefits-list {
  list-style: none;
  margin-bottom: 2rem;
  padding: 0;
  flex-grow: 1;
}

.benefits-list li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-main);
  font-size: 1.05rem;
}

.benefits-list li i {
  color: #10b981;
  margin-top: 5px;
  font-size: 0.9rem;
}

.featured-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.featured-content h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}
.featured-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Footer modern with map */
.modern-footer {
  background: #0f172a;
  color: #fff;
  padding: 5rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
.footer-info h4 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #f8fafc;
}
.footer-info p {
  color: #94a3b8;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.05rem;
}
.footer-info i {
  color: var(--primary-light);
}
.footer-map iframe {
  width: 100%;
  height: 280px;
  border-radius: 16px;
  border: none;
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  color: #64748b;
  font-size: 0.95rem;
}
.footer-bottom a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}
.footer-bottom a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
  .featured-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-title-wrapper h1 {
    font-size: 3rem;
  }
  .hero {
    padding-top: 120px;
  }
}

@media (max-width: 768px) {
  .hero-title-wrapper h1 {
    font-size: 2.3rem;
  }
  .dynamic-text {
    white-space: normal; /* Allow wrapping on mobile for long phrases */
    border-right: 3px solid var(--primary);
    font-size: 0.95em; /* Slightly smaller to fit better */
  }
  .typing-container {
      min-height: 2.5em; /* Account for wrapping */
      display: inline-block;
      width: 100%;
  }
  .section-header h2 {
    font-size: 2.2rem;
  }
  .nav-links {
    display: none;
  }
  .floating-whatsapp {
    bottom: 1.5rem;
    right: 1.5rem;
  }
  .whatsapp-tooltip {
    display: none;
  }
}
