/* ---------------------- RESET ---------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
  padding: 2rem;
}

/* HEADER GENERAL */
.header-minimal {
  background-color: white;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid #eee;
}

.hamburguesa {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #1e90ff;
}

/* Estilo del menú */
.menu-minimal ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.menu-minimal a,
.menu-minimal button {
  text-decoration: none;
  color: #111;
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.menu-minimal a:hover,
.menu-minimal button:hover {
  color: #1e90ff;
}

/* Responsive: ocultar menú y mostrar hamburguesa */
@media (max-width: 768px) {
  .hamburguesa {
    display: block;
  }

  .menu-minimal {
    display: none;
    width: 100%;
  }

  .menu-minimal.active {
    display: block;
  }

  .menu-minimal ul {
    flex-direction: column;
    gap: 1rem;
  }

  .contenedor-header {
    align-items: flex-start;
  }
}


/* FLEX WRAP para que no desborde */
.contenedor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1rem;
}

/* Logo */
.logo {
  width: 180px;
  max-width: 100%;
  height: auto;
}

/* Menú principal */
.menu-minimal ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.menu-minimal li {
  display: flex;
  align-items: center;
}

/* Enlaces */
.menu-minimal a,
.menu-minimal button {
  text-decoration: none;
  color: #111;
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.menu-minimal a:hover,
.menu-minimal button:hover {
  color: #1e90ff;
}

/* Icono de idioma */
.icono-bandera {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
}

.idioma {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* RESPONSIVE HEADER */
@media (max-width: 768px) {
  .contenedor-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-minimal ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .menu-minimal {
    width: 100%;
  }

  .logo {
    width: 160px;
  }
}


/* ---------------------- IDIOMA ---------------------- */
.icono-bandera {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
}

.idioma {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------------------- SECCIONES ---------------------- */
h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1e90ff;
  font-weight: 600;
  text-align: center;
}

/* ---------------------- SERVICIOS ---------------------- */
#servicios {
  margin: 3rem 0;
}

.servicios-contenedor {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.servicio {
  flex: 1 1 calc(33.333% - 2rem);
  background-color: #f9f9f9;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: center;
}

.servicio img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 2.5rem;
}

.servicio h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0;
  color: #1e90ff;
}

.servicio p {
  font-size: 0.95rem;
  color: #555;
}

/* ---------------------- EQUIPO ---------------------- */
.equipo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.tarjeta-equipo {
  width: 200px;
  background-color: #f9f9f9;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.tarjeta-equipo:hover {
  transform: translateY(-5px);
}

.foto-cuadrada {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.foto-cuadrada img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  display: block;
}

.tarjeta-equipo h3 {
  font-size: 1rem;
  margin: 0.5rem 0;
  color: #1e90ff;
}

.tarjeta-equipo p {
  font-size: 0.9rem;
  color: #444;
}

/* ---------------------- CONTACTO ---------------------- */
.contacto-contenedor {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1rem;
}

.mapa {
  flex: 1 1 60%;
}

.info-redes {
  flex: 1 1 35%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.info-redes p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #444;
}

.info-redes a {
  text-decoration: none;
  color: #1e90ff;
}

.boton-cita {
  margin-top: 1rem;
  padding: 12px 24px;
  background-color: #25D366;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  text-align: center;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.boton-cita:hover {
  background-color: #1da851;
}

.boton-google {
  margin-top: 1rem;
  display: inline-block;
  background-color: #4285F4;
  color: white !important;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.5s ease;
}

.boton-google:hover {
  background-color: #3367d6;
}

/* ---------------------- REDES ---------------------- */
.redes {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.redes img,
.info-redes .redes img {
  width: 32px;
  height: 32px;
  transition: transform 0.2s ease;
}

.redes img:hover {
  transform: scale(1.1);
}

.redes-flotantes {
  position: fixed;
  top: 40%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
  background-color: transparent;
  padding: 0.5rem;
}

.redes-flotantes a img {
  width: 40px;
  height: 40px;
  transition: transform 0.2s ease;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  background-color: white;
}

.redes-flotantes a img:hover {
  transform: scale(1.15);
}

/* ---------------------- EFECTO FADE-IN ---------------------- */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* ---------------------- RESPONSIVE ---------------------- */
@media (max-width: 768px) {
  .contacto-contenedor,
  .servicios-contenedor {
    flex-direction: column;
  }

  .servicio,
  .mapa,
  .info-redes {
    width: 100%;
  }

  .redes {
    justify-content: flex-start;
  }
}

#carrusel {
  margin: 4rem auto;
  text-align: center;
  max-width: 800px;
}

.carrusel-contenedor {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.carrusel-slide {
  display: none;
  width: 100%;
}

.carrusel-slide img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.carrusel-slide.active {
  display: block;
}

.carrusel-prev,
.carrusel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(30, 144, 255, 0.8);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 2rem;
  border-radius: 50%;
  z-index: 10;
  transition: background-color 0.2s ease;
}

.carrusel-prev:hover,
.carrusel-next:hover {
  background-color: #1e90ff;
}

.carrusel-prev {
  left: 10px;
}

.carrusel-next {
  right: 10px;
}
