@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: "Roboto", sans-serif;
  background-color: #f7f7ee;
}

nav {
  background-color: #052560;
  padding: 10px 20px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 100px;
}

/* Centrar logo horizontalmente */
.nav-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo {
  height: 200px;
  object-fit: contain;
}

/* Botón de contacto */
.contact-section {
  background-color: #052560; /* azul */
  padding: 40px 0; /* espacio arriba y abajo */
  text-align: center; /* centra el botón */
  z-index: 5;
  position: relative;
}

.contact-button {
  background-color: #25D366;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  z-index: 10;
  position: relative;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  font-size: 32px;
}

.contact-button:hover {
  background-color: #0056b3;
  color: white;
}

.contact-button:hover {
  background-color: #1da851;
}

/* 🔻 RESPONSIVE: para pantallas chicas */
@media (max-width: 768px) {
  .nav-container {
    justify-content: space-evenly;
    align-items: center;
    position: relative;
  }

  .nav-logo {
    position: static;
    transform: none;
    margin-bottom: 10px;
  }

  .nav-contacto {
    margin-left: 0;
  }
}

.main {
  background: rgb(5, 37, 96);
  background: linear-gradient(
    180deg,
    rgba(5, 37, 96, 1) 0%,
    rgba(9, 9, 121, 1) 35%,
    rgba(0, 212, 255, 1) 100%
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  padding: 1rem;
  height: 100vh;
  box-sizing: border-box;
  color: #fff;
}

.phone-image{
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px 10px 0 0;
}

.float {
  position: fixed;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  bottom: 40px;
  right: 40px;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  box-shadow: 2px 2px 3px #999;
  z-index: 999;
}

.fa-whatsapp {
  font-size: 60px;
}

.float:hover {
  background-color: #2ae870;
}

.contact {
  background-color: rgb(5, 37, 96);
}

.contact .contenedor {
  display: flex;
  flex-direction: column; /* Organiza los elementos en columna */
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px; /* Espacio entre el texto y el mapa */
}

/* Estilo para el texto */
.contenido-textoContact {
  text-align: center; /* Alineación centrada */
  padding-top: 40px;
  width: 100%;
}

.contenido-textoContact h2 {
  font-size: 36px;
  color: white;
  margin-bottom: 20px;
  text-transform: uppercase;
  text-shadow: 0 2px black;
}

.contenido-textoContact p {
  font-size: 24px;
  color: white;
  line-height: 1.6;
  margin-bottom: 15px;
  padding: 15px;
}

.direccion {
  font-size: 30px;
  font-weight: bold;
  color: #2ae870;
}

.numeroTelefono {
  text-decoration: none;
  font-size: 30px;
  font-weight: bold;
  color: #2ae870;
  display: inline-block;
}

.numeroTelefono:hover {
  color: #2ae870;
}

/* Estilo para el mapa */
.contenido-map iframe {
  width: 100%;
  max-width: 800px; /* Establece un ancho máximo para el mapa */
  height: 300px;
  border: none;
}

/* Contenedor principal */
.container {
  display: flex;
  flex-wrap: wrap;
  padding: 0 20px;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

/* Área de texto */
.text-area {
  flex: 1;

  text-align: center;
}

.text-area h2 {
  font-size: 2rem;
  margin-bottom: 1rem;

}

.text-area p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.text-area .btn {
  background-color: #25d366;
  color: #052560;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: bold;
  font-size: 2rem;
  transition: background-color 0.3s, color 0.3s;
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  justify-content: space-between;
}

.text-area .btn:hover {
  background-color: #052560;
  color: #ffffff;
}

.image-area .overlay .btn:hover {
  background-color: #052560;
  color: #ffffff;
}

/* Responsividad */
@media (max-width: 768px) {
  nav ul {
    display: flex;
    justify-content: center;
    padding: 10px 0;
  }
  .logo {
    max-width: 200px; /* Ajusta el tamaño del logo */
    margin: 0 auto;
  }
  .container {
    flex-direction: column;
    text-align: center;
  }

  .main {
    padding-top: 4rem;
    flex-direction: column; /* Cambia a diseño en columna */
    padding: 1rem;
    height: auto; /* Permite que la altura sea dinámica */
  }

  .text-area {
    flex: 1;
    text-align: center;
  }

  .text-area h2 {
    font-size: 2rem; /* Reducir tamaño de texto */
    margin-bottom: 20px;
  }

  .button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .phone-section {
    margin-top: 20px;
  }
  .phone {
    width: 80%; /* Ajusta el ancho en pantallas pequeñas */
    height: auto; /* Ajusta la altura proporcionalmente */
  }

  .phone-screen h2 {
    font-size: 2rem;
    text-align: center;
  }
  

  .phone-screen .btn {
    padding: 0.6rem 1rem;
  }

  .containerImg {
    grid-template-columns: repeat(2, 1fr);
  }

  .side-image {
    display: none;
  }
  .social-icons {
    justify-content: center;
  }

  .contact {
    padding: 20px;
  }

  .contenido-texto,
  .contenido-imagen {
    flex: 1 1 100%; /* Ocupa el ancho completo */
  }

  .contenido-texto h2 {
    text-align: center;
  }

  .contenido-textoContact h2 {
    margin-bottom: 10px;
  }
  .texto h2 {
    font-size: 1.5rem; /* Texto más pequeño */
  }

  .texto p {
    font-size: 0.9rem;
  }
  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-info,
  .footer-links,
  .footer-social {
    text-align: center;
  }

  .footer-links ul li {
    display: inline;
    margin: 0 10px;
  }

  .footer-links ul {
    padding: 0;
  }

  .float {
    bottom: 20px;
    right: 20px;
  }
  .side-image {
    display: none;
  }

  .carousel-title {
    font-size: 1.5rem;
  }

  .carousel-button {
    font-size: 1.5rem;
    padding: 0.3rem 0.8rem;
  }

  .icon-container {
    margin-right: 0px;
    margin-left: 25px;
  }
}

@media (max-width: 400px) {
  .texto {
    width: 95%; /* Más ancho para aprovechar el espacio */
    font-size: 0.8rem;
  }

  .texto h2 {
    font-size: 1.2rem;
  }

  .texto p {
    font-size: 0.8rem;
  }

  .containerImg {
    grid-template-columns: 1fr;
  }
}

/* Estilo general de la sección */
.phone-section {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f4f4f41f; /* Fondo claro */
  margin: 0;
  padding: 0;
  border-radius: 10px;
}

/* Contenedor principal del teléfono */
.phone {
  position: relative;
  width: 300px; /* Ajusta el ancho */
  height: 600px; /* Ajusta la altura */
  background-image: url("/img/prueba\ defoto.png"); /* Imagen del teléfono */
  background-size: cover; /* Ajusta el tamaño de la imagen */
  background-position: center; /* Centra la imagen */
  background-repeat: no-repeat; /* Evita que la imagen se repita */
}

/* Pantalla del teléfono */
.phone-screen {
  position: absolute;
  top: 6%; /* Ajusta para que el fondo negro inicie donde empieza la pantalla */
  left: 22%; /* Ajusta para alinear horizontalmente dentro de la pantalla */
  width: 54%; /* Ajusta al ancho de la pantalla */
  height: 57%; /* Ajusta al alto de la pantalla */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(
    0,
    0,
    0,
    0.2
  ); /* Fondo semitransparente para mejor legibilidad */
  color: #052560;
  text-align: center;
  border-radius: 10px; /* Bordes redondeados para que se vean más naturales */
  overflow: hidden; /* Oculta contenido que se salga del contenedor */
  padding: 1rem;
}

/* Estilo del texto dentro de la pantalla */
.phone-screen h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.phone-screen p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #052560;
}

/* Botón */
.phone-screen .btn {
  display: inline-block;
  background-color: #25d366;
  color: #052560;
  text-decoration: none;
  padding: 0.8rem 1rem;
  border-radius: 0 0 10px 10px;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.3s, color 0.3s;
}

.phone-screen .btn:hover {
  background-color: #052560;
  color: #ffffff;
}

.containerImg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 15px;
  width: 75%;
  margin: 0 auto;
  justify-items: center;
}

.gallery-section {
  background: rgb(5, 37, 96);
  padding: 40px 0;
  width: 100%;
}

.clickable-image {
  width: 70%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.enlarged {
  transform: scale(1.2); 
  z-index: 10; 
}

.gallery-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  margin-bottom: 20px;
}

.icon-container {
  margin-top: 15px;
  margin-bottom: 15px;
  font-size: 50px; /* Tamaño del ícono */
  color: #28a745;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: blink 1s infinite;
}

.icon-container ion-icon {
  cursor: pointer; /* Si quieres que sea interactivo */
}

@keyframes blink {
  0%,
  100% {
    opacity: 1; /* Totalmente visible */
  }
  50% {
    opacity: 0; /* Totalmente invisible */
  }
}

.side-image {
  top: 50%;
  width: 15%;
  height: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.side-image img {
  width: 90%;
  height: auto;
  box-shadow: 10px 20px 30px rgba(0, 0, 0, 0.3); /* Sombra 3D */
}
.side-image.left {
  transform: translateY(-10%) rotate(-10deg);
  box-shadow: 10px 20px 30px rgba(0, 0, 0, 0.3); /* Sombra 3D */
}

.side-image.right {
  transform: translateY(-10%) rotate(10deg);
  box-shadow: -10px 20px 30px rgba(0, 0, 0, 0.3); /* Sombra 3D */
}

.button-group {
  display: inline-flex; /* Alinea los botones en fila */
  gap: 10px; /* Espacio entre los botones */
  margin-top: 20px;
  align-items: center;
}

.whatsapp-btn {
  width: 30px;
  height: 50px;
  padding: 0;
  font-size: 24px;
  border-radius: 10px;
}

.whatsapp-btn ion-icon {
  color: #25d366; /* Ícono en blanco */
  height: 100%;
  width: 50px;
}

/* Estilos generales del footer */
.footer {
  background-color: #222;
  color: #fff;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

/* Secciones individuales */
.footer-info,
.footer-links,
.footer-social {
  flex: 1;
  min-width: 250px;
}

.footer h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #25d366;
}

.footer p {
  font-size: 14px;
  margin-bottom: 10px;
  color: #ddd;
  margin-top: 10px;
}

/* Enlaces rápidos */
.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: #25d366;
}

/* Redes sociales */
.footer-social .social-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.footer-social .social-icons a {
  font-size: 20px;
  color: #ddd;
  transition: color 0.3s ease;
}

.footer-social .social-icons a:hover {
  color: #25d366;
}

/* Footer inferior */
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  margin-top: 20px;
  font-size: 14px;
  color: #bbb;
}

.footer-bottom a {
  text-decoration: none;
  color: #bbb;
}

.carousel-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgb(5, 37, 96);
  background: linear-gradient(
    0deg,
    rgba(5, 37, 96, 1) 0%,
    rgba(9, 9, 121, 1) 35%,
    rgba(0, 212, 255, 1) 100%
  );
}

.carousel-title {
  text-align: center;
  font-size: 2rem;
  color: white;
  margin-bottom: 20px;
  margin-top: 10px;
}

/* Estilos del carrusel */
.carousel {
  position: relative;
  width: 90%;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-item {
  min-width: 100%;
  box-sizing: border-box;
}

.carousel img {
  width: 100%;
  max-height: 800px; /* Define la altura máxima */
  object-fit: contain; /* Ajusta la imagen sin recortar */
}

/* Botones del carrusel */
.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.carousel-button:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

.arrow-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon-container {
  display: flex;
  gap: 80px; /* Espaciado entre las flechas */
  margin-right: 25px;
}

.arrow {
  font-size: 40px; /* Tamaño de las flechas */
  color: #25d366; /* Color de las flechas */
  transition: transform 0.3s, color 0.3s;
}

.arrow.left {
  transform: rotate(-45deg); /* Inclinada hacia la izquierda */
}

.arrow.center {
  transform: rotate(0); /* Recta */
}

.arrow.right {
  transform: rotate(45deg); /* Inclinada hacia la derecha */
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Fondo opaco */
  display: none; /* Inicialmente está oculta */
  justify-content: center;
  align-items: center;
  z-index: 2; /* Aseguramos que la capa esté por encima de la imagen */
}

.overlay img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}