/* Scroll suave */
html {
  scroll-behavior: smooth;
}

/* Animación de entrada de secciones */
.animate-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Estilos generales */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #1e1e1e;
  color: #fff;
}

/* ----- Header y navegación ----- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #2c2c2c;
  position: sticky;
  top: 0;
  z-index: 1000;
}
header img {
  height: 50px;
}
nav a {
  color: #ffd700;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: bold;
}
nav a:hover,
nav a:focus {
  color: #fff;
}

/* Estilo específico para botón CTA en nav */
.btn-cta {
  background-color: #ffd700;
  color: #1e1e1e;
  border: none;
  padding: 0.7rem 1.5rem;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
  width: auto;
}
.btn-cta:hover,
.btn-cta:focus {
  background-color: #e6c200;
}

/* ----- Banner ----- */
.banner {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 300px;
  background: url('../img/banner.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner h1 {
  max-width: 90%;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  color: #ffd700;
  padding: 1rem 2rem;
  font-size: 2.5rem;
  border-radius: 10px;
}

/* ----- Contenedores de sección ----- */
.contenedor {
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: auto;
}
.contenedor h2 {
  color: #ffd700;
  margin-bottom: 1rem;
  text-align: center;
}
.contenedor p,
.contenedor ul {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #ddd;
}
.contenedor ul {
  list-style: disc;
  padding-left: 1.5rem;
}

/* ----- Equipo ----- */
.team {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.team-member {
  background-color: #2c2c2c;
  padding: 1.5rem;
  border-radius: 16px;
  text-align: center;
  width: 240px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.team-member img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.team-member p {
  margin: 0;
  color: #ffd700;
  font-weight: bold;
  font-size: 1rem;
}


.team-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.team-img-wrapper img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 30, 30, 0.85);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  text-align: center;
}

.overlay .especialidad {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-weight: bold;
  max-width: 90%;
  text-align: center;
  word-wrap: break-word;
  line-height: 1.4;
}

.team-img-wrapper:hover .overlay {
  opacity: 1;
}

.especialidad {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #ffd700;
}

.social-icons a {
  color: #fff;
  margin: 0 0.5rem;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #ffd700;
}


/* Overlay base */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  text-align: center;
  border-radius: 12px;
}

/* Mostrar overlay al pasar el mouse */
.team-img-wrapper:hover .overlay {
  opacity: 1;
}

/* Colores por persona (diferente fondo degradado para cada overlay) */
.overlay.ana {
  background: linear-gradient(135deg, rgba(255,215,0,0.95), rgba(0,0,0,0.9));
}

.overlay.jorge {
  background: linear-gradient(135deg, rgba(255,87,34,0.9), rgba(0,0,0,0.9));
}

.overlay.lucia {
  background: linear-gradient(135deg, rgba(138,43,226,0.9), rgba(0,0,0,0.9));
}

.overlay.marc {
  background: linear-gradient(135deg, rgba(0,150,136,0.9), rgba(0,0,0,0.9));
}

.especialidad {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-weight: bold;
}

.social-icons a {
  color: #fff;
  margin: 0 0.5rem;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #ffd700;
}



/* ----- Footer ----- */
footer {
  background-color: #2c2c2c;
  text-align: center;
  padding: 2rem;
  color: #888;
  margin-top: 2rem;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .banner h1 {
    font-size: 1.8rem;
    padding: 1rem;
  }
  nav {
    display: none; /* Puedes reemplazar con menú hamburguesa si lo deseas */
  }
  header {
    justify-content: space-between;
  }
}

/* ----- Login styles ----- */
.login-container {
  background-color: #2c2c2c;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
  text-align: center;
  width: 320px;
}
.logo {
  width: 120px;
  margin-bottom: 20px;
}
input {
  width: 90%;
  padding: 12px;
  margin: 10px 0;
  border: none;
  border-radius: 8px;
  background-color: #3b3b3b;
  color: #fff;
}
input::placeholder {
  color: #bbb;
}
.login-container button {
  width: 95%;
  padding: 12px;
}
button {
  padding: 12px;
  width: auto;
}
a {
  color: #ffd700;
  text-decoration: underline;
}
.oculto {
  display: none;
}
.invitado {
  margin-top: 20px;
}
.invitado button {
  background-color: transparent;
  border: 2px solid #ffd700;
  color: #ffd700;
  font-weight: bold;
  border-radius: 8px;
  padding: 10px;
  width: 95%;
  transition: all 0.3s ease;
}
.invitado button:hover {
  background-color: #ffd700;
  color: #1e1e1e;
}

.descripcion-section .descripcion-contenido {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.descripcion-imagen {
  flex: 1 1 40%;
  min-width: 280px;
}

.descripcion-imagen img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.descripcion-texto {
  flex: 1 1 55%;
}

.descripcion-texto h2 {
  color: #ffd700;
  margin-bottom: 1rem;
  text-align: left;
}

.descripcion-texto p {
  color: #ddd;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .descripcion-section .descripcion-contenido {
    flex-direction: column;
  }

  .descripcion-texto h2 {
    text-align: center;
  }
}

/* ----- servicios styles ----- */

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.servicio-item {
  background-color: #2c2c2c;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease;
}

.servicio-item:hover {
  transform: translateY(-5px);
}

.servicio-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.servicio-item h3 {
  color: #ffd700;
  margin: 1rem 0 0.5rem;
}

.servicio-item p {
  color: #ccc;
  padding: 0 1rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ----- cita styles ----- */

.cita-destacada .cita-contenido {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.cita-texto {
  flex: 1 1 50%;
}

.cita-texto h2 {
  color: #ffd700;
  margin-bottom: 1rem;
}

.cita-texto p {
  color: #ddd;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.cita-imagen {
  flex: 1 1 45%;
  min-width: 280px;
}

.cita-imagen img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
  .cita-destacada .cita-contenido {
    flex-direction: column-reverse;
    text-align: center;
  }

  .cita-texto {
    flex: 1 1 100%;
  }
}
/* ----- Secciones diferenciadas visualmente ----- */
.section-dark {
  background-color: #1a1a1a;
}

.section-alt {
  background-color: #2a2a2a;
}

.section-bg {
  background: linear-gradient(180deg, #1e1e1e 0%, #2c2c2c 100%);
}

.section-divider {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Ejemplo para separador visual (opcional SVG o líneas decorativas) */
.divider {
  width: 100px;
  height: 4px;
  background: #ffd700;
  margin: 2rem auto;
  border-radius: 2px;
}

.cita-destacada .cita-contenido {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cita-texto {
  flex: 1 1 50%;
  text-align: center;
}

.cita-texto h2 {
  color: #ffd700;
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.cita-texto p {
  color: #ccc;
  margin: 0.7rem 0;
  line-height: 1.6;
  font-size: 1rem;
}

.boton-centro {
  margin-top: 1.5rem;
}

.boton-centro .btn-cta {
  text-decoration: none;
  display: inline-block;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  border-radius: 8px;
}

.cita-imagen {
  flex: 1 1 45%;
  min-width: 300px;
}

.cita-imagen img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cita-imagen img:hover {
  transform: scale(1.02);
}

/* Responsive */
@media (max-width: 768px) {
  .cita-destacada .cita-contenido {
    flex-direction: column-reverse;
    text-align: center;
  }
}


.contacto-contenido {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 2rem;
  align-items: flex-start;
  justify-content: space-between;
}

.contacto-info {
  flex: 1 1 40%;
  color: #ccc;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contacto-info i {
  color: #ffd700;
  margin-right: 0.6rem;
}

.contact-form {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  color: #ffd700;
  font-weight: bold;
  gap: 0.4rem;
}

.contact-form input,
.contact-form textarea {
  background-color: #2c2c2c;
  border: none;
  border-radius: 8px;
  padding: 0.8rem;
  color: #fff;
  font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
}

@media (max-width: 768px) {
  .contacto-contenido {
    flex-direction: column;
  }

  .contact-form, .contacto-info {
    width: 100%;
  }
}

.ubicacion-contenido {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 2rem;
}

.ubicacion-texto {
  flex: 1 1 40%;
  color: #ccc;
  font-size: 1rem;
}

.ubicacion-texto i {
  color: #ffd700;
  margin-right: 0.5rem;
}

.mapa-ubicacion {
  flex: 1 1 55%;
  min-width: 300px;
  height: 100%;
}

.mapa-ubicacion iframe {
  width: 100%;
  height: 350px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .ubicacion-contenido {
    flex-direction: column;
  }

  .mapa-ubicacion iframe {
    height: 300px;
  }

  .ubicacion-texto {
    text-align: center;
  }
}

/* Centrado vertical del login */
body:has(.login-container),
html:has(.login-container) {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1e1e1e;
}

.login-container {
  background-color: #2c2c2c;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.15);
  text-align: center;
  width: 100%;
  max-width: 350px;
}

.login-container h2 {
  margin-bottom: 1.5rem;
  color: #ffd700;
}

.login-container form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-container input {
  background-color: #3b3b3b;
  border: none;
  border-radius: 8px;
  padding: 12px;
  color: #fff;
  font-size: 1rem;
}

.login-container input::placeholder {
  color: #bbb;
}

.login-container button {
  background-color: #ffd700;
  border: none;
  color: #1e1e1e;
  padding: 12px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.login-container button:hover {
  background-color: #e6c200;
}

.create-account {
  margin-top: 1.5rem;
}

.create-account a {
  color: #ffd700;
  font-weight: bold;
  text-decoration: underline;
}

#crearCuenta input {
  margin-top: 0.5rem;
}

#crearCuenta h3 {
  color: #ffd700;
  margin-top: 1rem;
}

.invitado {
  margin-top: 1.5rem;
}

.invitado button {
  border: 2px solid #ffd700;
  background: transparent;
  color: #ffd700;
  padding: 10px;
  border-radius: 8px;
  width: 100%;
  transition: 0.3s;
}

.invitado button:hover {
  background-color: #ffd700;
  color: #1e1e1e;
}


@media (max-width: 480px) {
  .login-container {
    padding: 20px;
    max-width: 90%;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
  }

  .login-container h2,
  #crearCuenta h3 {
    font-size: 1.2rem;
  }

  input,
  .login-container button,
  .invitado button {
    font-size: 0.95rem;
    padding: 10px;
  }

  .logo {
    width: 90px;
    margin-bottom: 15px;
  }

  .create-account,
  .invitado {
    font-size: 0.9rem;
  }

  body:has(.login-container),
  html:has(.login-container) {
    padding: 10px;
    height: auto;
    display: block;
  }
}

