/* ==========================================================================
   VARIABLES MAESTRAS (El centro de control de tu plantilla)
   ========================================================================== */
/* Importar fuente elegante para títulos */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

:root {
  --primary-color: #8da9c4;       /* Azul pastel / Verde salvia relajante */
  --primary-hover: #7a97b3;       
  --secondary-color: #b5a28c;     /* Tono arena / Dorado sutil para el toque premium */
  --dark-color: #2b303a;          /* Un oscuro menos agresivo, más orgánico */
  --light-bg: #fcfbf9;            /* Fondo crema/blanco roto (limpieza y calma) */
  --white: #ffffff;
  --text-muted: #7e8491;          
  
  /* Cambio radical de fuentes */
  --font-heading: 'Playfair Display', serif;
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --max-width: 1100px;            
  --border-radius: 24px;          /* Curvas muy suaves y orgánicas para todo */
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 12px 40px rgba(43, 48, 58, 0.04); 
}

/* Aplicamos las nuevas fuentes de forma global */
h1, h2, h3, .logo, .section-header h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark-color);
}

/* ==========================================================================
   RESETS Y ESTILOS BASE
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth; /* Hace que al pulsar en el menú la pantalla baje suavemente */
}

body {
  font-family: var(--font-main);
  color: var(--dark-color);
  line-height: 1.6;
  background-color: var(--light-bg);
}

.container {
  max-width: var(--max-width);
  margin: auto;
  padding: 80px 20px; /* Separación vertical entre las secciones */
}

/* Encabezados de sección comunes */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px auto;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 18px;
}

/* Alternancia de fondos para que la web no sea monótona */
.section { 
  background-color: var(--white);
  scroll-margin-top: 90px;
}
.alt { 
  background-color: var(--light-bg);
  scroll-margin-top: 90px;
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px); /* Efecto difuminado estilo iPhone */
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 1000; /* Asegura que el menú siempre flote por encima del contenido */
}

.nav-container {
  max-width: var(--max-width);
  margin: auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
  color: var(--dark-color);
}

.logo span { color: var(--secondary-color); }

.nav-links a {
  text-decoration: none;
  color: var(--dark-color);
  margin-left: 20px;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
}

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

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

/* ==========================================================================
   HÉROE (HERO SECTION)
   ========================================================================== */
.hero-wellness {
  padding: 140px 0 80px 0;
  background: linear-gradient(180deg, #f5f7fa 0%, var(--light-bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.subtitle-wellness {
  font-family: var(--font-main);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  color: var(--secondary-color);
  font-weight: 600;
  display: block;
  margin-bottom: 15px;
}

.hero-text h1 {
  font-size: 52px;
  line-height: 1.15;
  margin-bottom: 25px;
}

/* El botón minimalista de bienestar */
.btn-wellness {
  display: inline-block;
  padding: 16px 35px;
  background-color: var(--dark-color);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
}

.btn-wellness:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.btn-wellness.link {
  background: transparent;
  color: var(--dark-color);
  text-decoration: underline;
}

/* La imagen asimétrica que rompe el "aburrimiento" visual */
.organic-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 60% 40% 40% 60% / 60% 40% 60% 40%; /* Forma de gota/orgánica */
  animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
  0% { border-radius: 60% 40% 40% 60% / 60% 40% 60% 40%; }
  50% { border-radius: 40% 60% 60% 40% / 40% 60% 40% 60%; }
  100% { border-radius: 60% 40% 40% 60% / 60% 40% 60% 40%; }
}

/* Responsive para el grid */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-text h1 { font-size: 38px; }
  .organic-img { height: 300px; }
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px); /* Eleva el botón ligeramente al pasar el ratón */
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* ==========================================================================
   ESTILOS DE COMPONENTES (Tarjetas, Formularios, Acordeones...)
   ========================================================================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Hace que el diseño sea responsive automáticamente */
  gap: 30px;
}

/* Tarjetas de Servicios */
.card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.02);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.card-icon {
  font-size: 24px;
  width: 50px;
  height: 50px;
  background: rgba(0, 123, 255, 0.1); /* Fondo muy suave del color de acento */
  color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon-circle {
  font-size: 26px;
  width: 60px;
  height: 60px;
  background: rgba(141, 169, 196, 0.12); /* Fondo sutil con el color de acento */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

/* Diseño Dos Columnas (Sobre Nosotros) */
.grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 50px;
  align-items: center;
}

.nosotros-content h2 { font-size: 32px; margin-bottom: 20px; }
.nosotros-content p { margin-bottom: 15px; color: #4b5563; }

.nosotros-image-placeholder {
  background: #e5e7eb;
  height: 300px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 600;
}

/* Acordeón de Preguntas Frecuentes (FAQs) */
.faq-container { max-width: 750px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.02);
  cursor: pointer;
}
.faq-item summary { font-weight: 600; font-size: 17px; outline: none; user-select: none; }
.faq-item[open] p {
  margin-top: 15px;
  color: var(--text-muted);
  border-top: 1px solid #eee;
  padding-top: 15px;
}

/* Tarjetas de Testimonios / Reseñas */
.testimonial-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--secondary-color); /* Línea decorativa lateral */
}
.stars { margin-bottom: 15px; }
.testimonial-card p { font-style: italic; margin-bottom: 15px; color: #4b5563; }
.client-name { font-weight: 600; font-size: 14px; }

/* Formulario de Contacto (Netlify Forms) */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.05);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 15px;
  transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--secondary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15); /* Brillo azul al hacer clic */
}

/* Mapa */
.map-wrapper { border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow); }
.map { width: 100%; height: 350px; border: 0; display: block; }

/* Botón Flotante de WhatsApp */
.whatsapp-floating {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366; /* Puedes dejarlo verde para máxima conversión o usar var(--secondary-color) si el cliente es ultra-minimalista */
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  transition: var(--transition);
  text-decoration: none;
}
.whatsapp-floating:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Footer */
.footer { background: var(--dark-color); color: rgba(255, 255, 255, 0.7); font-size: 14px; }
.footer-content {
  padding: 40px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.footer-links a:hover { color: var(--white); }

/* ==========================================================================
   RESPONSIVE (MÓVILES)
   ========================================================================== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block; /* Hacemos visible el botón de tres rayas en móviles */
  }

  .nav-links {
    display: none; /* Escondido por defecto */
    flex-direction: column;
    position: absolute;
    top: 100%; /* Se despliega justo debajo de la barra de navegación */
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    padding: 20px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.08);
    gap: 15px;
  }

  /* Esta clase se añade mediante el JavaScript anterior al hacer clic */
  .nav-links.active {
    display: flex; 
  }

  .nav-links a {
    margin-left: 0;
    font-size: 18px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .hero h1 {
    font-size: 32px;
  }
  .container {
    padding: 60px 20px;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}