/* Estilos modernos para el plugin Gestor de Oportunidades */

/* ===== VARIABLES CSS MODERNAS (COMPATIBLE CON ELEMENTOR) ===== */
:root {
    /* Silicon Valley Color Palette - Ultra Clean */
    --go-primary: #2563eb;
    /* Royal Blue */
    --go-primary-dark: #1d4ed8;
    --go-primary-light: #eff6ff;
    --go-secondary: #64748b;
    /* Slate */
    --go-accent: #0f172a;
    /* Dark Navy */

    /* Semantic Colors */
    --go-success: #10b981;
    --go-success-light: #ecfdf5;
    --go-error: #ef4444;
    --go-error-light: #fef2f2;
    --go-warning: #f59e0b;
    --go-warning-light: #fffbeb;

    /* Neutral Palette (Slate/Gray) */
    --go-gray-50: #f8fafc;
    --go-gray-100: #f1f5f9;
    --go-gray-200: #e2e8f0;
    --go-gray-300: #cbd5e1;
    --go-gray-400: #c7cbd0;
    --go-gray-500: #abafb5;
    --go-gray-600: #475569;
    --go-gray-700: #334155;
    --go-gray-800: #1e293b;
    --go-gray-900: #0f172a;
    --go-white: #ffffff;

    /* High-End Gradients */
    --go-gradient-primary: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --go-gradient-soft: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    --go-glass-bg: rgba(255, 255, 255, 0.7);
    --go-glass-border: rgba(255, 255, 255, 0.3);

    /* Layered Shadows (Silicon Valley Depth) */
    --go-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --go-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --go-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --go-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --go-shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --go-shadow-premium: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Radii & Transitions */
    --go-radius-lg: 12px;
    --go-radius-xl: 16px;
    --go-radius-2xl: 24px;
    --go-transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== RESET Y BASE ===== */
.go-modern-form-container *,
.go-opportunities-container * {
    box-sizing: border-box;
}

/* ===== CONTENEDOR PRINCIPAL - ULTRA CLEAN ===== */
.go-modern-form-container {
    max-width: 960px;
    margin: 3rem auto;
    background: var(--go-white);
    border-radius: var(--go-radius-2xl);
    box-shadow: var(--go-shadow-premium);
    overflow: hidden;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ===== SV STYLE HEADER: MINIMAL & ELEGANT ===== */
.go-form-header {
    padding: 2.5rem 3rem;
    background: var(--go-gradient-soft);
    border-bottom: 1px solid var(--go-gray-100);
}

.go-header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.go-brand-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--go-primary);
    color: var(--go-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.go-header-text h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--go-gray-900);
    letter-spacing: -0.02em;
}

.go-header-text p {
    margin: 0.25rem 0 0;
    font-size: 1rem;
    color: var(--go-gray-500);
    font-weight: 450;
}

/* ===== STEPPER: CLEAN & MODERN ===== */
.go-stepper-container {
    padding: 1.5rem 3rem;
    background: var(--go-white);
    border-bottom: 1px solid var(--go-gray-100);
}

.go-stepper {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.go-step-pill {
    padding: 0.5rem 1rem;
    background: var(--go-gray-100);
    color: var(--go-gray-500);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--go-transition);
}

.go-step-pill.active {
    background: var(--go-primary-light);
    color: var(--go-primary);
}

.go-progress-linear {
    width: 100%;
    height: 4px;
    background: var(--go-gray-100);
    border-radius: 2px;
    overflow: hidden;
}

.go-progress-fill {
    height: 100%;
    width: 25%;
    background: var(--go-primary);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== FORMULARIO MODERNO ===== */
.go-modern-form {
    padding: 2rem;
}

.go-form-step {
    display: none;
    animation: go-fadeInUp 0.5s ease-out;
}

.go-form-step.active {
    display: block;
}

@keyframes go-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* ===== STEP HEADER ===== */
.go-step-header {
    margin-bottom: 2rem;
}

.go-step-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--go-gray-900);
    letter-spacing: -0.02em;
}

.go-step-header p {
    margin: 0.25rem 0 0;
    color: var(--go-gray-500);
    font-size: 0.9375rem;
    font-weight: 450;
}

/* Remove old icons background if any */
.go-step-icon {
    display: none;
}

/* ===== GRID DE CAMPOS ===== */
.go-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.go-field-group {
    position: relative;
}

.go-field-full {
    grid-column: 1 / -1;
}

/* ===== INPUTS & FIELDS ===== */
.go-field-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--go-gray-700);
    font-size: 0.875rem;
}

.go-field-icon {
    display: none;
    /* Icons moved or removed for ultra-clean SV style */
}

.go-field-group input,
.go-field-group select,
.go-field-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--go-gray-200);
    border-radius: var(--go-radius-lg);
    font-size: 0.9375rem;
    transition: var(--go-transition);
    background: var(--go-gray-50);
    color: var(--go-gray-900);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.go-field-group input:focus,
.go-field-group select:focus,
.go-field-group textarea:focus {
    outline: none;
    border-color: var(--go-primary);
    background: var(--go-white);
    box-shadow: 0 0 0 4px var(--go-primary-light), inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.go-field-group input:hover,
.go-field-group select:hover,
.go-field-group textarea:hover {
    border-color: var(--go-primary);
    background: var(--go-white);
}

.go-field-group input[readonly] {
    background: var(--go-gray-50);
    color: var(--go-gray-500);
    cursor: not-allowed;
}

.go-field-group input::placeholder {
    color: var(--go-gray-400);
    font-style: italic;
}

/* ===== INPUT CON PREFIJO (MONTO) ===== */
.go-input-with-prefix {
    position: relative;
    display: flex;
    align-items: center;
}

.go-input-prefix {
    position: absolute;
    left: 1rem;
    z-index: 10;
    color: var(--go-gray-500);
    font-weight: 600;
    font-size: 1.125rem;
    pointer-events: none;
}

.go-input-with-prefix input {
    padding-left: 2.25rem;
}

/* ===== SELECT MEJORADO ===== */
.go-field-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
    appearance: none;
}

/* ===== EDITOR WORDPRESS ===== */
.go-field-group .wp-editor-container {
    border: 1px solid var(--go-gray-200);
    border-radius: var(--go-radius-lg);
    overflow: hidden;
    transition: var(--go-transition);
    background: white;
    box-shadow: var(--go-shadow-sm);
}

.go-field-group .wp-editor-container:focus-within {
    border-color: var(--go-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.wp-editor-tabs {
    padding: 8px 12px 0 !important;
    background: var(--go-gray-50) !important;
    border-bottom: 1px solid var(--go-gray-200) !important;
}

.wp-switch-editor {
    border: 1px solid transparent !important;
    background: transparent !important;
    color: var(--go-gray-500) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 4px 12px !important;
    border-radius: var(--go-radius-md) var(--go-radius-md) 0 0 !important;
    margin-right: 4px !important;
    cursor: pointer !important;
}

.tmce-active .switch-tmce,
.html-active .switch-html {
    background: white !important;
    border-color: var(--go-gray-200) !important;
    border-bottom-color: white !important;
    color: var(--go-primary) !important;
}

.qt-fullscreen {
    display: none !important;
}

.mce-toolbar-grp {
    background: white !important;
    border-bottom: 1px solid var(--go-gray-100) !important;
    padding: 4px !important;
}

.mce-btn button {
    color: var(--go-gray-600) !important;
}

.mce-btn:hover button {
    color: var(--go-primary) !important;
}

/* ===== NAVEGACIÓN DE FORMULARIO - PREMIUM & CLEAN ===== */
.go-form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem 3rem;
    background: var(--go-gray-50);
}

.go-nav-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--go-white);
    border: 1px solid var(--go-gray-200);
    border-radius: var(--go-radius-lg);
    color: var(--go-gray-700);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--go-transition);
    box-shadow: var(--go-shadow-sm);
}

.go-nav-button:hover:not(:disabled) {
    border-color: var(--go-primary);
    color: var(--go-primary);
    transform: translateY(-1px);
    box-shadow: var(--go-shadow);
}

.go-submit-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: var(--go-primary);
    color: var(--go-white);
    border: none;
    border-radius: var(--go-radius-lg);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--go-transition);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.go-submit-button:hover:not(:disabled) {
    background: var(--go-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 12px rgba(37, 99, 235, 0.3);
}

.go-submit-button:disabled {
    background: var(--go-gray-200);
    color: var(--go-gray-400);
    cursor: not-allowed;
    box-shadow: none;
}

/* Spinner simplificado con Ionicon */
.go-spinner {
    animation: go-rotate 1s linear infinite;
    font-size: 1.25rem;
    margin-right: 0.5rem;
    width: 1.25rem;
    /* Kept original width */
    height: 1.25rem;
    /* Kept original height */
}

@keyframes go-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes go-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===== FEEDBACK MESSAGES: SUBTLE GLASS ===== */
.go-error,
.go-success,
.go-warning {
    padding: 1rem 1.25rem;
    margin: 1.5rem 3rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.go-error {
    background: var(--go-error-light);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.go-success {
    background: var(--go-success-light);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.go-warning {
    background: var(--go-warning-light);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ===== VALIDACIÓN DE CAMPOS ===== */
.go-field-error {
    border-color: var(--go-error) !important;
    box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.1) !important;
}

.go-field-error-message {
    margin-top: 0.5rem;
    color: var(--go-error);
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.go-field-error-message::before {
    content: '⚠';
    font-size: 0.875rem;
}

/* ===== OPPORTUNITIES TABLE: DATA-RICH & PRECISE ===== */
.go-opportunities-container {
    max-width: 100%;
    margin: 3rem 0;
    background: var(--go-white);
    border-radius: var(--go-radius-2xl);
    box-shadow: var(--go-shadow-premium);
    overflow: hidden;
}

.go-opportunities-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 3rem;
    background: var(--go-gradient-soft);
    border-bottom: 1px solid var(--go-gray-100);
}

.go-opportunities-header h3 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--go-gray-900);
    letter-spacing: -0.025em;
}

/* Acciones de exportar */
.go-export-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.go-export-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--go-white);
    border: 1px solid var(--go-gray-200);
    border-radius: var(--go-radius-lg);
    color: var(--go-primary);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--go-transition);
    box-shadow: var(--go-shadow-sm);
}

.go-export-button:hover {
    border-color: var(--go-primary);
    background: var(--go-primary-light);
    transform: translateY(-1px);
    box-shadow: var(--go-shadow);
}

.go-export-button:active {
    transform: translateY(0);
}

.go-export-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.go-export-button svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: currentColor;
    flex-shrink: 0;
}

/* Loading del botón de exportar */
.go-export-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--go-white);
}

/* Efecto shimmer para el botón de exportar */
.go-export-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.go-export-button:hover::before {
    left: 100%;
}

.go-table-responsive {
    overflow-x: auto;
}

.go-opportunities-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.go-opportunities-table th {
    background: var(--go-gray-50);
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 700;
    color: var(--go-secondary);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--go-gray-200);
}

.go-opportunities-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--go-gray-100);
    vertical-align: middle;
    color: var(--go-gray-700);
    font-size: 0.875rem;
    font-weight: 500;
}

.go-opportunities-table tbody tr:hover {
    background: var(--go-gray-50);
}

/* ===== BOTONES DE ACCIÓN ===== */
.go-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.go-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--go-primary);
    background: var(--go-white);
    color: var(--go-primary);
    border-radius: var(--go-radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--go-transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: var(--go-shadow-sm);
}

.go-button:hover {
    background: var(--go-gradient-primary);
    color: var(--go-white);
    border-color: var(--go-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--go-shadow-lg);
}

.go-button:active {
    transform: translateY(0);
    box-shadow: var(--go-shadow);
}

.go-button-small {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

/* ===== MODAL MODERNIZADO ===== */
.go-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.go-modal.active {
    display: flex;
    opacity: 1;
}

@keyframes go-fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.go-modal-content {
    background: var(--go-white);
    border-radius: var(--go-radius-xl);
    max-width: 90%;
    max-height: 90%;
    width: 700px;
    box-shadow: var(--go-shadow-xl);
    overflow: hidden;
    animation: go-scaleIn 0.3s ease-out;
}

@keyframes go-scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.go-modal-header {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--go-gray-50) 0%, var(--go-white) 100%);
    border-bottom: 1px solid var(--go-gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.go-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--go-gray-800);
}

.go-modal-close {
    width: 2rem;
    height: 2rem;
    border: none;
    background: var(--go-gray-100);
    color: var(--go-gray-500);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--go-transition);
    font-size: 1.25rem;
}

.go-modal-close:hover {
    background: var(--go-error);
    color: var(--go-white);
}

.go-modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .go-modern-form-container {
        margin: 1rem;
        border-radius: var(--go-radius-lg);
    }

    .go-form-header {
        padding: 2rem 1.5rem 1.5rem;
    }

    .go-form-header h2 {
        font-size: 2rem;
    }

    .go-modern-form {
        padding: 1.5rem;
    }

    .go-progress-container {
        padding: 1rem 1.5rem;
    }

    .go-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .go-step-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .go-form-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .go-nav-button,
    .go-submit-button {
        width: 100%;
        justify-content: center;
    }

    /* Header de oportunidades responsive */
    .go-opportunities-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .go-opportunities-header h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .go-export-actions {
        width: 100%;
        justify-content: center;
    }

    .go-export-button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }

    /* Tabla responsive en móviles */
    .go-opportunities-table {
        border: 0;
    }

    .go-opportunities-table thead {
        display: none;
    }

    .go-opportunities-table tbody,
    .go-opportunities-table tr,
    .go-opportunities-table td {
        display: block;
    }

    .go-opportunities-table tr {
        border: 1px solid var(--go-gray-200);
        margin-bottom: 1.5rem;
        border-radius: var(--go-radius-xl);
        padding: 1rem;
        background: var(--go-white);
        box-shadow: var(--go-shadow-sm);
    }

    .go-opportunities-table td {
        border: none;
        border-bottom: 1px solid var(--go-gray-50);
        position: relative;
        padding: 0.75rem 0;
        color: var(--go-gray-700);
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
    }

    .go-opportunities-table td:last-child {
        border-bottom: none;
        margin-top: 0.5rem;
    }

    .go-opportunities-table td:before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--go-secondary);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        text-align: left;
    }

    .go-actions {
        margin-top: 0.5rem;
        justify-content: center;
    }

    .go-actions .go-button {
        flex: 1;
        justify-content: center;
    }

    .go-modal-content {
        width: 95%;
        margin: 1rem;
    }

    .go-modal-header,
    .go-modal-body {
        padding: 1rem;
    }
}

@media (max-width: 480px) {

    .go-field-group input,
    .go-field-group select,
    .go-field-group textarea {
        font-size: 16px;
        /* Evita zoom en iOS */
    }

    .go-form-header h2,
    .go-form-header h1 {
        font-size: 1.5rem;
    }

    .go-brand-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.5rem;
    }
}

/* ===== AUTO-ADVANCE NOTIFICATION ===== */
.go-auto-advance-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--go-success);
    color: var(--go-white);
    padding: 1rem 1.5rem;
    border-radius: var(--go-radius-lg);
    box-shadow: var(--go-shadow-xl);
    z-index: 10000;
    font-weight: 700;
    font-size: 0.875rem;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.go-auto-advance-notification.active {
    opacity: 1;
    transform: translateX(0);
}

/* Specific button in opportunities list */
.go-opportunities-header .go-button {
    background: var(--go-white);
    color: var(--go-primary);
    border: 1px solid var(--go-gray-200);
}

.go-opportunities-header .go-button:hover {
    background: var(--go-primary-light);
    color: var(--go-primary);
    border-color: var(--go-primary);
}

/* Remove pulse animation as we use linear progress now */
.pulse-animation {
    display: none;
}


/* Mejoras en el spinner de carga */
.go-spinner {
    animation: go-spin 1s linear infinite;
    width: 1.25rem;
    height: 1.25rem;
}

/* Efectos hover para elementos interactivos */
.go-opportunities-table tr:hover {
    background: linear-gradient(135deg, var(--go-gray-50) 0%, rgba(6, 182, 212, 0.05) 100%);
    transform: scale(1.01);
    box-shadow: var(--go-shadow-sm);
}

/* Dark mode ready (opcional) */
@media (prefers-color-scheme: dark) {
    :root {
        --go-white: #ffffff;
        --go-black: #1e293b;
        --go-gray-50: #ffffff;
        --go-gray-100: #1e293b;
        --go-text-contrast-dark: var(--go-white);
    }
}

/* Animación de carga del spinner */
@keyframes go-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Estados de hover para botones pequeños */
.go-button-small:hover {
    transform: translateY(-2px) scale(1.05);
}

/* Mejoras en la tabla responsive */
@media (max-width: 768px) {
    .go-opportunities-table tr {
        transform: none;
        /* Evitar conflictos en móvil */
    }

    .go-opportunities-table tr:hover {
        background: var(--go-gray-50);
        transform: none;
        box-shadow: var(--go-shadow);
    }
}

/* Efectos de micro-interacciones */
input[type="email"]:valid,
input[type="tel"]:valid,
input[type="number"]:valid,
select:valid {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2348bb78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='20,6 9,17 4,12'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

/* Smooth scrolling para toda la página */
html {
    scroll-behavior: smooth;
}

/* Removed problematic blur that affected readability */

/* Tooltips mejorados para campos requeridos */
.required::after {
    content: 'Requerido';
    position: absolute;
    background: var(--go-gray-800);
    color: var(--go-white);
    padding: 0.25rem 0.5rem;
    border-radius: var(--go-radius-sm);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
    transition: var(--go-transition);
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    z-index: 1000;
}

.required:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-120%);
}

/* Estados loading mejorados */
.go-loading-overlay {
    position: relative;
}

.go-loading-overlay::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2rem;
    height: 2rem;
    margin: -1rem 0 0 -1rem;
    border: 2px solid var(--go-gray-200);
    border-top-color: var(--go-primary);
    border-radius: 50%;
    animation: go-spin 0.8s linear infinite;
}

/* Focus visible mejorado para accesibilidad */
.go-nav-button:focus-visible,
.go-submit-button:focus-visible,
.go-button:focus-visible {
    outline: 2px solid var(--go-primary);
    outline-offset: 2px;
}

/* Animación de entrada para pasos */
.go-form-step.active {
    animation: go-slideInFromRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes go-slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

/* Mejoras en typography */
.go-form-header h2,
.go-step-header h3 {
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Efectos de hover para iconos */
.go-field-icon svg {
    transition: var(--go-transition);
}

.go-field-group:hover .go-field-icon svg {
    transform: scale(1.1);
}

/* Estado disabled mejorado */
.go-nav-button:disabled,
.go-submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.go-nav-button:disabled:hover,
.go-submit-button:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* SUCCESS OVERLAY */
.go-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.98) 0%, rgba(21, 128, 61, 0.98) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    backdrop-filter: blur(8px);
    border-radius: var(--go-radius-xl);
    transition: opacity 0.4s ease-out;
    text-align: center;
    padding: 2rem;
    pointer-events: none;
    cursor: pointer;
}

.go-success-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.go-success-overlay .success-icon {
    width: 5rem;
    height: 5rem;
    border: 3px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transform: scale(0);
}

.go-success-overlay.active .success-icon {
    animation: successIconScale 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s forwards;
}

.go-success-overlay h3 {
    margin: 0 0 1rem !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: white !important;
    opacity: 0;
    transform: translateY(20px);
}

.go-success-overlay p {
    margin: 0 !important;
    font-size: 1.125rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    opacity: 0;
    transform: translateY(20px);
}

.go-success-overlay.active h3 {
    animation: successTextSlide 0.5s ease-out 0.5s forwards;
}

.go-success-overlay.active p {
    animation: successTextSlide 0.5s ease-out 0.7s forwards;
}

@keyframes successIconScale {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

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

/* ===== ADMIN DASHBOARD ===== */
.go-admin-dashboard {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--go-gray-50);
    border: 1px solid var(--go-gray-200);
    border-radius: var(--go-radius-2xl);
}

.go-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.go-stat-card {
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--go-gray-100);
    border-radius: var(--go-radius-xl);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--go-shadow-sm);
    transition: var(--go-transition);
}

.go-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--go-shadow-md);
}

.go-stat-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.go-stat-card.primary .go-stat-icon {
    background: rgba(37, 99, 235, 0.1);
    color: var(--go-primary);
}

.go-stat-card.success .go-stat-icon {
    background: rgba(21, 128, 61, 0.1);
    color: var(--go-success);
}

.go-stat-info {
    display: flex;
    flex-direction: column;
}

.go-stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--go-gray-500);
    margin-bottom: 0.25rem;
}

.go-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--go-gray-800);
}

/* Dashbard Charts */
.go-dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.go-chart-container {
    background: white;
    padding: 1.5rem;
    border-radius: var(--go-radius-xl);
    border: 1px solid var(--go-gray-100);
    box-shadow: var(--go-shadow-sm);
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.go-chart-container h4 {
    margin: 0 0 1.25rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--go-gray-600);
    text-align: center;
}

.go-chart-container canvas {
    max-height: 250px;
}

/* Brand Stats Bar */
.go-brand-stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--go-gray-200);
}

.go-brand-pill {
    background: white;
    border: 1px solid var(--go-gray-200);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--go-shadow-sm);
    transition: var(--go-transition);
}

.go-brand-pill:hover {
    border-color: var(--go-primary);
    transform: translateY(-2px);
}

.go-brand-pill .brand-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--go-gray-800);
    border-right: 1px solid var(--go-gray-200);
    padding-right: 1rem;
}

.brand-metrics {
    display: flex;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.brand-metrics .count {
    color: var(--go-gray-500);
    font-weight: 500;
}

.brand-metrics .amount {
    color: var(--go-primary);
    font-weight: 700;
}

@media (max-width: 768px) {
    .go-admin-dashboard {
        padding: 1rem;
    }

    .go-brand-pill {
        width: 100%;
        justify-content: space-between;
    }
}