/* style.css */
:root {
  --primary: #dbc4e0;
  --secondary: #ffffff;
  --accent: #c69ad9;
  --text: #333;
}

.flex-container {
  display: flex;
  /* Puedes usar justify-content y align-items para centrar */
  justify-content: center; /* Centra horizontalmente */
  align-items: center;     /* Centra verticalmente */
  width: 100%;             /* O el ancho que necesites */
  height: auto;           /* O la altura que necesites */
  border: 0px solid black; /* Para visualizar el contenedor */
}

.flex-container img {
  display: block;        /* Elimina el espacio extra debajo de la imagen */
  max-width: 100%;       /* Asegura que no exceda el ancho del contenedor */
  height: auto;          /* Mantiene la relación de aspecto */
  object-fit: contain;     /* 'contain' para no recortar o 'cover' para rellenar */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cormorant Garamond', serif;
}

body {
  background-color: var(--secondary);
  color: var(--text);
  scroll-behavior: smooth;
}

header {
  background-color: var(--primary);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header img {
  height: 60px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--accent);
}

section {
  padding: 10px 20px;
  text-align: center;
}

#inicio {
  background-color: var(--primary);
  color: white;
  padding-top: 80px;
}

#servicios, #productos, #historia {
  background-color: var(--secondary);
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--accent);
  
}

h3 {
  font-size: 25px;
  margin-bottom: 20px;
  color: white;
  
}

p {
  max-width: 700px;
  margin: 0 auto 20px;
  line-height: 1.6;
  font-size: 20px;
}

.servicio, .producto, .empleado {
  
  background: var(--primary);
  color: white;
  border-radius: 10px;
  padding: 20px;
  margin: 20px auto;
  max-width: 600px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

}



button {
  background-color: var(--accent);
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 1rem;
}

button:hover {
  background-color: #b27fc7;
}

footer {
  display: flex;
  background-color: var(--accent);
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 50px;
  justify-content: center; /* centra horizontalmente */
  align-items: center;     /* centra verticalmente */
}

footer p {
  margin: 5px 0;
}

footer img{
  width: 100%;
  max-width: 20px;  /* Evita que se agrande demasiado */
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}
  



@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    background: var(--accent);
    position: absolute;
    top: 80px;
    right: 0;
    width: 200px;
    display: none;
  }

  nav ul.active {
    display: flex;
  }

  .menu-toggle {
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
  }
}

html {
  scroll-behavior: smooth; /* hace que se deslice lentamente hasta la sección marcada */
}


.contenedor-imagen {
  
  overflow: hidden;   /* oculta lo que sale del círculo */
  display: flex; 
  justify-content: center; /* centra horizontalmente */
  align-items: center;     /* centra verticalmente */

}

.contenedor-imagen img {
  object-fit: cover;  /* ajusta la imagen sin deformarla */
  border-radius: 50%; /* hace el recorte redondo */
  width: 200px;       /* tamaño del círculo */
  height: 200px;
}

.productos img {
  
  overflow: hidden;   /* oculta lo que sale del círculo */
  display: flex; 
  justify-content: center; /* centra horizontalmente */
  align-items: center;     /* centra verticalmente */

}

.productos img {
  object-fit: cover;  /* ajusta la imagen sin deformarla */
  border-radius: 50%; /* hace el recorte redondo */
  width: 200px;       /* tamaño del círculo */
  height: 200px;
}




/* Estilos para la sección de servicios con info desplegable */
.servicio {
  background: var(--primary);
  color: white;
  border-radius: 10px;
  padding: 20px;
  margin: 20px auto;
  max-width: 600px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  
  overflow: hidden; /* Oculta lo que se sale del contenedor */
  border: 1px solid #ccc; /* Para visualizar el área de recorte */
  
  
}


/* Estilo de la imagen */
.contenedor-recorte img {
  width: 100%; /* Ocupa el 100% del contenedor */
  /*height: 100%; /* Ocupa el 100% del contenedor */
  object-fit: cover; /* Recorta y escala la imagen para cubrir el contenedor */
  object-position: center center; /* Mantiene el centro de la imagen visible */
  
}

.servicio img {
  width: 100%; /* Ocupa todo el ancho del section */
  display: block; /* Para que no deje espacio extra */
  height: 150px; /* Altura fija, se recortará */
  overflow: hidden;
  object-position: center;
  object-fit: cover; /* Recorta y escala la imagen para cubrir el contenedor */
  object-position: center center; /* Mantiene el centro de la imagen visible */
  
}

 

.toggle-info {
  background: var(--accent);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
  margin-top: 10px;
}

.toggle-info:hover {
  background-color: #b27fc7;
}

.info {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease;
  opacity: 0;
  margin-top: 10px;
}

.info.active {
  max-height: none; /* altura máxima visible */
  opacity: 1;
}

.reserva {
  margin-top: 10px;
  background: white;
  color: var(--accent);
  font-weight: bold;
}

.reserva:hover {
  background: #f4e6f8;
}


/* las imagenes de la sección de info de tratamientos */
.info img {
  width: 100%;
  max-width: 200px;  /* Evita que se agrande demasiado */
  border-radius: 10px;
  margin: 10px auto;
  display: block;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}


.toggle-info2 {
  background: var(--accent);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
  margin-top: 10px;
}

.toggle-info2:hover {
  background-color: #b27fc7;
}

.info2 {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease;
  opacity: 0;
  margin-top: 10px;
}

.info2.active {
  max-height: none; /* altura máxima visible */
  opacity: 1;
}

.serviciotitulo img {
  width: 100%;
  max-width: 300px;  /* Evita que se agrande demasiado */
  max-height: 200px;
  border-radius: 10px;
  margin: 10px auto;
  display: block;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  

  width: 100%; /* Ocupa todo el ancho del section */
  display: block; /* Para que no deje espacio extra */
  overflow: hidden;
  object-position: center;
  object-fit: cover; /* Recorta y escala la imagen para cubrir el contenedor */
  object-position: center center; /* Mantiene el centro de la imagen visible */
  



}

body{
  padding-top:80px;
}