/* floating-icons-styles.css */

/* Contenedor principal de los iconos flotantes */
.floating-icons-container {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%) translateX(100px); /* 👈 Mueve el contenedor 100px a la derecha */
  opacity: 0;
  visibility: hidden;
  
  /* Transiciones para la animación de entrada */
  transition: transform 0.4s ease-out, opacity 0.4s ease-out, visibility 0.4s ease-out;
  
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
  
  /* Estilos de cristal y sombra */
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Estado al hacer scroll: visible y en su posición final */
.floating-icons-container.show {
  transform: translateY(-50%) translateX(0); /* 👈 Vuelve a la posición original */
  opacity: 1;
  visibility: visible;
}

/* Estilo base para cada icono */
.floating-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: white;
    background-color: #04588C;
    transition: transform 0.2s ease, background-color 0.2s ease;
    text-decoration: none !important;
}

.floating-icon i {
    font-size: 20px;
}

.floating-icon:hover {
    background-color: #04588C;
    transform: scale(1.1);
    color: white;
}

/* Estilos específicos para cada icono */
.floating-icon.whatsapp-icon {
    background-color: #25D366;
}

.floating-icon.whatsapp-icon:hover {
    background-color: #04588C;
}

.floating-icon.form-icon {
    background-color: #04588C;
}

.floating-icon.form-icon:hover {
    background-color: #04588C;
}

/* Estilos del Modal */
.modal-dreveal {
    display: none; /* Oculto por defecto */
    position: fixed; /* Se mantiene en su lugar */
    z-index: 2000; /* Alto z-index para que esté sobre todo lo demás */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Habilitar scroll si el contenido es muy largo */
    background-color: rgba(0, 0, 0, 0.6); /* Fondo semi-transparente */
    backdrop-filter: blur(5px); /* Efecto de cristal en el fondo */
}

/* Contenido del Modal */
.modal-content-dreveal {
    background-color: #fefefe;
    margin: 5% auto; /* Centrado vertical y horizontalmente */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Ancho del modal */
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,.5);
    position: relative;
    animation-name: animatetop;
    animation-duration: 0.4s;
    margin-top: 80px; /* 👈 Este valor lo sube a 80px del borde superior */
    margin-bottom: 0; /* Asegura que no haya margen inferior */
    margin-left: auto;
    margin-right: auto;
    /* Esto es equivalente a usar: margin: 80px auto 0; */
    margin: 80px auto 0;
}

/* Botón para cerrar el modal */
.close-button-dreveal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button-dreveal:hover,
.close-button-dreveal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-body-dreveal h3{
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.875rem) !important;
}

/* Animación de entrada */
@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

@media (max-width: 480px) {
    .input-modal{
        margin-bottom: 2px important;
    }
}