body {
    margin: 0;
    font-family: sans-serif;
}


.whatsapp-link {
    background-color: #25D366;
    /* Color verde de WhatsApp */
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.whatsapp-link:hover {
    background-color: #1ebe5d;
}


.whatsapp-float {
    position: fixed;
    bottom: 70px;
    right: 21px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1000;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.chat-box {
    position: fixed;
    bottom: 140px;
    right: 20px;
    width: 320px;
    max-height: 450px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 999;
}

.chat-box.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.chat-header {
    background: #25D366;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
}

.chat-content {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: #f7f7f7;
}

.msg {
    margin: 10px 0;
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

.bot {
    background-color: #e2e2e2;
    align-self: flex-start;
}

.user {
    background-color: #25D366;
    color: white;
    align-self: flex-end;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(55px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-options {
    padding: 5px;
    border-top: 1px solid #ddd;
    background: #fff;
}

.chat-options .options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-options button {
    padding: 5px;
    border: none;
    border-radius: 10px;
    background: #f0f0f0;
    cursor: pointer;
    transition: background 0.3s;
    text-align: left;
}

.chat-options button:hover {
    background: #e0e0e0;
}

.chat-footer {
    padding: 10px;
    text-align: center;
    border-top: 1px solid #ddd;
}

.chat-footer a {
    background: #25D366;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.chat-footer a:hover {
    background: #1ebe5b;
}
/*estilos de publicidad emergente*/
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* ⬅️ Más alto para estar por encima de todo */
}

.popup-content {
  position: relative;
  background: white;
  padding: 0;
  border-radius: 10px;
  max-width: 850px;
  width: 90%;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  z-index: 10000; /* ⬅️ Asegura que el contenido esté al frente */
}
.popup-content2 {
  position: relative;
  background: white;
  padding: 0;
  border-radius: 10px;
  max-width: 550px;
  width: 90%;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  z-index: 10000; /* ⬅️ Asegura que el contenido esté al frente */
}
.popup-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  cursor: pointer;
  display: block;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  background: white;
  border-radius: 50%;
  padding: 2px 10px;
  z-index: 10001; /* ⬅️ Por si se superponen elementos */
}


/* ✅ Estilo para móviles */
@media (max-width: 600px) {
  .popup-content {
    max-width: 300px;
    width: 80%;
  }

  .close-btn {
    font-size: 20px;
    top: 5px;
    right: 10px;
  }
}


/*fin de publicidad emergente*/