/**
 * Vacuum Comparator - Frontend Selector Styles
 * Estilos para el formulario de selección de robots
 */

/* Select2 CSS - CDN cargado en el shortcode */
@import url('https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css');

.vacuum-comparator-pro {
    max-width: 1200px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Hero Section */
.comparator-hero {
    text-align: center;
    margin-bottom: 48px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.hero-title {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    color: #64748b;
    margin: 0;
    font-weight: 400;
}

/* Robots Selector */
.robots-selector {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 32px;
}

.robot-box {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.robot-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.robot-box-extra {
    grid-column: 1 / -1;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.robot-box-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.robot-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
}

.robot-label {
    font-weight: 600;
    font-size: 16px;
    color: #1e293b;
}

.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 50%;
    color: white;
    font-weight: 900;
    font-size: 20px;
    box-shadow: 0 8px 20px rgba(245, 87, 108, 0.3);
    flex-shrink: 0;
}

/* Select2 Personalizado */
.select2-container--default .select2-selection--single {
    height: 52px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 16px;
    transition: all 0.2s;
}

.select2-container--default .select2-selection--single:hover {
    border-color: #667eea;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 48px;
    color: #1e293b;
    font-size: 15px;
    font-weight: 500;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #94a3b8;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px;
    right: 8px;
}

.select2-dropdown {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.btn-add-third {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-third:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
}

.btn-add-third.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

.btn-add-third svg {
    transition: transform 0.2s;
}

.btn-add-third.active svg {
    transform: rotate(45deg);
}

.btn-compare {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #FF9900 0%, #ff7b00 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
}

.btn-compare:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 153, 0, 0.4);
}

.btn-compare:active {
    transform: translateY(0);
}

.btn-compare svg {
    transition: transform 0.2s;
}

.btn-compare:hover svg {
    transform: translateX(4px);
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #f6f8fb 0%, #e9eef5 100%);
    border-radius: 12px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
}

.trust-item svg {
    color: #10b981;
}

/* MEDIA QUERIES */
@media (max-width: 1024px) {
    .vacuum-comparator-pro {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .robots-selector {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .vs-divider {
        width: 50px;
        height: 50px;
        font-size: 18px;
        margin: 8px auto;
    }
    
    .robot-box {
        padding: 20px;
    }
    
    .robot-box-extra {
        grid-column: 1;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-add-third,
    .btn-compare {
        width: 100%;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .robot-box {
        padding: 16px;
    }
    
    .robot-number {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
    
    .robot-label {
        font-size: 14px;
    }
    
    .btn-compare {
        font-size: 16px;
        padding: 14px 24px;
    }
    
    .trust-item {
        font-size: 13px;
    }
}