/* Variables por defecto si no se cargan */
:root {
    --gomgora-color: #25D366;
    --gomgora-text: #ffffff;
    --gomgora-bg-light: #f9f9f9;
    --gomgora-border: #e0e0e0;
    --gomgora-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --gomgora-shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.15);
    --gomgora-error: #e74c3c;
    --gomgora-success: #2ecc71;
}

/* --- Floating Button --- */
#gomgora-floating-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

#gomgora-main-btn {
    background-color: var(--gomgora-color);
    color: var(--gomgora-text);
    border: none;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#gomgora-main-btn .gomgora-icon {
    width: 48px;
    height: 48px;
    fill: currentColor;
    display: block;
}

#gomgora-main-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* --- Submenu --- */
.gomgora-submenu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.gomgora-submenu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gomgora-item {
    background: white;
    color: #333;
    padding: 12px 18px;
    border-radius: 50px;
    box-shadow: var(--gomgora-shadow);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.gomgora-item:hover {
    transform: translateX(-5px);
    box-shadow: var(--gomgora-shadow-hover);
    color: var(--gomgora-color);
}

.gomgora-item .gomgora-icon {
    width: 20px;
    height: 20px;
    fill: var(--gomgora-color);
}

/* --- Modal --- */
.gomgora-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.gomgora-modal-content {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: gomgoraFadeIn 0.3s ease-out;
}

@keyframes gomgoraFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.gomgora-modal-content h3 {
    margin-top: 0;
    color: #333;
    font-size: 22px;
    line-height: 1.4;
}

.gomgora-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.gomgora-close:hover {
    color: #333;
}

/* --- Star Rating Modern --- */
.gomgora-stars {
    font-size: 42px;
    color: #e0e0e0;
    cursor: pointer;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.gomgora-stars span {
    transition: color 0.2s, transform 0.2s;
}

.gomgora-stars span:hover,
.gomgora-stars span.active {
    color: #FFD700;
    transform: scale(1.1);
}

/* --- Forms (Review & Shortcode) --- */
#gomgora-review-form,
.gomgora-form {
    text-align: left;
}

.gomgora-form {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    border: 1px solid var(--gomgora-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--gomgora-shadow);
}

.gomgora-field {
    margin-bottom: 20px;
}

.gomgora-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size: 14px;
}

.gomgora-field input[type="text"],
.gomgora-field input[type="email"],
.gomgora-field input[type="tel"],
.gomgora-field input[type="number"],
.gomgora-field textarea,
#gomgora-review-form input,
#gomgora-review-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fcfcfc;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.gomgora-field input:focus,
.gomgora-field textarea:focus,
#gomgora-review-form input:focus,
#gomgora-review-form textarea:focus {
    border-color: var(--gomgora-color);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
    outline: none;
    background: #fff;
}

.gomgora-field textarea {
    min-height: 120px;
    resize: vertical;
}

/* Email Form Grid */
.gomgora-email-form .gomgora-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .gomgora-email-form .gomgora-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Captcha */
.gomgora-captcha {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.gomgora-captcha label {
    margin-bottom: 0;
    flex-grow: 1;
}

.gomgora-captcha input {
    margin-bottom: 0 !important;
}

/* Checkbox styling */
.gomgora-checkbox label {
    font-weight: normal;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.gomgora-checkbox input[type="checkbox"] {
    margin-top: 3px;
}

/* Buttons */
.gomgora-submit-btn,
#submit-review {
    background: var(--gomgora-color);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: background 0.3s, transform 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gomgora-submit-btn:hover,
#submit-review:hover {
    filter: brightness(95%);
    transform: translateY(-2px);
}

.gomgora-spinner {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-style: italic;
}

/* Response Messages */
.gomgora-response-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.gomgora-response-message.success {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--gomgora-success);
    border: 1px solid var(--gomgora-success);
    display: block;
}

.gomgora-response-message.error {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--gomgora-error);
    border: 1px solid var(--gomgora-error);
    display: block;
}

/* Responsive */
@media (max-width: 480px) {
    #gomgora-floating-container {
        bottom: 15px;
        right: 15px;
    }

    #gomgora-main-btn {
        width: 56px;
        height: 56px;
    }

    #gomgora-main-btn .gomgora-icon {
        width: 40px;
        height: 40px;
    }

    .gomgora-form {
        padding: 20px;
    }
}