body {
  font-family: 'Segoe UI', sans-serif;
  background: #EDEAE5; /* Fondo más oscuro en la gama Blanco Arizona */
  color: #333;
  margin: 0;
  padding: 0;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between; /* botón a la derecha */
  align-items: center;
  padding: 20px 40px;
  background: #A8D8EA; /* celeste pastel */
}

/* bloque central (logo + título + slogan) */
.header-center {
  display: flex;
  flex-direction: column;
  align-items: center;   /* centra horizontalmente */
  text-align: center;    /* centra texto */
  flex: 1;               /* ocupa espacio central */
}

header h1 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 2.2em;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* círculo para el logo */
.logo-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  overflow: hidden;
  border: 3px solid #6fb1d8;
}

.logo-circle img {
  width: 100%;
  height: auto;
}

header .slogan {
  font-size: 1em;        /* más discreto */
  font-style: italic;
  color: #555;
  margin-top: 5px;
  line-height: 1.3em;
}

.btn-portal {
  background: #B8E0D2; /* verde menta pastel */
  color: #333;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-portal:hover { 
  background: #6fb1d8; 
}

/* NAV */
nav {
  background: #ffffff;
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}
nav a {
  color: #6fb1d8;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
}
nav a:hover { color: #fbc4ab; }

/* SECCIONES */
section {
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  padding: 50px 20px;
  max-width: 900px;
  margin: auto;
  text-align: center;
}
section.active {
  display: block;
  opacity: 1;
}
section h2 {
  color: #6fb1d8;
  margin-bottom: 20px;
  font-family: 'Playfair Display', serif;
}
section p {
  font-size: 1.1em;
  line-height: 1.6em;
}

/* FOOTER */
footer {
  background: #fbc4ab; /* rosa pastel */
  color: #333;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* CARRUSEL EQUIPO */
.equipo-carousel {
  position: relative;
  width: 90%;
  max-width: 900px;
  margin: 40px auto;
  overflow: hidden;
}

.equipo-carousel .card {
  display: none;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 30px;
  text-align: center; /* centramos contenido */
  min-height: 300px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.equipo-carousel .card.active {
  display: block;
  opacity: 1;
}

.equipo-carousel .card h3 {
  color: #6fb1d8;
  font-family: 'Playfair Display', serif;
  margin-bottom: 15px;
}

.equipo-carousel .card p {
  font-size: 1.05em;
  line-height: 1.6em;
  color: #333;
}

/* Fotos de coordinadoras */
.equipo-carousel img {
  width: 160px;          /* tamaño visible */
  height: 160px;
  border-radius: 50%;    /* círculo */
  object-fit: cover;     /* recorta sin deformar */
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;    /* centra la foto dentro de la card */
}

/* CARRUSEL EQUIPO */
.equipo-carousel {
  position: relative;
  width: 90%;
  max-width: 900px;
  margin: 40px auto;
  overflow: hidden;
}

.equipo-carousel .card {
  display: none;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 30px;
  text-align: center; /* centramos contenido */
  height: auto; /* se adapta al contenido */
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.equipo-carousel .card.active {
  display: block;
  opacity: 1;
}

.equipo-carousel .card h3 {
  color: #6fb1d8;
  font-family: 'Playfair Display', serif;
  margin-bottom: 15px;
}

.equipo-carousel .card p {
  font-size: 1.05em;
  line-height: 1.6em;
  color: #333;
  text-align: left; /* opcional: mejora lectura de párrafos largos */
}

/* RESPONSIVIDAD */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  header h1 {
    font-size: 2em;
    margin: 15px 0;
  }
  .logo-circle {
    width: 90px;
    height: 90px;
    margin: 0 auto 10px;
  }
  .btn-portal {
    margin-top: 15px;
  }
  nav a {
    display: block;
    margin: 10px 0;
  }

  .espacio-carousel img,
  .espacio-carousel video {
    max-height: 300px;    /* más compacto en tablet */
  }
}

@media (max-width: 480px) {
  section {
    padding: 30px 15px;
  }
  section h2 {
    font-size: 1.4em;
  }
  section p {
    font-size: 1em;
    line-height: 1.4em;
  }
  .btn-portal {
    padding: 10px 18px;
    font-size: 0.9em;
  }

  .espacio-carousel img,
  .espacio-carousel video {
    max-height: 200px;    /* aún más chico en móvil */
  }
}
#contacto i {
  color: #6fb1d8; /* celeste pastel */
  margin-right: 8px;
  font-size: 1.2em;
}

#contacto a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

#contacto a:hover {
  color: #fbc4ab; /* rosa pastel */
}
/* Gmail */
.gmail-icon {
  color: #D93025; /* rojo Gmail */
  margin-right: 8px;
  font-size: 1.4em;
}

/* WhatsApp */
.whatsapp-icon {
  color: #25D366; /* verde WhatsApp */
  margin-right: 8px;
  font-size: 1.4em;
}

/* Instagram */
.instagram-icon {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 8px;
  font-size: 1.4em;
}

#contacto a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

#contacto a:hover {
  color: #6fb1d8; /* celeste pastel */
}
.terapias-lista {
  list-style: none;
  padding: 0;
}
.terapias-lista li {
  font-size: 1.1em;
  margin: 10px 0;
  display: flex;
  align-items: center;
}
.terapias-lista i {
  color: #6fb1d8; /* celeste pastel */
  margin-right: 10px;
  font-size: 1.4em;
}
.requisitos {
  list-style: none;          /* quitamos los puntos */
  padding: 0;
  margin: 0 auto;            /* centramos el bloque */
  display: inline-block;     /* hace que la lista se centre */
  text-align: left;          /* ítems alineados a la izquierda */
}

.requisitos li {
  position: relative;
  margin: 8px 0;
  padding-left: 34px;        /* espacio para el círculo */
  font-size: 1.1em;
  line-height: 1.4em;
}

.requisitos li::before {
  content: "✔";
  color: #fff;               /* check blanco */
  background: #25D366;       /* verde WhatsApp */
  border-radius: 50%;        /* círculo */
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9em;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%); /* centrado vertical */
}
#blog {
  width: 90%;
  max-width: 1200px;
  margin: 40px auto;
  text-align: center;
}

#blog h2 {
  font-family: 'Playfair Display', serif;
  color: #333;
  margin-bottom: 30px;
}

/* grid responsivo */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.blog-grid .post {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s;
}

.blog-grid .post:hover {
  transform: scale(1.03);
}

.blog-grid img {
  width: 100%;
  height: 250px;        /* altura uniforme */
  object-fit: cover;    /* recorta sin deformar */
  display: block;
}

.blog-grid p {
  padding: 10px;
  font-size: 0.95em;
  color: #555;
}
#lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

.cerrar, .prev, .next {
  position: absolute;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

.cerrar { top: 20px; right: 30px; }
.prev { top: 50%; left: 30px; }
.next { top: 50%; right: 30px; }

.franja-elefantes {
  background: #f8f8f8;
  overflow: hidden;
  padding: 10px 0;
}

.cinta {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: moverCinta 40s linear infinite; /* velocidad ajustable */
}

.grupo {
  font-size: 2em;
  margin: 0 20px;
}

.espacio {
  display: inline-block;
  width: 200px; /* espacio grande entre tandas */
}

@keyframes moverCinta {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* recorre solo la mitad */
}
/* Carrusel del espacio */
.espacio-carousel .foto {
  display: none;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.espacio-carousel .foto.active {
  display: block;
  opacity: 1;
}
/* Ajuste de tamaño para las fotos del carrusel del espacio */
.espacio-carousel img {
  max-width: 100%;     /* nunca se pasa del ancho del contenedor */
  max-height: 400px;   /* altura máxima */
  object-fit: cover;   /* recorta sin deformar */
  border-radius: 12px; /* esquinas redondeadas opcional */
  margin: 0 auto;      /* centra la imagen */
  display: block;
}