@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* ---------------- PANTALLA DE CARGA ---------------- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeOut 1.5s forwards;
}

.preloader-logo {
  width: 150px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    visibility: visible;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/* ---------------- RESETEO ---------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
}


body {
  font-family: 'Poppins', sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------------- HEADER ---------------- */
.header {
  min-height: 10vh;
  display: flex;
  align-items: center;
}

.menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  backdrop-filter: blur(2px);
  /* opcional efecto difuminado */
  ;
}

.logo img {
  height: 60px;
  transition: transform 0.3s ease;
}



.menu .navbar ul li {
  position: relative;
  float: left;
}

.menu .navbar ul li a {
  font-size: 18px;
  padding: 20px;
  color: #6c8d43;
  display: block;
  font-weight: 600;
}

#menu {
  display: none;
}

.menu-icon {
  width: 50px;
  height: auto;
}

.menu label {
  cursor: pointer;
  display: none;
}

.navbar {
  display: flex;
}



.navbar a {
  color: #fff;
  font-weight: 600;
  padding: 10px 15px;
}

/* Estilo general del menú */

.navbar li {
  position: relative;
}

/* Link principal */


/* Estilo del desplegable oculto */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  /* justo debajo del botón */
  left: 0;
  background: #ffffff;
  /* color de fondo */
  border: 1px solid #6c8d43;
  z-index: 1000;
  max-height: 250px;
  /* puedes ajustar según tu diseño */
  overflow-y: auto;
}


/* Poner las opciones en columna */
.dropdown-menu li {
  width: 100%;
}

.dropdown-menu li a {
  padding: 10px 15px;
  color: #fff;
  display: block;
  text-align: left;
}

.dropdown-menu li a:hover {
  background: #d7e2c9;
  color: #333;
}

/* Mostrar el menú al pasar mouse */
.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu::-webkit-scrollbar {
  width: 8px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.header-txt {
  text-align: center;
}

.header-txt h1 {
  font-size: 70px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.header-txt p {
  font-size: 1.1rem;
  font-weight: 300;
  color: #f2f5ed;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

/* ---------------- SECCIÓN DE APLICACIONES ---------------- */
.aplicaciones {
  background: #f7f9f4;
  padding: 100px 20px;
  text-align: center;
}

.titulo-seccion {
  font-size: 2.5rem;
  color: #6c8d43;
  font-weight: 700;
  margin-bottom: 20px;
}

.titulo-seccion::after {
  content: '';
  width: 80px;
  height: 4px;
  background: #6c8d43;
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

.descripcion-seccion {
  color: #555;
  max-width: 800px;
  margin: 0 auto 60px;
  font-size: 1.1rem;
}

/* --- Carro interactivo --- */
.carro-interactivo {
  position: relative;
  display: inline-block;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.carro-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

/* Puntos interactivos */
.punto {
  position: absolute;
  width: 1.5vw;
  height: 1.5vw;
  min-width: 15px;
  min-height: 15px;
  max-width: 20px;
  max-height: 20px;
  background: #6c8d43;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease;
  z-index: 10 !important;   /* Siempre por detrás */
}


.punto::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  border: 2px solid #6c8d43;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.punto:hover::after {
  opacity: 0.3;
}

.info {
  display: none;
  bottom: 130%; /* SIEMPRE arriba */
  left: 50%;
  transform: translateX(-50%);
  background: #6c8d43;
  color: #6c8d43;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  width: 190px;
  text-align: center;
  font-size: 0.9rem;
  z-index: 20;
  word-wrap: break-word;
  pointer-events: none; /* no empuja la posición del punto */
}



/* ------------------- AJUSTES MÓVILES ------------------- */
@media (max-width: 768px) {
  .punto {
    width: 4vw;
    height: 4vw;
    min-width: 14px;
    min-height: 14px;
  }

  .info {
    
    width: 160px;
    font-size: 0.8rem;
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .carro-interactivo {
    width: 100%;
    padding: 0 5px;
  }

  .punto {
    width: 5vw;
    height: 5vw;
    min-width: 12px;
    min-height: 12px;
    z-index: 5;
  }

}



/* --- Texto adicional --- */
.texto-aplicaciones {
  margin-top: 80px;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: #555;
}

.texto-aplicaciones h3 {
  color: #6c8d43;
  font-size: 1.6rem;
  margin-bottom: 10px;
  text-align: center;
}

/* --- Responsivo --- */
@media (max-width: 768px) {
  .titulo-seccion {
    font-size: 2rem;
  }

  .info {
    width: 180px;
    font-size: 0.85rem;
  }

  .punto {
    width: 18px;
    height: 18px;
  }
}

/* ---------------- FOOTER ---------------- */
.footer-txt {
  border-top: 1px solid #b4b4b47e;
  padding: 20px 0;
  text-align: center;
}

.footer-txt p {
  color: #6c8d43;
  font-size: 16px;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 991px) {
  .navbar {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    border-top: 2px solid #6c8d43;
  }

  #menu:checked~.navbar {
    display: flex;
  }

  .menu label {
    display: block;
  }

  .menu .navbar ul li {
    width: 100%;
    flex-direction: column;
  }

  .menu .navbar ul li a {
    padding: 15px;
    display: block;
    color: #6c8d43;
  }

  .hero {
    margin: 120px 20px 20px;
    padding: 30px 15px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {

  .menu {
    padding: 10px;
  }

  .hero {
    margin-top: 140px;
    padding: 20px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .card {
    padding: 20px;
  }

  .card h2 {
    font-size: 1.3rem;
  }
}

/* ---------- MODAL A PANTALLA COMPLETA ---------- */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(3px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.modal-contenido {
  background: #fff;
  width: 90%;
  max-width: 500px;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  text-align: left;
  position: relative;
  animation: fadeIn 0.3s ease;
}

.modal h3 {
   text-align: center;
   color: #6c8d43;
}

.cerrar {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 30px;
  cursor: pointer;
  color: #6c8d43;
  font-weight: bold;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
