/* Estilos para Google Forms embebido */

.google-forms-container {
    width: 100%;
    min-height: 200px;
    margin: 1rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    padding: 1rem;
    display: none; /* Ocultar temporalmente hasta que se configure el formulario */
}

.google-forms-container iframe {
    width: 100%;
    height: 100%;
    min-height: 800px;
    border: none;
    border-radius: 8px;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .google-forms-container {
        padding: 0.5rem;
        margin: 1rem -1rem;
    }

    .google-forms-container iframe {
        min-height: 900px; /* Más alto en móvil por los campos verticales */
    }
}

/* Estilo para el contacto alternativo */
.contacto-alternativo {
    background: linear-gradient(135deg, #f5f3ff 0%, #fdf8ff 100%);
    border: 1px solid rgba(155, 89, 182, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 0rem;
    box-shadow: 0 2px 8px rgba(155, 89, 182, 0.08);
    /* Hacer más prominente cuando el formulario esté oculto */
    border: 2px solid rgba(155, 89, 182, 0.2);
}

.contacto-alternativo h3 {
    color: #9B59B6;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contacto-alternativo ul li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0;
    transition: transform 0.2s ease;
}

.contacto-alternativo ul li:hover {
    transform: translateX(5px);
}

.contacto-alternativo a {
    color: #663399;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contacto-alternativo a:hover {
    color: #9B59B6;
    text-decoration: underline;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #20BA5A;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float i {
    color: white;
}

/* Animación de pulso para llamar la atención */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: pulse-whatsapp 2s infinite;
}

/* Tooltip para WhatsApp */
.whatsapp-float::before {
    content: "¿Necesitas ayuda?";
    position: absolute;
    right: 70px;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.whatsapp-float:hover::before {
    opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 28px;
    }

    .whatsapp-float::before {
        display: none; /* Ocultar tooltip en móvil */
    }
}

/* Loading state para el iframe */
.google-forms-loading {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.google-forms-loading::before {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #9B59B6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}