@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body {
  font-family: "Montserrat", sans-serif;
  background-color: #ffffff;
  color: #0E0D2E;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ======= Barra de navegación ======= */
#brand img {
  border-radius: 50% !important;
}

/* Navbar con fondo semitransparente real */
#menu.navbar {
  background-color: #0c2e5562 !important; /* fuerza el color */
  backdrop-filter: blur(10px); /* opcional: efecto blur elegante */
}

/* Links del navbar con letra gruesa y color blanco */
#menu li > a {
  font-weight: 700 !important; /* más grueso */
  color: #ffffff !important;   /* blanco */
}

/* Botón hamburguesa */
.navbar-toggler {
  border-color: white !important; /* borde blanco */
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* Contenedor de links */
#menu .navbar-nav {
  justify-content: flex-end; /* alinea los items a la derecha */
  text-align: right;         /* el texto dentro de los links a la derecha */
  width: 100%;               /* para que ocupe todo el ancho disponible */
}

/* Links individuales */
#menu .nav-link {
  text-align: right;         /* aseguramos alineación derecha */
}


/* ======= Carrusel ======= */
#hero {
  margin-top: 0;
  padding: 0;
  position: relative;
}

#carouselIntroAutoplaying {
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.carousel-inner,
.carousel-item {
  height: 100%;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ======= Información ======= */
.main {
  justify-content: space-around;
}

.container {
  width: 100%;
  margin-top: 50px;
  padding: 10px;
}

.info {
  padding: 10px;
  justify-content: center;
}

.info img {
  border-radius: 50%;
  width: 200px;
  height: 200px;
}

.info h6 {
  margin-top: 20px;
  margin-bottom: 10px;
}

.info ul {
  font-size: 15px;
  text-align: justify !important;
}

.info li {
  font-size: 14px;
  text-align: left !important;
}

.btn-info {
  border-color: #217be8;
  background-color: white;
  font-size: 10px;
  color: rgb(11, 8, 65);
  border-radius: 35px;
  width: 50px;
  height: 25px;
  margin-top: 15px;
}

.div-info {
  margin-top: 15px;
}

/* === Aquí está el ajuste clave === */
.content {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: left;
  gap: 10px;
}

.content ul {
  list-style: disc;
  padding-left: 25px;
  margin: 10px 0;
  text-align: left;
  color: #fff;
}

/* ====== Collage de imágenes ======== */
.galery {
  margin: 0;
  padding: 20px;
  justify-content: space-between;
}

.galery div {
  width: 178px;
  height: 100px;
}

.galery img {
  width: auto;
  height: 400px;
}

/* ====== Mapa ======== */
#local {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  flex-wrap: wrap;
}

.mapa {
  background-image: url('images/mapa.png');
  background-size: cover;
  background-position: center;
  width: 500px;
  height: 300px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.wrapper {
  flex: 1;
  min-width: 280px;
}

.wrapper h2, .wrapper h3 {
  color: #1e5199;
  margin-bottom: 0.5rem;
}

/* ====== Media queries ======== */
@media (max-width: 992px) {
  #carouselIntroAutoplaying,
  .carousel-item {
    height: 85vh;
  }
}

@media (max-width: 768px) {
  #intro, #galery, #conocenos {
    width: 90% !important;
  }

  .hero-img {
    object-position: center top;
  }
  #carouselIntroAutoplaying,
  .carousel-item {
    height: 75vh; /* reduce más en móviles medianos */
  }
}

@media (max-width: 420px) {
  .galery {
    flex-direction: column;
    flex-wrap: wrap;
    align-content: space-around;
    justify-content: space-between;
  }

  #carouselIntroAutoplaying,
  .carousel-item {
    height: auto;
  }
  .hero-img {
    width: 100%;
    height: auto;
    object-fit: contain; /* evita recortar el texto dentro de la imagen */
  }
}

/* ======= Footer ======= */
footer {
  background: linear-gradient(135deg, #0c2e55, #01020d);
  color: #ffffff;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 2;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
}

footer p {
  margin: 0;
  color: #ffffff;
}

/* ======= Secciones con fondo degradado ======= */
#servicios, 
#video, 
#contact {
  background: linear-gradient(135deg, #0c2e55, #01020d);
  color: #ffffff;
  padding-top: 4rem;
  padding-bottom: 4rem;
  position: relative;
  z-index: 1;
}

#servicios h1,
#video h1,
#contact h3,
#contact h5,
#contact p {
  color: #ffffff !important;
}

#servicios .btn-outline-primary {
  color: #ffffff;
  border-color: #ffffff;
}
#servicios .btn-outline-primary:hover {
  background-color: #ffffff;
  color: #0c2e55;
}

#contact a {
  color: #39bdf2 !important;
}
#contact a:hover {
  text-decoration: underline;
}

#contact i {
  filter: brightness(1.2);
}

#servicios, #video, #contact {
  width: 100%;
}

/* ====== Mapa mejorado ======== */
#local {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 3rem 2rem;
  flex-wrap: wrap;
  background-color: #f7f9fc;
  border-radius: 16px;
  max-width: 1000px;
  margin: 0 auto 3rem auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.mapa {
  width: 450px;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mapa:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.wrapper {
  flex: 1;
  min-width: 250px;
  text-align: left;
  color: #0E0D2E;
}

.wrapper h2 {
  color: #1e5199;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.wrapper p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0.3rem 0;
}

/* ====== Responsividad mapa ======= */
@media (max-width: 992px) {
  #local {
    gap: 2rem;
    padding: 2rem;
  }
  .mapa {
    width: 100%;
    max-width: 500px;
    height: 250px;
  }
  .wrapper {
    text-align: center;
  }
}

@media (max-width: 576px) {
  #local {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
  }
  .mapa {
    width: 100%;
    height: 220px;
    border-radius: 10px;
  }
  .wrapper h2 {
    font-size: 1.3rem;
  }
  .wrapper p {
    font-size: 0.95rem;
  }
}

/* ====== FIX FINAL: Imágenes SIEMPRE circulares ====== */
#servicios .info img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 10px auto;
}

@media (max-width: 768px) {
  #servicios .info img {
    width: 130px;
    height: 130px;
  }
}

@media (max-width: 480px) {
  #servicios .info img {
    width: 110px;
    height: 110px;
  }
}

/* ==== FIX PARA MOSTRAR LOS SERVICIOS AL HACER CLICK ==== */
.content.visible {
  display: block !important;
}
.content {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.content.visible {
  display: block !important;
  opacity: 1;
}

/* --- NUEVO: UL centrado perfectamente bajo la imagen usando translateX --- */
#servicios .info {
  position: relative;
}

#servicios .content ul {
  width: max-content; /* hace que el UL mida solo lo que mide el contenido */
  margin-left: 50%;
  transform: translateX(-50%);
  padding: 0;
}

#servicios .info ul {
  width: max-content;        /* ocupa solo lo que miden los <li> */
  margin-left: 50%;          /* empuja a la mitad */
  transform: translateX(-50%); /* centra matemáticamente */
  padding-left: 0;           /* elimina padding que empuja hacia la izquierda */
  list-style-position: inside; /* mantiene las viñetas alineadas correctamente */
}


#contactForm input,
#contactForm textarea {
  border-radius: 10px;
}

#contactForm button {
  background-color: #25D366;
  border-color: #25D366;
  font-weight: bold;
}

#contactForm button:hover {
  background-color: #1ebe57;
  border-color: #1ebe57;
}

#contactForm input::placeholder,
#contactForm textarea::placeholder {
  color: #b0b0b0; /* gris suave */
  opacity: 1;      /* asegura que el color se vea igual en todos los navegadores */
  font-style: italic; /* opcional: estilo cursiva */
}
