/* Estilos al icono de whatsApp */
/* Contenedor general */
.whatsapp-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
}

/* Caja desplegable */
.whatsapp-box {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 220px;
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
    transition: 0.35s ease;
}

.whatsapp-box.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.whatsapp-box .whatsapp-title {
    margin: 0 0 10px 0;
    font-weight: bold;
    font-size: 15px;
    color: #333;
}

.whatsapp-box a {
    display: block;
    text-decoration: none;
    background: #f2f2f2;
    padding: 10px;
    margin-bottom: 7px;
    border-radius: 8px;
    transition: 0.22s;
}

.whatsapp-box a:hover {
    background: #e8e8e8;
}

/* Botón flotante */
.whatsapp-float {
    width: 70px;
    height: 70px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    animation: pulse-main 2s infinite;
    cursor: pointer;
    position: relative;
}

.whatsapp-float img {
    width: 38px;
    height: 38px;
}

/* Badge */
.whatsapp-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: red;
    color: white;
    width: 24px;
    height: 24px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Animación pulse principal */
@keyframes pulse-main {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1.12);
        box-shadow: 0 0 0 30px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}



/* ===========================
   ESTILOS BASE (MÓVIL FIRST)
   =========================== */

.content-footer {
  background: #f4f4f4;
  padding: 4rem 0 1rem 0;
  font-size: 1.8rem;
  color: #143C6A;
}

.content-footer p {
  margin: 8px 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.5;
}

.content-footer h4 {
  color: rgb(0, 154, 150);
  margin-bottom: 15px;
  font-size: 2.2rem;
  text-align: center;
}


/* GRID – versión móvil: 1 columna */
.grid-footer {
  display: grid;
  grid-template-columns: 1fr;
  text-align: center;
}

.grid-footer .caja img {
  max-width: 150px;
  height: auto;
  margin: 0 auto 3rem auto;
}

.grid-footer .caja .slogan {
  margin-top: 10px;
  max-width: 100%;
  font-size: 1.5rem;
  font-style: italic;
}

/* ===========================
   MENÚ FOOTER – ÍTEMS DE MISMO ANCHO
   =========================== */
.menu-footer {
  display: flex;
  justify-content: center;
}

.menu-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-footer ul li {
  margin-bottom: 8px;
}

/* Ítems uniformes */
.menu-footer ul li a {
  display: block;                 /* Mismo ancho */
  text-align: center;           /* Centrado */
  padding: 8px 10px;
  box-sizing: border-box;
  border-radius: 4px;

  color: #143C6A;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
  background: transparent;
}

/* Hover */
.menu-footer ul li a:hover {
  background: rgba(0, 154, 150, 0.1);
  color: rgb(0, 154, 150);
}

/* Ítem activo */
.menu-footer ul li.current-menu-item > a,
.menu-footer ul li.current_page_item > a {
  background: #143C6A;
  color: #ffffff !important;
}

.zoom-social-icons-shortcode {
  text-align: center;
}

/* ===========================
   COPYRIGHT
   =========================== */

.content-footer > p {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  opacity: 0.8;
}

.direccion-footer {
  color: var(--color-panteon);
  font-weight: 600;
  transition: .2s ease-in-out;
}

.direccion-footer:hover {
  color: var(--color-panteon-fondo);

}

/* ===========================
   TABLET (>= 600px)
   =========================== */

@media (min-width: 600px) {
  .grid-footer {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }

  .grid-footer .caja img {
    max-width: 23rem;
  }

  .grid-footer .caja.contacto {
    text-align: center;
  } 

  /* En tablet, el menú mantiene uniformidad pero ya alineado a la izquierda */
  .menu-footer ul li a {
    text-align: left;
  }
}

/* ===========================
   ESCRITORIO (>= 992px)
   =========================== */

@media (min-width: 992px) {
  .grid-footer {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid-footer .caja {
    border-right: 1px solid rgba(0, 154, 149, 0.432);
    padding: 0 1rem;
  } 

  .grid-footer .caja:last-child {
    border-right: none;
  }

  .grid-footer .caja img {
    max-width: 27rem;
  }
}
