/* ==========================================================================
   CSS Variables - Premium Med Spa Design Tokens
   ========================================================================== */
:root {
  /* Color Palette */
  --primary: #7dc9c5;       /* Signature Teal */
  --primary-dark: #63b3ae;  /* Hover Teal */
  --secondary: #f0d2b4;     /* Signature Peach */
  --secondary-dark: #dfba98;/* Hover Peach */
  
  --accent: #d4af37;        /* Gold accent for premium feel */
  
  /* Neutral Palette */
  --text-dark: #2a3b3a;     /* Deep teal-gray for elegant text */
  --text-body: #5a6b6a;     /* Lighter gray for readability */
  --text-light: #ffffff;
  
  --bg-main: #faf9f6;       /* Pearl white */
  --bg-soft: #f2f6f5;       /* Very light teal tinge */
  --bg-white: #ffffff;
  
  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  /* UI Elements */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --radius-pill: 100px;
  
  /* Shadows & Transitions */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(125, 201, 197, 0.15);
  --shadow-lg: 0 20px 40px rgba(42, 59, 58, 0.08);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--bg-main);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* ==========================================================================
   Layout Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.bg-soft {
  background-color: var(--bg-soft);
}

.section-header {
  margin-bottom: 60px;
}

.section-header.center {
  text-align: center;
}

.section-heading {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 10px;
}

.section-subheading {
  font-size: 2.8rem;
  color: var(--text-dark);
  font-style: italic;
  font-weight: 400;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(125, 201, 197, 0.4);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(125, 201, 197, 0.6);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-dark);
  border: 1px solid var(--text-dark);
}

.btn-outline:hover {
  background-color: var(--text-dark);
  color: var(--text-light);
}

.btn-nav {
  background-color: var(--secondary);
  color: var(--text-dark) !important;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem !important;
  font-weight: 600 !important;
}

.btn-nav:hover {
  background-color: var(--secondary-dark);
  color: var(--text-dark) !important;
  transform: translateY(-2px);
}

.btn-whatsapp-large {
  background-color: #25D366;
  color: white;
  font-size: 1.1rem;
  padding: 20px 40px;
}

.btn-whatsapp-large:hover {
  background-color: #128c7e;
  transform: translateY(-3px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.header.scrolled {
  height: 75px;
  box-shadow: var(--shadow-sm);
  background-color: rgba(255, 255, 255, 0.95);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  height: 60px;
  transition: var(--transition);
}

.header.scrolled .logo {
  height: 50px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

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

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-main) 100%);
}

.hero-bg {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  opacity: 0.2;
  border-radius: 50%;
  z-index: 0;
}

.hero-content-wrapper {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  max-width: 580px;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  background-color: rgba(125, 201, 197, 0.15);
  color: var(--primary-dark);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 5.5rem;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--primary);
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.15rem;
  margin-bottom: 40px;
  color: var(--text-body);
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-visual {
  position: relative;
}

.image-frame {
  position: relative;
  border-radius: var(--radius-lg) 0 var(--radius-lg) 0;
  background-color: var(--bg-white);
  padding: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.hero-img {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 8px) 0 calc(var(--radius-lg) - 8px) 0;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 4/5;
}

.frame-accent {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--secondary);
  border-radius: var(--radius-lg) 0 var(--radius-lg) 0;
  z-index: -1;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
  background-color: var(--bg-white);
  position: relative;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.image-frame-alt {
  position: relative;
  border-radius: var(--radius-pill);
  padding: 10px;
  background: white;
  box-shadow: var(--shadow-lg);
}

.image-frame-alt::before {
  content: '';
  position: absolute;
  top: -15px;
  right: -15px;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-pill);
  border: 2px dashed var(--primary);
  z-index: -1;
  animation: spin 30s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.about-img {
  width: 100%;
  border-radius: var(--radius-pill);
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: center top;
}

.about-title {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.about-description {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.about-credentials {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-soft);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}

.credential-item i {
  color: var(--primary);
  font-size: 1.5rem;
}

.credential-item span {
  font-weight: 600;
  color: var(--text-dark);
}

/* ==========================================================================
   Specialties Section
   ========================================================================== */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.specialty-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.specialty-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.specialty-img-container {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.specialty-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.specialty-card:hover .specialty-img {
  transform: scale(1.05);
}

.specialty-icon {
  position: absolute;
  bottom: -25px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.specialty-info {
  padding: 40px 30px 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.specialty-info h4 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.specialty-info p {
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.specialty-list {
  margin-top: auto;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 20px;
}

.specialty-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}

.specialty-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--secondary);
  font-size: 0.8rem;
}

/* ==========================================================================
   Locations Section
   ========================================================================== */
.locations-section {
  background-color: var(--bg-white);
}

.locations-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.locations-wrapper.single-location {
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 0 auto;
}

.location-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.location-content {
  padding: 40px;
  position: relative;
}

.location-title {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.location-details p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.location-details i {
  color: var(--secondary-dark);
  margin-top: 5px;
}

.location-badge {
  display: inline-block;
  background-color: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 10px;
}

.location-map {
  height: 350px;
  width: 100%;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
  position: relative;
  background-image: url('assets/estetica2.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 120px 0;
  text-align: center;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(99, 179, 174, 0.9); /* Primary dark with opacity */
  z-index: 1;
}

.cta-container {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 800px;
}

.cta-title {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 20px;
}

.cta-description {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.shadow-pulse {
  animation: pulse-shadow 2s infinite;
}

@keyframes pulse-shadow {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--text-dark);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 80px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  height: 80px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-slogan {
  font-style: italic;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--secondary);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.footer-heading {
  color: white;
  font-family: var(--font-body);
  font-size: 1.1rem;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-disclaimer p {
  font-size: 0.85rem;
  margin-bottom: 15px;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  text-align: center;
  font-size: 0.9rem;
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  transition: var(--transition);
  animation: pulse-shadow 2s infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  background-color: #128c7e;
}

/* ==========================================================================
   Animations (Intersection Observer)
   ========================================================================== */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translate(0) scale(1);
}

.fade-up { transform: translateY(40px); }
.fade-in-left { transform: translateX(-40px); }
.fade-in-right { transform: translateX(40px); }

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 4.5rem; }
  .about-container { grid-template-columns: 1fr; }
  .image-frame-alt { max-width: 500px; margin: 0 auto; }
  .specialties-grid { grid-template-columns: repeat(2, 1fr); }
  .locations-wrapper { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header { height: 75px; }
  .hero { padding-top: 120px; text-align: center; }
  .hero-content-wrapper { grid-template-columns: 1fr; }
  .hero-text { margin: 0 auto; }
  .hero-buttons { justify-content: center; flex-direction: column; }
  .hero-title { font-size: 3.5rem; }
  
  .menu-toggle { display: block; }
  
  .main-nav {
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 30px 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: var(--transition);
  }

  .main-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .specialties-grid { grid-template-columns: 1fr; }
  
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-brand { text-align: center; }
  .footer-logo { margin: 0 auto 20px; }
  .social-links { justify-content: center; }
  
  .cta-title { font-size: 2.5rem; }
}
