/* Reset básico para la demo */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
    height: 100vh;
}

/* Estilos del botón flotante */
.grescoce-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #e53935;
    /* Color rojo */
    color: white;
    border-radius: 50%;
    border: none;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 1000;
}

    .grescoce-floating-btn:hover {
        transform: scale(1.1);
        background-color: #c62828;
        /* Rojo más oscuro al pasar el ratón */
    }

/* Estilos de la ventana emergente */
.grescoce-popup-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 320px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    display: none;
    /* Oculto por defecto */
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
    transform-origin: bottom right;
    animation: popupAnimation 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Animación de entrada con un leve rebote */
@keyframes popupAnimation {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.grescoce-popup-header {
    background-color: #d32f2f;
    /* Rojo oscuro para la cabecera */
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .grescoce-popup-header h4 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

.grescoce-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}

    .grescoce-close-btn:hover {
        color: #ffcdd2;
        /* Rojo claro al pasar el ratón */
    }

.grescoce-popup-body {
    padding: 25px 20px;
    text-align: center;
    background-color: #fafafa;
}

    .grescoce-popup-body p {
        color: #444;
        margin-bottom: 12px;
        font-size: 14.5px;
        line-height: 1.5;
    }

.grescoce-privacy-link {
    display: inline-block;
    color: #1976d2;
    text-decoration: underline;
    font-size: 13px;
    margin-bottom: 22px;
    transition: color 0.2s;
}

    .grescoce-privacy-link:hover {
        color: #0d47a1;
    }

.grescoce-action-buttons {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.grescoce-btn {
    flex: 1;
    padding: 12px 0;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s;
}

    .grescoce-btn:hover {
        transform: translateY(-2px);
    }

.grescoce-accept-btn {
    background-color: #e53935;
    color: white;
    box-shadow: 0 3px 8px rgba(229, 57, 53, 0.3);
}

    .grescoce-accept-btn:hover {
        background-color: #c62828;
    }

.grescoce-decline-btn {
    background-color: #e0e0e0;
    color: #444;
}

    .grescoce-decline-btn:hover {
        background-color: #bdbdbd;
    }

/* Estilos de la vista de formulario */
.grescoce-form-instructions {
    font-size: 14px;
    margin-bottom: 12px;
    color: #444;
}

.grescoce-form-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #ebebeb;
}

#grescoce-contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

    #grescoce-contact-form input,
    #grescoce-contact-form textarea {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        font-family: inherit;
        font-size: 13.5px;
        background-color: #f9f9f9;
        box-sizing: border-box;
        outline: none;
        transition: border-color 0.3s, background-color 0.3s;
    }

        #grescoce-contact-form input:focus,
        #grescoce-contact-form textarea:focus {
            border-color: #e53935;
            background-color: #ffffff;
        }

    #grescoce-contact-form textarea {
        resize: none;
        height: 80px;
    }

.grescoce-submit-btn {
    background-color: #d32f2f;
    color: white;
    margin-top: 5px;
    width: 100%;
    box-shadow: 0 3px 8px rgba(211, 47, 47, 0.3);
}

    .grescoce-submit-btn:hover {
        background-color: #b71c1c;
    }
