* {
  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;
}

/* NAV mejorado */
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);
}


.banner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    width: 100%;
    max-width: 800px;
    margin: auto;
    box-sizing: border-box;
    text-align: center;
    margin-top: 30px;
}

.banner .img {
    max-width: 800px;
    height: auto;
}

.des {
    font-size: 50px;
    font-weight: bold;
    color: blue;
    text-align: center;
    margin-top: 30px;
}

.tex, .pre, .P, .or, .s, .m {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 20px;
    text-align: center;
}

.pre {
    font-size: 20px;
    font-weight: bold;
}

.P {
    font-size: 25px;
    font-weight: bold;
    color: blue;
}

.s {
    font-size: 25px;
    font-weight: bold;
    color: #d4a017;
}


.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);
}
}