* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}




html, body {
  width: 100%;
  font-family: 'Montserrat', sans-serif;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  width: 100%;
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

.logo img {
  max-width: 100%;
  height: auto;
}
.logo-link {
  display: flex;
  flex-direction: column; /* coloca el texto debajo de la imagen */
  align-items: center;    /* centra horizontalmente */
  text-decoration: none;  /* quita subrayado */
}

.logo-text {
  margin-top: 5px;
  font-size: 14px;
  color: white; /* puedes cambiarlo según el color de tu menú */
  font-weight: bold;
  margin-right: 10px;
}

/* NAV mejorado */
/* 🔵 NAV GENERAL */
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background-color: #63b552;
  padding: 10px 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 9999;
}

.nav-container {
  flex: 1 1 100%;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 10px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 15px;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

nav ul li a:hover {
  background-color: #66c1dd;
}

.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 🟢 SUBMENÚ CONTROLADO POR CLIC */
.dropdown {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #66c1dd;
  border-radius: 0 0 5px 5px;
  min-width: 220px;
  z-index: 1000;
  list-style: none;
  padding: 0;
  margin: 0;
}

.submenu li a {
  display: block;
  padding: 10px 20px;
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.submenu li a:hover {
  background-color: #344a9a;
}

/* ❌ Desactiva hover automático (esto ya no se necesita) */
/* .dropdown:hover .submenu {
  display: block;
} */

/* ✅ Submenú solo visible con clase activa (vía JS) */
.dropdown.activo > .submenu {
  display: block;
}

/* 🔻 Flechita animada */
.flecha {
  display: inline-block;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

/* 🔺 Flecha gira cuando el menú está activo */
.dropdown.activo .flecha {
  transform: rotate(180deg);
}




/* PRODUCTO ESTILO */
/* Estilo general para todas las secciones */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px; /* Ajusta según la altura de tu encabezado fijo */
}

section {
  max-width: 1200px;
  margin: 40px auto 550px; /* 40px arriba, 100px abajo */
  padding: 0 20px;
}

/* Resto de tus estilos ya existentes */
.categoria {
  font-size: 28px;
  font-weight: bold;
  margin: 40px 0 20px;
  color: #333;
  text-align: center;
}

.producto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-items: center;
}

.producto {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  width: 100%;
  max-width: 320px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.producto:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transform: translateY(-10px);
}

.producto img {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 10px;
}

.producto .nombre {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}



/* Índice lateral */
.titulo-indice {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
  color: #0a3a83;
  text-align: center;
  margin-right: 0px;
  margin-top: 20px;
}
.indice-lateral {
  position: fixed;
  top: 60%;
  right: 0px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 10000;
}

.punto {
  width: 11px;
  height: 11px;
  background-color: #0a3a83;
  border-radius: 50%;
  display: block;
  position: relative;
  transition: transform 0.2s ease;
}

.punto:hover {
  transform: scale(1.5);
}

.punto::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 120%;
  top: 50%;
  transform: translateY(-50%);
  background-color: white;
  color: #0a3a83;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease;
}

.punto:hover::after {
  opacity: 1;
}
.indice-lateral-izq {
  position: fixed;
  top: 60%;
  left: 20px; /* antes era 0px, ahora deja espacio desde el borde */
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 10000;
}

/* Ajustamos tooltip hacia la derecha */
.indice-lateral-izq .punto::after {
  left: 120%;   /* tooltip hacia la derecha */
  right: auto;  /* anulamos el valor original */
}

.footer {
  position: relative;
  background-color: #63b552;
  color: #fff;
  padding: 60px 20px 20px;
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
}

.footer-wave {
  position: absolute;
  top: -30px;
  left: 0;
  width: 100%;
  height: 80px;
  background: white;
  border-bottom-left-radius: 100% 40px;
  border-bottom-right-radius: 100% 40px;
}

.footer-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.footer-col h3 {
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: bold;
}

.footer-col p,
.footer-col ul {
  font-size: 14px;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  background-color:  #66c1dd;
}

.socials a {
  margin-right: 10px;
  display: inline-block;
  transition: transform 0.3s;
}

.socials a:hover {
  transform: scale(1.2);
}
.contac-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  cursor: move;
}
.fab-main {
  background-color: #344a9a;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s;
}
.fab-main:hover {
  background-color: #63b552;
}
.fab-options {
  display: none;
  position: absolute;
  bottom: 60px;
  right: 0;
  flex-direction: flex-end;
  gap: 10px;
  background-color: rgba(0, 0, 0, 0.85);
  padding: 10px;
  border-radius: 10px;
}
.fab-icon img {
  width: 40px;
  height: 40px;
}
.fab-options.show {
  display: flex;
}
/* HAMBURGUESA */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  margin-right: 20px;
  z-index: 11000; /* para que quede encima */
}

/* Las 3 barras del botón */
.menu-toggle div {
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}


/* Ocultar índice lateral en móviles */
@media screen and (max-width: 900px) {
  .indice-lateral,
  .btn-indice {
    display: none !important;
  }
}

/* Ocultar ambos índices en móviles */
@media screen and (max-width: 900px) {
  .indice-lateral,
  .indice-lateral-izq {
    display: none !important;
  }
}


@media screen and (max-width: 900px) {
  nav ul {
    display: none;
    flex-direction: column;
    background-color: #63b552;
    position: fixed;
    top: 50px; /* más pegado al nav */
    left: 0;
    width: 180px; /* más angosto */
    border-radius: 0 0 8px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    padding: 5px 0;
    z-index: 10000;
  }

  
  nav ul.show {
    display: flex;
  }

  nav ul li {
    margin: 4px 0;
    text-align: left;
    padding: 6px 10px;
  }

  nav ul li a {
    font-size: 13px;  /* más chico */
    color: #fff;
    text-decoration: none;
    font-weight: 500;
  }

  .menu-toggle {
    display: flex;
    cursor: pointer;
  }
  
    .banner {
    width: 90vw;
    margin-top: 100px;
    padding: 20px 10px;
  }
  .banner .img {
    max-width: 90vw;
  }
}
@media screen and (max-width: 768px) {
  .submenu {
    min-width: 150px; /* más angosto */
    font-size: 12px;  /* letras más pequeñas */
    border-radius: 0 0 6px 6px;
  }

  .submenu li a {
    padding: 8px 15px; /* menos espacio */
    font-size: 12px;
  }




@media screen and (max-width: 400px) {
  nav ul li a {
    font-size: 11px;
    padding: 6px 8px;
  }

  .producto {
    max-width: 100%;
    padding: 10px;
  }

  .producto img {
    max-width: 90%;
  }

  .categoria {
    font-size: 20px;
  }


}

/* Pantallas muy pequeñas (360px o menos) */
@media screen and (max-width: 360px) {
  body { font-size: 12px; }
  nav ul li a { font-size: 11px; }
}

/* 400px */
@media screen and (max-width: 400px) {
  body { font-size: 13px; }
  nav ul li a { font-size: 12px; }
}

/* 460px */
@media screen and (max-width: 460px) {
  nav ul { width: 250px; }
  .producto { max-width: 90%; }
}

/* 728px */
@media screen and (max-width: 728px) {
  .producto-grid { grid-template-columns: repeat(2, 1fr); }
  .indice-lateral { right: 3px; }
}

/* 900px */
@media screen and (max-width: 900px) {
  nav ul { display: none; }
  .menu-toggle { display: flex; }
}




@media screen and (max-width: 460px) {
  .submenu li a {
    font-size: 11px;
    padding: 5px 6px;
  }
}

@media screen and (max-width: 360px) {
  .submenu li a {
    font-size: 10px;
    padding: 3px 4px;
  }
}
/* Submenú compacto */
.submenu li a {
  font-size: 14px;     /* tamaño base */
  padding: 4px 10px;   /* menos espacio vertical para que quepa todo */
  line-height: 1.2;    /* reduce separación entre líneas */
}

/* Ajustes por resolución */
@media screen and (max-width: 900px) {
  .submenu li a { font-size: 13px; padding: 3px 8px; }
}

@media screen and (max-width: 728px) {
  .submenu li a { font-size: 12px; padding: 2px 6px; }
}

@media screen and (max-width: 460px) {
  .submenu li a { font-size: 11px; padding: 2px 5px; }
}

@media screen and (max-width: 360px) {
  .submenu li a { font-size: 10px; padding: 1px 4px; }
}



/* ANIMACIÓN HAMBURGUESA */
.menu-toggle.active div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active div:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active div:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
}