/* ==========================================================================
   Dra. Elys Paula - Luxury Minimal Design System
   ========================================================================== */

/* --- 1. Variables & Design Tokens --- */
:root {
  /* Colors */
  --color-bg: #FAF8F5; /* Soft Pearl White */
  --color-surface: #FFFFFF;
  --color-text-main: #2C2A29; /* Soft Charcoal */
  --color-text-muted: #7A7571;
  --color-accent-gold: #D4AF37; /* Subtle Gold */
  --color-accent-blush: #E8D8CE; /* Skin tone/Blush */
  --color-accent-gold-hover: #b8972e;
  
  /* Typography */
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  
  /* Utilities */
  --border-radius: 4px; /* Slight rounding for elegant feel */
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.02);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.05);
}

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

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
}

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

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

/* --- 3. Typography Styles --- */
.h1-hero {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: var(--space-md);
  color: var(--color-text-main);
}

.h2-section {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-sm);
  text-align: center;
}

.subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent-gold);
  margin-bottom: var(--space-xs);
  display: block;
}

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

/* --- 4. Layout & Containers --- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: var(--space-xl) 0;
}

/* --- 5. Components --- */
/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 65px;
  display: flex;
  align-items: center;
  background-color: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}

.navbar .container {
  max-width: 1400px; /* Expand container width specifically for navbar */
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 1.5rem; /* Reduced gap to fit more items */
  list-style: none;
}

.nav-links a {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: var(--border-radius);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--color-accent-gold);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--color-accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

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

.btn-outline:hover {
  background-color: var(--color-text-main);
  color: var(--color-surface);
}

/* Floating WhatsApp */
.wsp-floating {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  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);
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px; /* offset for navbar */
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Delicate Parallax Effect */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(250,248,245,0.95) 0%, rgba(250,248,245,0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-lg);
  align-items: center;
}

.about-image {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.service-card {
  background-color: var(--color-surface);
  padding: var(--space-md);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.service-card .btn {
  margin-top: auto;
}

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

.service-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto var(--space-sm);
  fill: var(--color-accent-gold);
}

.service-card h3 {
  margin-bottom: var(--space-xs);
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
}

/* Contact / Footer */
.footer {
  background-color: var(--color-text-main);
  color: var(--color-bg);
  padding: var(--space-lg) 0 var(--space-md);
  text-align: center;
}

/* --- 6. Utilities & Animations --- */
.text-center { text-align: center; }

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Menu Toggle --- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-main);
  cursor: pointer;
  padding: 0.5rem;
}

/* --- 7. Responsive --- */
@media (max-width: 768px) {
  .navbar .container {
    display: flex;
    justify-content: space-between;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 0;
    margin: 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-top: 1px solid rgba(0,0,0,0.05);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.active {
    max-height: 600px; /* Aumentado para acomodar nuevos links */
  }

  .nav-links li {
    text-align: center;
    width: 100%;
    padding: var(--space-xs) 0; /* Reduced padding for mobile menu items */
    border-bottom: 1px solid rgba(0,0,0,0.02);
  }

  .hero-grid, .about-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-image-wrapper {
    height: 50vh;
    order: -1;
  }
  
  .section {
    padding: var(--space-lg) 0;
  }
}

/* --- 8. FAQ Accordion --- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.1);
  margin-bottom: var(--space-sm);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-sm) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-text-main);
  cursor: pointer;
  text-align: left;
}

.faq-icon {
  transition: var(--transition);
  color: var(--color-accent-gold);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-content {
  padding-bottom: var(--space-sm);
  color: var(--color-text-muted);
}

/* --- 9. Forms & Contact --- */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.contact-info p {
  margin-bottom: var(--space-sm);
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.contact-info strong {
  color: var(--color-text-main);
  display: block;
  margin-bottom: var(--space-xs);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.form-group {
  margin-bottom: var(--space-sm);
}

.form-label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
  color: var(--color-text-main);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-main);
  background-color: var(--color-surface);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

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

@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}
