/* Estilos generales */
.user-switcher-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
}

.switcher-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 35px;
    margin-top: 20px;
    border-top: 6px solid #FF7F00;
    position: relative;
    overflow: hidden;
}

.switcher-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,127,0,0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.step {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.user-switcher-container h1 {
    color: #FF7F00;
    font-size: 32px;
    border-bottom: 3px solid #FF7F00;
    padding-bottom: 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Estilos para el shortcode info */
.shortcode-info {
    background: #FFF8F0;
    border: 2px dashed #FF7F00;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0 30px 0;
}

.shortcode-info h2 {
    color: #FF7F00;
    margin-top: 0;
}

.shortcode-info code {
    background: #2d2d2d;
    color: #FF7F00;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 18px;
    display: inline-block;
    margin: 10px 0;
    font-weight: bold;
}

/* Selector de tipo de usuario */
.user-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 25px 0;
}

.user-type-btn {
    flex: 1;
    padding: 25px 20px;
    border: 3px solid #e8e8e8;
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 18px;
    text-align: center;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.user-type-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 127, 0, 0.15);
}

.user-type-btn .icon {
    font-size: 52px;
    margin-bottom: 12px;
    display: block;
}

.user-type-btn small {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
    font-weight: normal;
}

.user-type-btn.promotor-btn {
    border-color: #FF7F00;
}

.user-type-btn.promotor-btn:hover,
.user-type-btn.promotor-btn.active {
    background: #FFF3E6;
    border-color: #FF7F00;
    box-shadow: 0 0 30px rgba(255, 127, 0, 0.2);
    transform: scale(1.02);
}

.user-type-btn.comercio-btn {
    border-color: #FF7F00;
}

.user-type-btn.comercio-btn:hover,
.user-type-btn.comercio-btn.active {
    background: #FFF3E6;
    border-color: #FF7F00;
    box-shadow: 0 0 30px rgba(255, 127, 0, 0.2);
    transform: scale(1.02);
}

.user-type-btn.active::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 15px;
    color: #FF7F00;
    font-size: 24px;
    font-weight: bold;
}

.selected-info {
    margin-top: 20px;
    padding: 15px 20px;
    background: #FFF3E6;
    border-radius: 10px;
    border-left: 5px solid #FF7F00;
    color: #333;
    font-size: 16px;
    animation: slideDown 0.4s ease-out;
}

.selected-info strong {
    color: #FF7F00;
}

/* Selector de usuario */
.user-select-wrapper {
    margin: 25px 0;
}

.user-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    background: #ffffff;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23FF7F00' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    cursor: pointer;
}

.user-select:focus {
    outline: none;
    border-color: #FF7F00;
    box-shadow: 0 0 0 4px rgba(255, 127, 0, 0.1);
}

.user-select:hover {
    border-color: #FF7F00;
}

.user-select option {
    padding: 10px;
}

/* Información del usuario */
.user-info {
    background: #FFF8F0;
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    border: 2px solid #FF7F00;
    border-left: 6px solid #FF7F00;
}

.user-info p {
    margin: 12px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-info strong {
    color: #FF7F00;
    min-width: 80px;
}

.user-info span {
    color: #333;
    font-weight: 600;
}

/* Botón principal */
.switch-btn {
    background: linear-gradient(135deg, #FF7F00, #FF6A00);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.switch-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.switch-btn:hover::before {
    left: 100%;
}

.switch-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 127, 0, 0.4);
    background: linear-gradient(135deg, #FF6A00, #FF5500);
}

.switch-btn:active {
    transform: translateY(0);
}

.switch-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.switch-btn .btn-icon {
    font-size: 24px;
}

/* Mensajes de resultado */
.result-message {
    margin-top: 25px;
    padding: 18px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    animation: slideDown 0.4s ease-out;
}

.result-message.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.result-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* Error de permisos */
.switcher-error {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #f5c6cb;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0;
}

/* Animaciones */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.step {
    animation: slideDown 0.5s ease-out;
}

.user-type-btn.active {
    animation: pulse 0.3s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .user-type-selector {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .user-type-btn {
        min-height: 100px;
        padding: 20px;
        font-size: 16px;
    }
    
    .user-type-btn .icon {
        font-size: 40px;
    }
    
    .switcher-card {
        padding: 20px;
        margin: 10px;
    }
    
    .switch-btn {
        padding: 15px 20px;
        font-size: 17px;
    }
    
    .user-info p {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-info strong {
        min-width: auto;
    }
    
    .shortcode-info code {
        font-size: 14px;
        padding: 8px 16px;
        word-break: break-all;
    }
}

@media (max-width: 480px) {
    .user-switcher-container {
        padding: 10px;
    }
    
    .switcher-card {
        padding: 15px;
    }
    
    .user-type-btn {
        min-height: 80px;
        padding: 15px;
    }
    
    .user-type-btn .icon {
        font-size: 32px;
    }
}